TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Frontiere_ouverte_rho_u_impose.h
1/****************************************************************************
2* Copyright (c) 2025, CEA
3* All rights reserved.
4*
5* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9*
10* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
11* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
12* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13*
14*****************************************************************************/
15
16#ifndef Frontiere_ouverte_rho_u_impose_included
17#define Frontiere_ouverte_rho_u_impose_included
18
19#include <Dirichlet_entree_fluide_leaves.h>
20#include <TRUST_Ref.h>
21
23
24/*! @brief @brief Open boundary on which the mass flux rho.U is imposed instead of the velocity U.
25 *
26 * The velocity is computed by dividing by rho(n+1) found in the fluid at the time of the val_imp call.
27 *
28 * @sa Dirichlet_entree_fluide
29 */
31{
32 Declare_instanciable(Frontiere_ouverte_rho_u_impose);
33public :
34 void completer() override;
35 int compatible_avec_eqn(const Equation_base&) const override;
36 double val_imp_au_temps(double temps, int i) const override;
37 double val_imp_au_temps(double temps, int i, int j) const override;
38 const DoubleTab& tab_val_imp(double temps=DMAXFLOAT) const override;
39
40protected :
42};
43
44#endif /* Frontiere_ouverte_rho_u_impose_included */
Entree_fluide_vitesse_imposee_libre Special case of the class Entree_fluide_vitesse_imposee for impos...
class Equation_base The role of an equation is the calculation of one or more fields....
Base class for a dilatable fluid, inheriting from Fluide_base.
Open boundary on which the mass flux rho.U is imposed instead of the velocity U.
void completer() override
DOES NOTHING must be overridden in derived classes.
OBS_PTR(Fluide_Dilatable_base) le_fluide
const DoubleTab & tab_val_imp(double temps=DMAXFLOAT) const override
double val_imp_au_temps(double temps, int i) const override
Returns the imposed value on the i-th component of the field at the boundary at the specified time.
int compatible_avec_eqn(const Equation_base &) const override