TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Champ_Ostwald.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 Champ_Ostwald_included
17#define Champ_Ostwald_included
18
19#include <Champ_Fonc_P0_base.h>
20#include <Champ_Don_base.h>
21#include <TRUST_Ref.h>
22
23class Fluide_Ostwald;
24
25/*! @brief classe Champ_Ostwald Represente un champ qui varie en fonction de la consistance et
26 *
27 * de l'indice de structure.
28 * Classe mere qui gere le champ utilise pour le fluide d'Ostwald dans les deux
29 * discretisations.
30 * Possede les fonctions generiques aux deux discretisations.
31 * Fait reference a un fluide d'Ostwald pour pouvoir utiliser les deux
32 * parametres du fluide d'Ostwald : K et N.
33 *
34 * @sa Champ_Don_base
35 */
37{
38 Declare_instanciable(Champ_Ostwald);
39public :
40 void mettre_a_jour(double temps) override;
41 int initialiser(const double temps) override;
42 int fixer_nb_valeurs_nodales(int nb_noeuds) override;
43 Champ_base& affecter_(const Champ_base& ) override;
44 virtual void me_calculer(double tps);
45
46 inline virtual const Fluide_Ostwald& mon_fluide() const { return mon_fluide_.valeur(); }
47
48 inline void associer_fluide(const Fluide_Ostwald& le_fluide)
49 {
50 mon_fluide_ = le_fluide;
51 }
52
53protected:
54 OBS_PTR(Fluide_Ostwald) mon_fluide_; // pour obtenir K et N
55};
56
57#endif /* Champ_Ostwald_included */
classe Champ_Ostwald Represente un champ qui varie en fonction de la consistance et
void mettre_a_jour(double temps) override
Mise a jour en temps du champ.
Champ_base & affecter_(const Champ_base &) override
Affecte un Champ_base dans un Champ_Fonc_base.
virtual void me_calculer(double tps)
OBS_PTR(Fluide_Ostwald) mon_fluide_
void associer_fluide(const Fluide_Ostwald &le_fluide)
virtual const Fluide_Ostwald & mon_fluide() const
int initialiser(const double temps) override
NE FAIT RIEN.
int fixer_nb_valeurs_nodales(int nb_noeuds) override
Fixe le nombre de degres de liberte par composante.
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
class Fluide_Ostwald