TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Champ_Front_xyz_Tabule.cpp
1/****************************************************************************
2* Copyright (c) 2022, 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#include <Champ_Front_xyz_Tabule.h>
17#include <Domaine.h>
18#include <Frontiere_dis_base.h>
19#include <Domaine_VF.h>
20#include <TRUSTTrav.h>
21#include <Lecture_Table.h>
22
23Implemente_instanciable( Champ_Front_xyz_Tabule, "Champ_Front_xyz_Tabule", Champ_front_txyz ) ;
24// XD Champ_Front_xyz_Tabule champ_front_fonc_txyz Champ_Front_xyz_Tabule NO_BRACE Space dependent field on the
25// XD_CONT boundary, tabulated as a function of time.
26// XD attr val listchaine val REQ Values of field components (mathematical expressions).
27// XD attr bloc bloc_lecture bloc REQ {nt1 t2 t3 ....tn u1 [v1 w1 ...] u2 [v2 w2 ...] u3 [v3 w3 ...] ... un [vn wn ...]
28// XD_CONT } NL2 Values are entered into a table based on n couples (ti, ui) if nb_comp value is 1. The value of a field
29// XD_CONT at a given time is calculated by linear interpolation from this table.
30
32{
34 return os;
35}
36
38{
39
41 Lecture_Table lec_table;
42 lec_table.lire_table(is,la_table);
43
44 return is;
45}
46
47
49{
51 DoubleTab& tab=valeurs_au_temps(temps);
52 double val_t = la_table.val(temps);
53 tab*=val_t;
55}
56
57double Champ_Front_xyz_Tabule::valeur_au_temps_et_au_point(double temps,int som,double x,double y, double z, int k) const
58{
59 double val_xyz = Champ_front_txyz::valeur_au_temps_et_au_point(temps,som,x,y,z,k);
60 double val_t = la_table.val(temps);
61 return val_xyz*val_t;
62}
: class Champ_Front_xyz_Tabule
double valeur_au_temps_et_au_point(double temps, int som, double x, double y, double z, int comp) const override
void mettre_a_jour(double temps) override
NE FAIT RIEN, a surcharger.
classe Champ_front_txyz Classe derivee de Champ_front_var qui represente les
void mettre_a_jour(double temps) override
NE FAIT RIEN, a surcharger.
double valeur_au_temps_et_au_point(double temps, int som, double x, double y, double z, int comp) const override
DoubleTab & valeurs_au_temps(double temps) override
Renvoie les valeurs au temps desire.
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
Entree & lire_table(Entree &is, Table &la_table)
virtual Entree & readOn(Entree &)
Lecture d'un Objet_U sur un flot d'entree Methode a surcharger.
Definition Objet_U.cpp:293
virtual Sortie & printOn(Sortie &) const
Ecriture de l'objet sur un flot de sortie Methode a surcharger.
Definition Objet_U.cpp:282
Classe de base des flux de sortie.
Definition Sortie.h:52
virtual void echange_espace_virtuel(IsExchangeBlocking exchange_type=IsExchangeBlocking::DefaultBlocking, const std::string kernel_name="noname")