TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Champ_Ostwald_VDF.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_VDF_included
17#define Champ_Ostwald_VDF_included
18
19#include <Champ_Face_VDF.h>
20#include <Champ_Ostwald.h>
21#include <TRUST_Ref.h>
22
23/*! @brief class Champ_Ostwald_VDF
24 *
25 * @brief Represents a field in VDF discretization that varies as a function
26 * of the consistency and the structure index.
27 * Field used for the Ostwald fluid with VDF discretization.
28 * References Champ_Face to trigger the computation of D:D in Champ4.cpp,
29 * and uses domaine_VDF.
30 *
31 * @sa Champ_Ostwald
32 */
34{
35 Declare_instanciable(Champ_Ostwald_VDF);
36public :
37 void mettre_a_jour(double temps) override;
38 void me_calculer(double tps) override;
39 int initialiser(const double temps) override;
40
41 inline const Champ_Face_VDF& mon_champs() const { return mon_champ_.valeur(); }
42 inline void associer_champ(const Champ_Face_VDF& un_champ) { mon_champ_ = un_champ; }
43
44protected :
45 void calculer_mu(DoubleTab& );
47};
48
49#endif /* Champ_Ostwald_VDF_included */
class Champ_Face_VDF
class Champ_Ostwald_VDF
void mettre_a_jour(double temps) override
Time update of the field.
void me_calculer(double tps) override
Computes the Ostwald field: computes D::D then computes mu.
OBS_PTR(Champ_Face_VDF) mon_champ_
const Champ_Face_VDF & mon_champs() const
int initialiser(const double temps) override
Initializes the field.
void associer_champ(const Champ_Face_VDF &un_champ)
void calculer_mu(DoubleTab &)
Computes the viscosity mu as a function of consistency and structural index using the Ostwald law.
Champ_Ostwald Represents a field that varies as a function of consistency and.