TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Champ_Fonc_MED_Table_Temps.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 Champ_Fonc_MED_Table_Temps_included
17#define Champ_Fonc_MED_Table_Temps_included
18
19#include <Champ_Fonc_MED.h>
20#include <Champ_lu_proto.h>
21#include <Table.h>
22
23class Param;
24
25/*! @brief : class Champ_Fonc_MED_Table_Temps
26 *
27 * <Description of class Champ_Fonc_MED_Table_Temps>
28 */
30{
31 Declare_instanciable( Champ_Fonc_MED_Table_Temps ) ;
32public:
33 void lire_donnees_champ(const std::string& fileName, const std::string& meshName, const std::string& fieldName, ArrOfDouble& temps_sauv, int& size, int& nbcomp, Nom& type_champ) override;
34 void lire(double tps, int given_iteration = -1) override;
35 bool instationnaire() const override;
36
37protected :
38 void set_param(Param& param) const override;
39 int lire_motcle_non_standard(const Motcle&, Entree&) override;
40 inline virtual const Champ_Fonc_base& le_champ0() const { return vrai_champ0_.valeur(); }
41 inline virtual Champ_Fonc_base& le_champ0() { return vrai_champ0_.valeur(); }
42
44 OWN_PTR(Champ_Fonc_base) vrai_champ0_;
45 bool table_lue_ = false;
46};
47
48#endif /* Champ_Fonc_MED_Table_Temps_included */
: class Champ_Fonc_MED_Table_Temps
void lire_donnees_champ(const std::string &fileName, const std::string &meshName, const std::string &fieldName, ArrOfDouble &temps_sauv, int &size, int &nbcomp, Nom &type_champ) override
virtual Champ_Fonc_base & le_champ0()
void set_param(Param &param) const override
void lire(double tps, int given_iteration=-1) override
OWN_PTR(Champ_Fonc_base) vrai_champ0_
virtual const Champ_Fonc_base & le_champ0() const
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.
classe Champ_Fonc_MED Load a field from a MED file for a given time.
classe Champ_Fonc_base Classe de base des champs qui sont fonction d'une grandeur calculee
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
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
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
Definition Table.h:29