TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Pb_Cahn_Hilliard.cpp
1/****************************************************************************
2* Copyright (c) 2015 - 2016, 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#include <Pb_Cahn_Hilliard.h>
17#include <Cahn_Hilliard.h>
18
19Implemente_instanciable(Pb_Cahn_Hilliard,"Pb_Cahn_Hilliard",Probleme_base);
20// XD pb_cahn_hilliard Pb_base pb_cahn_hilliard INHERITS_BRACE Problem solving the conserved-order-parameter
21// XD_CONT Cahn-Hilliard equation alone (phase-field model without flow).
22// XD attr Milieu_Incompressible_Phase_Field bloc_lecture Milieu_Incompressible_Phase_Field REQ Phase-field
23// XD_CONT incompressible medium (rho, mu, beta_co, fermeture, …).
24// XD attr Cahn_Hilliard bloc_lecture Cahn_Hilliard REQ Cahn-Hilliard transport equation block (convection, diffusion,
25// XD_CONT boundary conditions, …).
26
28{
29 return Probleme_base::printOn(os);
30}
31
33{
34 return Probleme_base::readOn(is);
35}
36
37/*! @brief Renvoie l'equation de Cahn-Hilliard
38 * Provoque une erreur sinon car le probleme
39 * n'a qu'une seule equation.
40 *
41 * @param (int i) l'index de l'equation a renvoyer
42 * @return (Equation_base&) l'equation correspondante
43 */
45{
46 assert (i==0);
47 return eq_cahn_hilliard;
48}
49
51{
52 assert (i==0);
53 return eq_cahn_hilliard;
54}
55
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
classe Equation_base Le role d'une equation est le calcul d'un ou plusieurs champs....
virtual Entree & readOn(Entree &)
Lecture d'un Objet_U sur un flot d'entree Methode a surcharger.
Definition Objet_U.cpp:293
virtual Sortie & printOn(Sortie &) const
Ecriture de l'objet sur un flot de sortie Methode a surcharger.
Definition Objet_U.cpp:282
Classe Pb_Cahn_Hilliard Cette classe represente un probleme multiphase avec champs conservés (équatio...
Cahn_Hilliard eq_cahn_hilliard
const Equation_base & equation(int) const override
Renvoie l'equation de Cahn-Hilliard Provoque une erreur sinon car le probleme n'a qu'une seule equati...
classe Probleme_base C'est un Probleme_U qui n'est pas un couplage.
Classe de base des flux de sortie.
Definition Sortie.h:52