TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Navier_Stokes_std_sensibility.h
1/****************************************************************************
2* Copyright (c) 2020, 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 Navier_Stokes_std_sensibility_included
17#define Navier_Stokes_std_sensibility_included
18
19#include <Navier_Stokes_std.h>
20
21/*! @brief : class Navier_Stokes_std_sensibility
22 *
23 * <Description of class Navier_Stokes_std_sensibility>
24 *
25 *
26 *
27 */
29{
30
31 Declare_instanciable_sans_constructeur_ni_destructeur( Navier_Stokes_std_sensibility ) ;
32
33public :
36 void set_param(Param& param) const override;
37 int lire_motcle_non_standard(const Motcle& mot, Entree& is) override;
38 void associate_evaluator_field(const Nom& one_name_state_pb,const Motcle& one_name_state_field);
39 void update_evaluator_field(const Nom& one_name_state_pb,const Motcle& one_name_state_field);
40 void mettre_a_jour(double temps) override;
41 const DoubleTab& get_state_field() const;
42 const Champ_Inc_base& get_state() const;
44 const double& get_poly_chaos_value() const;
45 const bool& get_adjoint_value() const;
46
47
48protected :
49 OBS_PTR(Champ_Inc_base) state_field; //Reference to the unknown field of the state problem
50 Nom name_state_pb; //name of the problem state
51 Motcle name_state_field; //name of the unknown field of the state problem
52 Motcle uncertain_var; //name of the unknown field of the uncertain variable
53 double poly_chaos; //It is the method that we will use to study the sensitivity of the Navier Stokes equation:
54 // if poly_chaos=0. thats mean that the sensitivity will be treated by the standard sentivity method and if not it will be treated by the polynomial chaos method
55 bool adjoint = false;
56};
57
58#endif /* Navier_Stokes_std_sensibility_included */
Classe Champ_Inc_base.
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
OBS_PTR(Champ_Inc_base) state_field
void set_param(Param &param) const override
void mettre_a_jour(double temps) override
Effectue une mise a jour en temps de l'equation.
void update_evaluator_field(const Nom &one_name_state_pb, const Motcle &one_name_state_field)
int lire_motcle_non_standard(const Motcle &mot, Entree &is) override
Lecture des parametres de type non simple d'un objet_U a partir d'un flot d'entree.
void associate_evaluator_field(const Nom &one_name_state_pb, const Motcle &one_name_state_field)
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
friend class Entree
Definition Objet_U.h:76
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112