TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Cond_lim_utilisateur_base.h
1/****************************************************************************
2* Copyright (c) 2024, 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 Cond_lim_utilisateur_base_included
17#define Cond_lim_utilisateur_base_included
18
19#include <Cond_lim_base.h>
20#include <Motcle.h>
21
22class Cond_lim;
23
24/*! @brief class Cond_lim_utilisateur_base: Classes inheriting from this class are user classes
25 *
26 * they will transform the data file
27 * the cl_utilisateur is typed and passed in the complement method (addition)
28 * In the data file we had boundary cl_util field....
29 * everything happens as if we did not have cl_util but addition field...
30 *
31 */
33{
34 Declare_base(Cond_lim_utilisateur_base);
35public:
36 void lire(Entree&,Equation_base&,const Nom& nom_bord);
37 virtual void complement(Nom&);
38
39 inline int compatible_avec_eqn(const Equation_base&) const override
40 {
41 Cerr<<"we should not be here"<<(int)__LINE__<<__FILE__ <<finl;
43 return 0;
44 }
45
46 Cond_lim& la_cl();
47 int is_pb_rayo();
48
49 virtual void ecrire(const Nom&);
50protected :
51 Cond_lim* la_cl_ = nullptr;
52 OBS_PTR(Equation_base) mon_equation;
54};
55
56#endif /* Cond_lim_utilisateur_base_included */
class Cond_lim_base Base class for the hierarchy of classes that represent the different boundary con...
class Cond_lim_utilisateur_base: Classes inheriting from this class are user classes
OBS_PTR(Equation_base) mon_equation
void lire(Entree &, Equation_base &, const Nom &nom_bord)
int is_pb_rayo()
Returns 0 if the problem is not radiating, 1 if it is semi-transparent,.
int compatible_avec_eqn(const Equation_base &) const override
class Cond_lim Generic class used to represent any class
Definition Cond_lim.h:31
class Equation_base The role of an equation is the calculation of one or more fields....
class Nom: a character string for naming TRUST objects.
Definition Nom.h:31
friend class Entree
Definition Objet_U.h:71
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Definition Process.cpp:466