TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Champ_front_calc.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 Champ_front_calc_included
17#define Champ_front_calc_included
18
19#include <Ch_front_var_instationnaire_dep.h>
20#include <TRUST_Ref.h>
21#include <Motcle.h>
22
25class Champ_Inc_base;
26class Front_dis_base;
27class Equation_base;
28class Milieu_base;
29
30/*! @brief class Champ_front_calc Derived class of Champ_front_var representing
31 *
32 * boundary fields obtained by taking the trace
33 * of an object of type OWN_PTR(Champ_Inc_base) (unknown field of an equation)
34 *
35 * @sa Champ_front_var_instationnaire Champ_Inc
36 */
38{
39 Declare_instanciable_sans_constructeur(Champ_front_calc);
40public:
42 int initialiser(double, const Champ_Inc_base&) override;
44 Champ_front_base& affecter_(const Champ_front_base& ch) override;
45 void mettre_a_jour(double temps) override;
46 void creer(const Nom&, const Nom&, const Motcle&);
47 void verifier(const Cond_lim_base& la_cl) const override;
48
49 // Methods to access the opposite objects:
50 const Champ_Inc_base& inconnue() const;
51 const Nom& nom_bord_oppose() const;
52 const Equation_base& equation() const;
53 const Milieu_base& milieu() const;
54 const Domaine_dis_base& domaine_dis() const override;
56 const Frontiere_dis_base& front_dis() const;
57 inline void set_distant(int d) { distant_=d ; }
58
59protected :
60 OBS_PTR(Champ_Inc_base) l_inconnue; // Unknown of the opposite problem
61 Nom nom_autre_bord_,nom_autre_pb_; // Name of the boundary and of the opposite problem
63 bool via_readon_ = false;
64 int distant_; // by default distant_ equals 1
65};
66
67#endif /* Champ_front_calc_included */
class Ch_front_var_instationnaire_dep This abstract class represents a field on a boundary,
Class Champ_Inc_base.
class Champ_front_base Base class for the hierarchy of boundary fields.
const Frontiere_dis_base & front_dis() const
Returns the discretized boundary corresponding to the domain on which the trace is taken.
void creer(const Nom &, const Nom &, const Motcle &)
Create the Champ_front_calc object representing the trace of an unknown field on a boundary from name...
const Nom & nom_bord_oppose() const
Returns the name of the boundary on which the trace is computed.
int initialiser(double, const Champ_Inc_base &) override
Initialization at the beginning of calculation.
const Domaine_Cl_dis_base & domaine_Cl_dis() const
Returns the domain of discretized boundary conditions carried by the equation carrying the unknown fi...
void set_distant(int d)
Champ_front_base & affecter_(const Champ_front_base &ch) override
Not implemented.
const Equation_base & equation() const
Returns the equation associated with the unknown whose trace is taken.
OBS_PTR(Champ_Inc_base) l_inconnue
void associer_ch_inc_base(const Champ_Inc_base &)
Associate the unknown field to the object.
void verifier(const Cond_lim_base &la_cl) const override
void mettre_a_jour(double temps) override
Time update of the field. We simply take the trace of the unknown field at the.
const Champ_Inc_base & inconnue() const
Returns the associated unknown field.
const Domaine_dis_base & domaine_dis() const override
Returns the discretized domain associated with the equation carrying the unknown field whose trace is...
const Milieu_base & milieu() const
Returns the medium associated with the equation carrying the unknown field whose trace is taken.
class Cond_lim_base Base class for the hierarchy of classes that represent the different boundary con...
class Domaine_Cl_dis_base Domaine_Cl_dis_base objects represent discretized boundary conditions
class Domaine_dis_base This class is the base of the hierarchy of discretized domains.
class Equation_base The role of an equation is the calculation of one or more fields....
class Frontiere_dis_base Class representing a discretized boundary.
Milieu_base This class is the base of the (physical) medium hierarchy.
Definition Milieu_base.h:50
A character string (Nom) in uppercase.
Definition Motcle.h:26
class Nom: a character string for naming TRUST objects.
Definition Nom.h:31