TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Milieu_Incompressible_Phase_Field.h
1/****************************************************************************
2* Copyright (c) 2025, 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 Milieu_Incompressible_Phase_Field_included
17#define Milieu_Incompressible_Phase_Field_included
18
19#include <Fermeture_Thermo_base.h>
20#include <Fluide_Incompressible.h>
21#include <Navier_Stokes_Variable_Density.h>
22
24
26{
27 Declare_instanciable(Milieu_Incompressible_Phase_Field);
28public:
29 void set_param(Param& param) const override;
30 int lire_motcle_non_standard(const Motcle&, Entree&) override;
31 void discretiser(const Probleme_base& pb, const Discretisation_base& dis) override;
32 int initialiser(const double temps) override;
33 void mettre_a_jour(double temps) override;
34
35 inline const Fermeture_Thermo_base& fermeture() const { return fermeture_; }
36 inline Fermeture_Thermo_base& fermeture() { return fermeture_; }
37 inline const Champ_Don_base& masse_volumique_variable() const override { return rho_; };
38
39protected:
40 void calculer_rho(const bool init = false);
41 void calculer_mu(const bool init = false);
42
43 OWN_PTR(Fermeture_Thermo_base) fermeture_; // Potentiel chimique généralisé contenant les fermetures thermodynamiques du système
44 OWN_PTR(Champ_Don_base) rho_; // Masse volumique telle que reconstruite à partir du champ c de Cahn-Hilliard / le champs ch_rho_ de Fluide_Incompressible représente la valeur référence de cette masse volumique
45 DoubleVect mu_coefficients_; // coefficients associés à la dépendance de mu à c
46
47};
48
49#endif /* Milieu_Incompressible_Phase_Field_included */
classe Champ_Don_base classe de base des Champs donnes (non calcules)
classe Discretisation_base Cette classe represente un schema de discretisation en espace,...
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
classe Fermeture_Thermo_base
void discretiser(const Probleme_base &pb, const Discretisation_base &dis) override
const Fermeture_Thermo_base & fermeture() const
int lire_motcle_non_standard(const Motcle &, Entree &) override
Lecture des parametres de type non simple d'un objet_U a partir d'un flot d'entree.
int initialiser(const double temps) override
Initialise les parametres du fluide.
void mettre_a_jour(double temps) override
Effectue une mise a jour en temps du milieu, et donc de ses parametres caracteristiques.
const Champ_Don_base & masse_volumique_variable() const override
OWN_PTR(Fermeture_Thermo_base) fermeture_
OWN_PTR(Champ_Don_base) rho_
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
Classe Pb_Cahn_Hilliard Cette classe represente un probleme multiphase avec champs conservés (équatio...
classe Probleme_base C'est un Probleme_U qui n'est pas un couplage.