TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Champ_front_tangentiel.cpp
1/****************************************************************************
2* Copyright (c) 2023, 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_tangentiel.h>
17#include <Motcle.h>
18
19Implemente_instanciable(Champ_front_tangentiel,"Champ_front_tangentiel",Ch_front_var_instationnaire_dep);
20
22{
23 // Cerr<<"printon";
24 const DoubleTab& tab=valeurs();
25 os << tab.size() << " ";
26 for(int i=0; i<tab.size(); i++)
27 os << tab(0,i);
28 return os;
29}
30
31
33{
34 Cerr<<"Reading Champ_front_tangentiel: " << finl;
35
36 Motcle motlu;
37 Motcles les_mots(1);
38 les_mots[0]="vitesse_tangentielle";
39 is>>motlu;
40 if (motlu != les_mots[0])
41 {
42 Cerr << "Error while reading a Champ_front_tangentiel" << finl;
43 Cerr << "We expected vitesse_tangentielle instead of " << motlu << finl;
44 exit();
45 }
46
47 is >> vit_tang;
49 return is;
50}
51
52
53/*! @brief Pas code !!
54 *
55 */
56
58{
59 // Cerr<<"avant de retourner"<<finl;
60 return *this;
61}
classe Ch_front_var_instationnaire_dep Cette classe abstraite represente un champ sur une frontiere,
classe Champ_front_base Classe de base pour la hierarchie des champs aux frontieres.
virtual DoubleTab & valeurs() override
Renvoie le tableau des valeurs du champ.
class Champ_front_tangentiel
Champ_front_base & affecter_(const Champ_front_base &ch) override
Pas code !!
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
virtual void fixer_nb_comp(int i)
Fixe le nombre de composantes du champ.
static int dimension
Definition Objet_U.h:99
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
static void exit(int exit_code=-1)
Routine de sortie de TRUST dans une region Kokkos.
Definition Process.cpp:455
Classe de base des flux de sortie.
Definition Sortie.h:52
_SIZE_ size() const
Definition TRUSTVect.tpp:45