TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Paroi_FT_disc.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 <Paroi_FT_disc.h>
17#include <Motcle.h>
18#include <Equation_base.h>
19
20Implemente_instanciable(Paroi_FT_disc,"Paroi_FT_disc",Symetrie);
21
23{
24 return os << que_suis_je() << "\n";
25}
26
27/*! @brief Lecture de l'angle impose dans le jeu de donnees.
28 *
29 * Format :
30 * soit "constant champ_frontiere_a_une_composante"
31 * soit "hysteresis champ_frontiere_a_deux_composantes"
32 * Les valeurs du champ sont un angle en degres.
33 * Convention:
34 * L'angle specifie est celui entre l'interface et la paroi
35 * du cote de la phase 0.
36 * /
37 * phase 1 /\ phase 0
38 * / | theta
39 * ________/___|________
40 *
41 *
42 */
44{
45 Motcle motlu;
46 is >> motlu;
47 Motcles motcles(3);
48 motcles[0] = "constant";
49 motcles[1] = "hysteresis";
50 motcles[2] = "symetrie";
51 int rang = motcles.search(motlu);
52
53 switch(rang)
54 {
55 case 0:
57 break;
58 case 1:
60 break;
61 case 2:
63 break;
64 default :
65 Cerr << "Paroi_FT::readOn: expected a contact angle model.\n You say: "
66 << motlu << "\n Valid keywords are: " << motcles << finl;
68 }
69
70 if (type_ != SYMETRIE)
71 is >> le_champ_front;
72 else
73 {
74 le_champ_front.typer("Champ_Front_Uniforme");
75 le_champ_front->fixer_nb_comp(0);
76 }
77
78 return is;
79}
80
85
86/*! @brief Cette condition aux limites ne support que l'equation Transport_Interfaces_FT_disc
87 *
88 */
90{
91 if (eqn.que_suis_je() == "Transport_Interfaces_FT_Disc")
92 {
93 return 1;
94 }
95 else
96 {
98 return 0;
99 }
100}
void err_pas_compatible(const Equation_base &) const
Cette methode est appelee quand la condition aux limites n'est pas compatible avec l'equation sur laq...
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....
const Nom & que_suis_je() const
renvoie la chaine identifiant la classe.
Definition Objet_U.cpp:104
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 Paroi_FT_disc Condition aux limites d'angle de contact pour l'equation
Type_modele get_type_modele() const
int compatible_avec_eqn(const Equation_base &) const override
Cette condition aux limites ne support que l'equation Transport_Interfaces_FT_disc.
Type_modele type_
static void exit(int exit_code=-1)
Routine de sortie de TRUST dans une region Kokkos.
Definition Process.cpp:455
Classe de base des flux de sortie.
Definition Sortie.h:52
classe Symetrie Sur les faces de symetrie on a les proprietes suivantes:
Definition Symetrie.h:37