16#include <Discretisation_base.h>
17#include <Schema_Temps_base.h>
18#include <Champ_Uniforme.h>
19#include <Champ_Fonc_MED.h>
20#include <Probleme_base.h>
21#include <Equation_base.h>
37 if (mon_champ_) champs_don_.add(mon_champ_.valeur());
44 param.
ajouter_condition(
"is_read_rho",
"Density (rho) has not been read for a Solide type medium.");
45 param.
ajouter_condition(
"is_read_Cp",
"Heat capacity (Cp) has not been read for a Solide type medium.");
46 param.
ajouter_condition(
"is_read_lambda",
"Conductivity (lambda) has not been read for a Solide type medium.");
62 msg +=
"The conductivity lambda is not striclty positive. \n";
72 if (mot ==
"user_field")
85 Cerr <<
"WHAT ?? It makes no sense to define diametre_hyd_champ in a Solid medium !!!" << finl;
92 is_user_defined_ =
true;
97 Cerr<<
"Convert Champ_fonc_MED " << nom_champ_ <<
" to a OWN_PTR(Champ_Don_base) ..."<<finl;
100 tmp_fld->affecter(mon_champ_.valeur());
102 dis.
discretiser_champ(
"champ_elem",domaine_dis,nom_champ_,
"neant",1,temps,mon_champ_);
103 mon_champ_->valeurs() = tmp_fld->valeurs();
107 const double val = mon_champ_->valeurs()(0,0);
109 dis.
discretiser_champ(
"champ_elem",domaine_dis,nom_champ_,
"neant",1,temps,mon_champ_);
110 mon_champ_->valeurs() = val;
class Champ_Don_base base class of Given Fields (not calculated)
class Champ_Fonc_MED Load a field from a MED file for a given time.
class Discretisation_base This class represents a spatial discretization scheme, which
void nommer_completer_champ_physique(const Domaine_dis_base &domaine_vdf, const Nom &nom_champ, const Nom &unite, Champ_base &champ, const Probleme_base &pbi) const
void discretiser_champ(const Motcle &directive, const Domaine_dis_base &z, const Nom &nom, const Nom &unite, int nb_comp, int nb_pas_dt, double temps, OWN_PTR(Champ_Inc_base)&champ, const Nom &sous_type=NOM_VIDE) const
class Domaine_dis_base This class is the base of the hierarchy of discretized domains.
Class defining operators and methods for all reading operation in an input flow (file,...
Domaine_dis_base & domaine_dis()
Returns the discretized domain associated with the equation.
Milieu_base This class is the base of the (physical) medium hierarchy.
virtual void discretiser(const Probleme_base &pb, const Discretisation_base &dis)
virtual void verifier_coherence_champs(int &err, Nom &message)
int lire_motcle_non_standard(const Motcle &, Entree &) override
Reads non-simple-type parameters of an Objet_U from an input stream.
Champs_compris champs_compris_
virtual void set_param(Param ¶m) const override
const bool & has_hydr_diam()
A character string (Nom) in uppercase.
class Nom: a character string for naming TRUST objects.
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
Helper class to factorize the readOn method of Objet_U classes.
void ajouter_condition(const char *condition, const char *message, const char *name=0)
Declare a post-read logical condition that must hold on the parameter values.
void ajouter_non_std(const char *keyword, const Objet_U *value, Param::Nature nat=Param::OPTIONAL)
Register a keyword handled by Objet_U::lire_motcle_non_standard.
class Probleme_base It is a Probleme_U that is not a coupling.
const Schema_Temps_base & schema_temps() const
Returns the time scheme associated with the problem.
virtual const Equation_base & equation(int) const =0
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
double temps_courant() const
Returns the current time.
Class Solide: represents a solid medium and its physical properties.
void verifier_coherence_champs(int &err, Nom &message) override
Verifies that the fields characterising the solid medium read by readOn(Entree&) are consistent.
int lire_motcle_non_standard(const Motcle &, Entree &) override
Reads non-simple-type parameters of an Objet_U from an input stream.
void discretiser(const Probleme_base &pb, const Discretisation_base &dis) override
void set_param(Param ¶m) const override
Base class for output streams.