TrioCFD 1.9.8
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 classe Champ_Ostwald_VDF Represente un champ en discretisation VDF qui varie en fonction
24 *
25 * de la consistance et de l'indice de structure.
26 * Champ utilise pour le fluide d'Ostwald et la discretisation VDF.
27 * Fait reference a Champ_Face pour lancer le calcul de D:D dans Champ4.cpp
28 * domaine_VDF pou utiliser la
29 *
30 * @sa Champ_Ostwald
31 */
33{
34 Declare_instanciable(Champ_Ostwald_VDF);
35public :
36 void mettre_a_jour(double temps) override;
37 void me_calculer(double tps) override;
38 int initialiser(const double temps) override;
39
40 inline const Champ_Face_VDF& mon_champs() const { return mon_champ_.valeur(); }
41 inline void associer_champ(const Champ_Face_VDF& un_champ) { mon_champ_ = un_champ; }
42
43protected :
44 void calculer_mu(DoubleTab& );
46};
47
48#endif /* Champ_Ostwald_VDF_included */
class Champ_Face_VDF Cette classe sert a representer un champ vectoriel dont on ne calcule
classe Champ_Ostwald_VDF Represente un champ en discretisation VDF qui varie en fonction
void mettre_a_jour(double temps) override
Mise a jour en temps du champ.
void me_calculer(double tps) override
Calcul le champ Ostwald : calcul de D::D.
OBS_PTR(Champ_Face_VDF) mon_champ_
const Champ_Face_VDF & mon_champs() const
int initialiser(const double temps) override
Initialise le champs.
void associer_champ(const Champ_Face_VDF &un_champ)
void calculer_mu(DoubleTab &)
Calcul la viscosite mu en fonction de la consistance et de l'indice de structure en utilisant la loi ...
classe Champ_Ostwald Represente un champ qui varie en fonction de la consistance et