TrioCFD 1.9.8
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 classe Champ_front_calc Classe derivee de Champ_front_var qui represente les
31 *
32 * champs a la frontiere obtenus en prenant la trace
33 * d'un objet de type OWN_PTR(Champ_Inc_base) (champ inconnue d'une 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 // Methodes pour acceder aux objets opposes:
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; // L'inconnue du probleme oppose
61 Nom nom_autre_bord_,nom_autre_pb_; // Nom du bord et du probleme oppose
63 bool via_readon_ = false;
64 int distant_; // par defaut distant_ vaut 1
65};
66
67#endif /* Champ_front_calc_included */
classe Ch_front_var_instationnaire_dep Cette classe abstraite represente un champ sur une frontiere,
Classe Champ_Inc_base.
classe Champ_front_base Classe de base pour la hierarchie des champs aux frontieres.
const Frontiere_dis_base & front_dis() const
Renvoie la frontiere discretisee correspondante au domaine sur lequel prend la trace.
void creer(const Nom &, const Nom &, const Motcle &)
Cree l'objet Champ_front_calc representant la trace d'un champ inconnue sur une frontiere a partir de...
const Nom & nom_bord_oppose() const
Renvoie le nom du bord sur lequel on calcule la trace.
int initialiser(double, const Champ_Inc_base &) override
Initialisation en debut de calcul.
const Domaine_Cl_dis_base & domaine_Cl_dis() const
Renvoie le domaine des conditions au limites discretisees porte par l'equation qui porte le champ inc...
void set_distant(int d)
Champ_front_base & affecter_(const Champ_front_base &ch) override
Non code.
const Equation_base & equation() const
Renvoie l'equation associee a l'inconnue dont on prend la trace.
OBS_PTR(Champ_Inc_base) l_inconnue
void associer_ch_inc_base(const Champ_Inc_base &)
Associe le champ inconnue a l'objet.
void verifier(const Cond_lim_base &la_cl) const override
void mettre_a_jour(double temps) override
Mise a jour en temps du champ On prend juste la trace du champ inconnue au pas de.
const Champ_Inc_base & inconnue() const
Renvoie le champ inconnue associe.
const Domaine_dis_base & domaine_dis() const override
Renvoie le domaine discretise associe a l'equation qui porte le champ inconnue dont on prend la trace...
const Milieu_base & milieu() const
Renvoie le milieu associe a l'equation qui porte le champ inconnue dont on prend la trace.
classe Cond_lim_base Classe de base pour la hierarchie des classes qui representent les differentes c...
classe Domaine_Cl_dis_base Les objets Domaine_Cl_dis_base representent les conditions aux limites
classe Domaine_dis_base Cette classe est la base de la hierarchie des domaines discretisees.
classe Equation_base Le role d'une equation est le calcul d'un ou plusieurs champs....
classe Frontiere_dis_base Classe representant une frontiere discretisee.
classe Milieu_base Cette classe est la base de la hierarchie des milieux (physiques)
Definition Milieu_base.h:50
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31