TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Echange_contact_PolyMAC_HFV.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 Echange_contact_PolyMAC_HFV_included
17#define Echange_contact_PolyMAC_HFV_included
18
19#include <Op_Diff_PolyMAC_HFV_Elem.h>
20#include <Echange_externe_impose.h>
21#include <TRUSTTabs_forward.h>
22#include <MD_Vector_tools.h>
23#include <TRUST_Ref.h>
24
26class Front_VF;
27#include <Domaine_forward.h>
28
29/*! @brief class : Echange_contact_PolyMAC_HFV
30 *
31 * @brief In addition to the champ_front representing the wall temperature,
32 * this class holds another champ_front with as many time values
33 * that represents the temperature in the other problem.
34 *
35 */
37{
38 Declare_instanciable(Echange_contact_PolyMAC_HFV);
39public :
40 void init_op() const;
41 void mettre_a_jour(double temps) override { } //not used
42 void verifie_ch_init_nb_comp() const override { } //no constraint on the number of components on each side
43
44 mutable OBS_PTR(Front_VF) fvf, o_fvf; //boundary in the other problem
45 mutable int i_fvf = -1 , i_o_fvf = -1; //boundary indices on each side
46 mutable OBS_PTR(Op_Diff_PolyMAC_HFV_Elem) diff, o_diff; //diffusion operators on each side
47 mutable int o_idx = -1; //index of the other operator in the op_ext array of Op_Diff_PolyMAC_HFV_Elem (to be filled by that operator)
48
49 /* faces on the other side of the boundary */
50 void init_f_dist() const; //initialization of f_dist
51 mutable IntTab f_dist; //face on the other side of each boundary face
52 mutable int f_dist_init_ = 0;
53
54 double invh_paroi = 1e30; //thermal resistance (1 / h) of the wall
55
56protected :
57 Nom nom_autre_pb_, nom_bord_, nom_champ_; //name of the remote problem, the boundary, and the field
58};
59
60#endif /* Echange_contact_PolyMAC_HFV_included */
class : Echange_contact_PolyMAC_HFV
void verifie_ch_init_nb_comp() const override
Calls the verification of the field read through the equation for which the boundary condition is con...
void mettre_a_jour(double temps) override
Performs a time update of the boundary condition.
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