TrioCFD 1.9.9_beta
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 Class Solide: represents a solid medium and its physical properties.
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 */
class Champ_Don_base base class of Given Fields (not calculated)
class Discretisation_base This class represents a spatial discretization scheme, which
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
friend class Entree
Definition Objet_U.h:71
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
class Probleme_base It is a Probleme_U that is not a coupling.
Class Solide: represents a solid medium and its physical properties.
Definition Solide.h:26
void verifier_coherence_champs(int &err, Nom &message) override
Verifies that the fields characterising the solid medium read by readOn(Entree&) are consistent.
Definition Solide.cpp:55
const bool & is_user_defined() const
Definition Solide.h:35
int lire_motcle_non_standard(const Motcle &, Entree &) override
Reads non-simple-type parameters of an Objet_U from an input stream.
Definition Solide.cpp:70
void discretiser(const Probleme_base &pb, const Discretisation_base &dis) override
Definition Solide.cpp:81
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