TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Paroi_decalee_Robin.cpp
1/****************************************************************************
2* Copyright (c) 2023, 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#include <Convection_Diffusion_Temperature_Turbulent.h>
17#include <Navier_Stokes_Turbulent.h>
18#include <Paroi_decalee_Robin.h>
19#include <Equation_base.h>
20#include <Param.h>
21
22Implemente_instanciable(Paroi_decalee_Robin, "Paroi_decalee_Robin", Symetrie);
23// XD paroi_decalee_robin condlim_base paroi_decalee_robin BRACE This keyword is used to designate a Robin boundary
24// XD_CONT condition (a.u+b.du/dn=c) associated with the Pironneau methodology for the wall laws. The value of given by
25// XD_CONT the delta option is the distance between the mesh (where symmetry boundary condition is applied) and the
26// XD_CONT fictious wall. This boundary condition needs the definition of the dedicated source terms (Source_Robin or
27// XD_CONT Source_Robin_Scalaire) according the equations used.
28
29Sortie& Paroi_decalee_Robin::printOn(Sortie& s) const { return s << que_suis_je() << finl; }
30
32{
33 le_champ_front.typer("Champ_front_uniforme");
34 le_champ_front->fixer_nb_comp(0);
35 Param param(que_suis_je());
36 param.ajouter("delta", &delta, Param::REQUIRED); // XD attr delta floattant delta REQ not_set
37 param.lire_avec_accolades_depuis(s);
38 return s;
39}
40
41// This boundary condition only supports the equations Navier_Stokes_turbulent and Convection_Diffusion_Temperature_Turbulent
43{
44 if (sub_type(Navier_Stokes_Turbulent, eqn) || sub_type(Convection_Diffusion_Temperature_Turbulent, eqn)) return 1;
45 else
46 {
48 return 0;
49 }
50}
void err_pas_compatible(const Equation_base &) const
This method is called when the boundary condition is not compatible with the equation on which we try...
Turbulent convection-diffusion equation when the unknown is temperature.
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
class Equation_base The role of an equation is the calculation of one or more fields....
Navier-Stokes equation for a viscous incompressible fluid (div U = 0) with turbulence modelling.
const Nom & que_suis_je() const
Returns the string identifying the class.
Definition Objet_U.cpp:104
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
Definition Objet_U.cpp:289
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
Definition Objet_U.cpp:278
@ REQUIRED
Definition Param.h:115
int compatible_avec_eqn(const Equation_base &) const override
Base class for output streams.
Definition Sortie.h:52
Symetrie On symmetry faces, the following properties hold:
Definition Symetrie.h:37