TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Solide.h
1/****************************************************************************
2* Copyright (c) 2026, 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 Solide_included
17#define Solide_included
18
19#include <Milieu_base.h>
20
21/*! @brief Classe Solide Cette classe represente un milieu solide et ses proprietes.
22 *
23 * @sa Milieu_base
24 */
25class Solide : public Milieu_base
26{
27 Declare_instanciable(Solide);
28public:
29 int lire_motcle_non_standard(const Motcle&, Entree&) override;
30 void set_param(Param& param) const override;
31 void verifier_coherence_champs(int& err,Nom& message) override;
32 void discretiser(const Probleme_base& pb, const Discretisation_base& dis) override;
33
34 inline const DoubleTab& get_user_champ() const { return mon_champ_->valeurs(); }
35 inline const bool& is_user_defined() const { return is_user_defined_; }
36 inline const Motcle& get_user_champ_name() const { return nom_champ_; }
37
38private:
39 bool is_user_defined_ = false;
40 Motcle nom_champ_;
41 OWN_PTR(Champ_Don_base) mon_champ_;
42};
43
44#endif /* Solide_included */
classe Champ_Don_base classe de base des Champs donnes (non calcules)
classe Discretisation_base Cette classe represente un schema de discretisation en espace,...
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
friend class Entree
Definition Objet_U.h:76
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
classe Probleme_base C'est un Probleme_U qui n'est pas un couplage.
Classe Solide Cette classe represente un milieu solide et ses proprietes.
Definition Solide.h:26
void verifier_coherence_champs(int &err, Nom &message) override
Verifie que les champs caracterisant le milieu solide qui on ete lu par readOn(Entree&) sont coherent...
Definition Solide.cpp:57
const bool & is_user_defined() const
Definition Solide.h:35
int lire_motcle_non_standard(const Motcle &, Entree &) override
Lecture des parametres de type non simple d'un objet_U a partir d'un flot d'entree.
Definition Solide.cpp:72
void discretiser(const Probleme_base &pb, const Discretisation_base &dis) override
Definition Solide.cpp:83
void set_param(Param &param) const override
Definition Solide.cpp:41
const DoubleTab & get_user_champ() const
Definition Solide.h:34
const Motcle & get_user_champ_name() const
Definition Solide.h:36