TrioCFD 1.9.9_beta
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 class Champ_Ostwald_VEF
27 *
28 * @brief Represents a field in VEF discretization that varies as a function
29 * of the consistency and the structure index.
30 * Field used for the Ostwald fluid with VEF discretization.
31 * References domaine_VEF to use the correct domain with domaine_dis_base,
32 * Champ_P1NC to compute D:D,
33 * Navier_Stokes_std to access the thermo-hydraulic equation
34 * and use one of its unknowns: the velocity.
35 *
36 * @sa Champ_Ostwald
37 */
39{
40 Declare_instanciable(Champ_Ostwald_VEF);
41public :
42 void associer_eqn(const Navier_Stokes_std& );
43 void mettre_a_jour(double temps) override;
44 void me_calculer(double tps) override;
45 int initialiser(const double temps) override;
46 void init_mu(DoubleTab& );
47 void calculer_dscald(DoubleTab&);
48
49 inline const Champ_P1NC& mon_champs() const { return mon_champ_.valeur(); }
50 inline void associer_champ(const Champ_P1NC& un_champ) { mon_champ_ = un_champ; }
51
52protected :
53 void calculer_mu(DoubleTab& );
54 OBS_PTR(Champ_P1NC) mon_champ_;
55 OBS_PTR(Navier_Stokes_std) eq_hydraulique;
56};
57
58#endif /* Champ_Ostwald_VEF_included */
class Champ_Ostwald_VEF
void calculer_mu(DoubleTab &)
Compute the viscosity mu as a function of the consistency and the structure index using the Ostwald l...
void init_mu(DoubleTab &)
Initialize the field.
OBS_PTR(Champ_P1NC) mon_champ_
int initialiser(const double temps) override
DOES NOTHING.
void associer_eqn(const Navier_Stokes_std &)
void me_calculer(double tps) override
Compute the Ostwald field: compute D::D then compute mu.
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
Update the parameter mu at the given time.
Champ_Ostwald Represents a field that varies as a function of consistency and.
class Domaine_VEF
Definition Domaine_VEF.h:53
Navier_Stokes_std This class carries the terms of the momentum equation.