TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Champ_Ostwald_VEF.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_VEF_included
17#define Champ_Ostwald_VEF_included
18
19#include <Champ_Ostwald.h>
20#include <Champ_P1NC.h>
21#include <TRUST_Ref.h>
22
24class Domaine_VEF;
25
26/*! @brief classe Champ_Ostwald_VEF Represente un champ en discretisation VEF qui varie en fonction
27 *
28 * de la consistance et de l'indice de structure.
29 * Champ utilise pour le fluide d'Ostwald et la discretisation VEF.
30 * Fait reference a domaine_VEF pou utiliser la bonne domaine avec domaine_dis_base
31 * Champ_P1NC pour calculer D:D
32 * Navier_Stokes_std pour avoir l'equation thermo_hydraulique
33 * et pouvoir utiliser une de ses inconnues: la vitesse.
34 *
35 * @sa Champ_Ostwald
36 */
38{
39 Declare_instanciable(Champ_Ostwald_VEF);
40public :
41 void associer_eqn(const Navier_Stokes_std& );
42 void mettre_a_jour(double temps) override;
43 void me_calculer(double tps) override;
44 int initialiser(const double temps) override;
45 void init_mu(DoubleTab& );
46 void calculer_dscald(DoubleTab&);
47
48 inline const Champ_P1NC& mon_champs() const { return mon_champ_.valeur(); }
49 inline void associer_champ(const Champ_P1NC& un_champ) { mon_champ_ = un_champ; }
50
51protected :
52 void calculer_mu(DoubleTab& );
53 OBS_PTR(Champ_P1NC) mon_champ_;
54 OBS_PTR(Navier_Stokes_std) eq_hydraulique;
55};
56
57#endif /* Champ_Ostwald_VEF_included */
classe Champ_Ostwald_VEF Represente un champ en discretisation VEF qui varie en fonction
void calculer_mu(DoubleTab &)
Calcul la viscosite mu en fonction de la consistance et de l'indice de structure en utilisant la loi ...
void init_mu(DoubleTab &)
Initialise le champs.
OBS_PTR(Champ_P1NC) mon_champ_
int initialiser(const double temps) override
NE FAIT RIEN.
void associer_eqn(const Navier_Stokes_std &)
void me_calculer(double tps) override
Calcul le champ Ostwald : calcul de D::D.
void associer_champ(const Champ_P1NC &un_champ)
const Champ_P1NC & mon_champs() const
OBS_PTR(Navier_Stokes_std) eq_hydraulique
void calculer_dscald(DoubleTab &)
void mettre_a_jour(double temps) override
met le parametre mu a jour
classe Champ_Ostwald Represente un champ qui varie en fonction de la consistance et
class Domaine_VEF
Definition Domaine_VEF.h:54
classe Navier_Stokes_std Cette classe porte les termes de l'equation de la dynamique