TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Echange_contact_PolyMAC_CDO.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 Echange_contact_PolyMAC_CDO_included
17#define Echange_contact_PolyMAC_CDO_included
18
19#include <Echange_externe_impose.h>
20#include <TRUSTTabs_forward.h>
21#include <TRUST_Ref.h>
22
24class Front_VF;
25#include <Domaine_forward.h>
26
27// Outre le champ_front representant la temperature de paroi,
28// cette classe possede un autre champ_front avec autant de valeurs
29// temporelles qui represente la temperature dans l'autre probleme.
31{
32 Declare_instanciable(Echange_contact_PolyMAC_CDO);
33public :
34 void completer() override;
35 int initialiser(double temps) override;
37 void update_coeffs();
38 void update_delta() const;
39 void mettre_a_jour(double ) override;
40 inline Champ_front_base& T_autre_pb() { return T_autre_pb_; }
41 inline const Champ_front_base& T_autre_pb() const { return T_autre_pb_; }
42 inline const Nom& nom_autre_pb() const { return nom_autre_pb_; }
43
44 //item(i, j) : indice du j-ieme item dont on a besoin pour la face i de la frontiere
45 mutable IntTab item;
46
47 //coeff(i, j) : coefficient de la face, puis coefficient de item(i, j - 1) (element, puis autres faces) dans la formule du flux a la face
48 //delta(i, j, 0/1) -> idem pour la correction non-lineaire de Le Potier
49 mutable DoubleTab coeff, delta_int, delta;
50 int monolithic = 0; //1 si on resout la thermique en monolithique
51protected :
52 int stab_ = 0; //1 si on utilise la stabilisation de Le Potier
53 mutable int coeffs_a_jour_ = 0, delta_a_jour_ = 0; //dernier temps auquel on a mis a jour les coeffs
54 double h_paroi = -123.;
57};
58
59#endif
classe Champ_front_base Classe de base pour la hierarchie des champs aux frontieres.
void mettre_a_jour(double) override
Effectue une mise a jour en temps de la condition aux limites.
const Champ_front_base & T_autre_pb() const
OWN_PTR(Champ_front_base) T_autre_pb_
int initialiser(double temps) override
Initialisation en debut de calcul.
void completer() override
NE FAIT RIEN A surcharger dans les classes derivees.
Classe Echange_externe_impose: Cette classe represente le cas particulier de la classe.
class Front_VF
Definition Front_VF.h:36
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31