TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Sondes_Int.h
1/****************************************************************************
2* Copyright (c) 2024, 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 Sondes_Int_included
17#define Sondes_Int_included
18
19#include <TRUST_List.h>
20#include <Sonde_Int.h>
21
22/*! @brief classe Sondes_Int Cette classe represente une liste d'objets de type Sonde_Int.
23 *
24 * @sa Sonde_Int Postraitement
25 */
26
27class Sondes_Int : public LIST(Sonde_Int)
28{
29 Declare_instanciable(Sondes_Int);
30public:
31 inline void ouvrir_fichiers();
32 inline void fermer_fichiers();
33 void associer_post(const Postraitement&);
34 void postraiter(double );
35 void mettre_a_jour(double temps, double tinit);
36
37private:
38 OBS_PTR(Postraitement) mon_post;
39};
40
41/*! @brief Ouvre tous les fichiers associes a chacune des sondes de la liste.
42 *
43 */
45{
46 for (auto &itr : *this) itr.ouvrir_fichier();
47}
48
49/*! @brief Ferme tous les fichiers des sondes de la liste.
50 *
51 */
53{
54 for (auto &itr : *this) itr.fermer_fichier();
55}
56
57#endif /* Sondes_Int_included */
classe Postraitement La classe est dotee -d une liste de champs generiques champs_post_complet_ qui c...
classe Sondes_Int Cette classe represente une liste d'objets de type Sonde_Int.
Definition Sondes_Int.h:28
void mettre_a_jour(double temps, double tinit)
Effectue une mise a jour en temps de chacune des sondes de la liste.
void associer_post(const Postraitement &)
Associe un postraitement a la liste des sondes.
void ouvrir_fichiers()
Ouvre tous les fichiers associes a chacune des sondes de la liste.
Definition Sondes_Int.h:44
void postraiter(double)
Effectue le postraitement sur chacune des sondes de la liste.
void fermer_fichiers()
Ferme tous les fichiers des sondes de la liste.
Definition Sondes_Int.h:52