TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Cond_lim_rayo_milieu_transp.cpp
1/****************************************************************************
2* Copyright (c) 2026, 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 <Cond_lim_rayo_milieu_transp.h>
17#include <Domaine_Cl_dis_base.h>
18#include <Modele_rayo_transp.h>
19#include <Domaine_VF.h>
20
22{
23 Process::exit("Cond_lim_rayo_milieu_transp::doit etre surchargee !!! \n");
24}
25
27{
28 const Front_VF& la_frontiere_VF = ref_cast(Front_VF, fr);
29 const int ndeb = la_frontiere_VF.num_premiere_face();
30 const int nb_faces_bord = la_frontiere_VF.nb_faces();
31
32 surf_i_.resize(nb_faces_bord);
33 teta_i_.resize(nb_faces_bord);
34
35 // retrieval of boundary face areas.
36 const Domaine_VF& domaine = ref_cast(Domaine_VF, zcl.domaine_dis());
37 for (int numfa = 0; numfa < nb_faces_bord; numfa++)
38 surf_i_[numfa] = domaine.face_surfaces(numfa + ndeb);
39}
40
41void Cond_lim_rayo_milieu_transp::error_pb_name(const Nom& nom_class, const Nom& nom_pb, const Nom& nom_pb_ray)
42{
43 Cerr << finl << "Big issue in " << nom_class << "::initialiser !!!" << finl;
44 Cerr << "The problem " << nom_pb << " is not the one assosciated to the model !!! It should be " << nom_pb_ray << " !!!" << finl;
46}
47
48void Cond_lim_rayo_milieu_transp::error_non_rad_bc(const Nom& nom_class, const Nom& nom_pb, const Nom& nom_bord, const Nom& other_type)
49{
50 Cerr << finl << "Big issue in " << nom_class << "::initialiser !!!" << finl;
51 Cerr << "It seems that you defined a radiation contact BC at the boundary " << nom_bord << finl;
52 Cerr << "of the problem " << nom_pb << ", but this problem is not a radiation problem !!!" << finl;
53 Cerr << "Please fix your data file and use the " << other_type << " BC ..." << finl;
55}
void error_non_rad_bc(const Nom &nom_class, const Nom &nom_pb, const Nom &nom_bord, const Nom &other_type)
void preparer_surface(const Frontiere_dis_base &, const Domaine_Cl_dis_base &)
void error_pb_name(const Nom &nom_class, const Nom &nom_pb, const Nom &nom_pb_ray)
class Domaine_Cl_dis_base Domaine_Cl_dis_base objects represent discretized boundary conditions
Domaine_dis_base & domaine_dis()
Returns a reference to the discretized domain associated with the boundary conditions.
class Domaine_VF
Definition Domaine_VF.h:44
class Front_VF
Definition Front_VF.h:36
int nb_faces() const
Definition Front_VF.h:53
int num_premiere_face() const
Definition Front_VF.h:63
class Frontiere_dis_base Class representing a discretized boundary.
class Nom: a character string for naming TRUST objects.
Definition Nom.h:31
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Definition Process.cpp:466