TrioCFD 1.9.9_beta
TrioCFD documentation
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// In addition to the champ_front representing the wall temperature,
28// this class holds another champ_front with as many time values
29// that represents the temperature in the other problem.
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): index of the j-th item needed for face i of the boundary
45 mutable IntTab item;
46
47 //coeff(i, j): coefficient of the face, then coefficient of item(i, j - 1) (element, then other faces) in the flux formula at the face
48 //delta(i, j, 0/1) -> same for the nonlinear correction of Le Potier
49 mutable DoubleTab coeff, delta_int, delta;
50 int monolithic = 0; //1 if solving thermal problem monolithically
51protected :
52 int stab_ = 0; //1 if using the Le Potier stabilization
53 mutable int coeffs_a_jour_ = 0, delta_a_jour_ = 0; //flag: whether coefficients have been updated
54 double h_paroi = -123.;
57};
58
59#endif
class Champ_front_base Base class for the hierarchy of boundary fields.
void mettre_a_jour(double) override
Performs a time update of the boundary condition.
const Champ_front_base & T_autre_pb() const
OWN_PTR(Champ_front_base) T_autre_pb_
int initialiser(double temps) override
Initialization at the beginning of the calculation.
void completer() override
DOES NOTHING must be overridden in derived classes.
Classe Echange_externe_impose: This class represents the special case of the class.
class Front_VF
Definition Front_VF.h:36
class Nom: a character string for naming TRUST objects.
Definition Nom.h:31