TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Postraitement_FTD.cpp
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#include <Postraitement_FTD.h>
17
18Implemente_instanciable(Postraitement_FTD, "Postraitement_FTD", Postraitement_FTD_base);
19
22
24{
25 // On autorise juste ca pour Postraitement_FTD
26 param.ajouter("Fichier",&nom_fich_);
27 param.ajouter("Format",&format_);
28 param.ajouter_non_std("dt_post",(this), Param::REQUIRED);
29
30 // attention, here we dont call the mother's method ... we need only interfaces
31 param.ajouter_non_std("interfaces", (this), Param::REQUIRED);
32}
33
35{
36 if (!champs_demande_)
37 champs_demande_ = true; // car sans bloc champs !!!
38
40 const Schema_Temps_base& sch = mon_probleme->schema_temps();
41 double temps_courant = sch.temps_courant();
42
43 // XXX Elie Saikali : utile pour CGNS
44 format_post_->set_lagrangian_domain();
45
47 {
48 int reprise = mon_probleme->reprise_effectuee();
49 format_post_->ecrire_entete(temps_courant, reprise, est_le_premier_postraitement_pour_nom_fich_);
50 }
51
53}
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
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
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
void ajouter(const char *keyword, const int *value, Param::Nature nat=Param::OPTIONAL)
Register an integer parameter.
Definition Param.cpp:364
@ REQUIRED
Definition Param.h:115
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.
Definition Param.cpp:489
void init() override
Initialise le postraitement.
void set_param(Param &param) const override
int est_le_premier_postraitement_pour_nom_fich_
double dernier_temps_
int & est_le_premier_postraitement_pour_nom_fich()
bool besoin_postraiter_champs()
class Schema_Temps_base
double temps_courant() const
Renvoie le temps courant.
double temps_init() const
Renvoie le temps initial.
Classe de base des flux de sortie.
Definition Sortie.h:52