TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Sonde_IJK.h
1/****************************************************************************
2* Copyright (c) 2015 - 2016, 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 Sonde_IJK_included
17#define Sonde_IJK_included
18
19#include <Sonde.h>
20#include <Postraitement.h>
21#include <IJK_Field.h>
22#include <TRUST_Ref.h>
23
25
26/*! @brief class Sonde_IJK
27 */
28class Sonde_IJK : public Sonde
29{
30
31 Declare_instanciable( Sonde_IJK ) ;
32
33public :
34
35 void completer() override;
36
37protected :
38 const Domaine& get_domaine_geom() const override;
39 const Noms get_noms_champ() const override;
40 int get_nb_compo_champ() const override;
41 double get_temps_champ() const override;
42 void validate_type(const Motcle& loc) const override;
43 void validate_position() const override;
44 void create_champ_generique(Entree& is, const Motcle& motlu) override { /* do nothing */ }
45 void fix_probe_position() override;
46 void fix_probe_position_grav() override;
47 void fill_local_values() override;
48 void update_source(double un_temps) override { /* do nothing */ }
49
51 OBS_PTR(IJK_Field_double) ref_ijk_field_;
52 IJK_Field_double tmp_storage_;
53
54 int ncomp = 1; ///< Number of the component to handle
56
57private:
58 void fix_probe_position_generic(Domaine_IJK::Localisation loc);
59
60 /** In IJK we need to store the initial name of the requested field because of the switch done on some fields
61 * (see Champs_compris_IJK::switch_ft_fields()). This switch might rename the field, but we want this to stay
62 * constant for a probe!
63 */
64 Nom field_name_;
65};
66
67#endif /* Sonde_IJK_included */
Localisation
Localisation sub class.
Definition Domaine_IJK.h:53
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
Un tableau de chaine de caracteres (VECT(Nom)).
Definition Noms.h:26
friend class Entree
Definition Objet_U.h:76
class Sonde_IJK
Definition Sonde_IJK.h:29
void update_source(double un_temps) override
Definition Sonde_IJK.h:48
double get_temps_champ() const override
Definition Sonde_IJK.cpp:98
const Domaine & get_domaine_geom() const override
Definition Sonde_IJK.cpp:79
OBS_PTR(IJK_Field_double) ref_ijk_field_
IJK_Field_double tmp_storage_
Definition Sonde_IJK.h:52
void create_champ_generique(Entree &is, const Motcle &motlu) override
Definition Sonde_IJK.h:44
void fix_probe_position_grav() override
void fix_probe_position() override
OBS_PTR(Probleme_FTD_IJK_base) ref_ijk_ft_
void validate_type(const Motcle &loc) const override
Definition Sonde_IJK.cpp:54
const Noms get_noms_champ() const override
Definition Sonde_IJK.cpp:85
int get_nb_compo_champ() const override
Definition Sonde_IJK.cpp:92
int ncomp
Number of the component to handle.
Definition Sonde_IJK.h:54
void validate_position() const override
Definition Sonde_IJK.cpp:73
void completer() override
Definition Sonde_IJK.cpp:34
int nbre_points_tot
Definition Sonde_IJK.h:55
void fill_local_values() override
Sonde()
Constructeur d'une sonde sans parametre.
Definition Sonde.cpp:145