TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
TRUST_2_MED.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 med_utils_included
17#define med_utils_included
18
19#include <Process.h>
20#include <Nom.h>
21#include <TRUSTTabs_forward.h>
22#include <med++.h>
23#include <medcoupling++.h>
24#ifdef MEDCOUPLING_
25# include <NormalizedGeometricTypes>
26# include <MEDCouplingUMesh.hxx>
27#endif
28
29
30////
31//// Useful MED-related fonctions
32////
33
34class Char_ptr;
35class Entree;
36class Nom;
37
38inline void med_non_installe()
39{
40 Process::exit("This version has not been built with MED library.");
41}
42
43void test_version(Nom& nom) ;
44void traite_nom_fichier_med(Nom& nom_fic);
45void read_med_field_names(const Nom& nom_fic, Noms& noms_chps, ArrOfDouble& temps_sauv);
46
47template <typename _SIZE_>
48void conn_trust_to_med(IntTab_T<_SIZE_>& les_elems2, const Nom& type_elem, bool toMED);
49
50#ifdef MED_
51med_geometry_type type_geo_trio_to_type_med(const Nom& type_elem);
52med_geometry_type type_geo_trio_to_type_med(const Nom& type_elem_,med_axis_type& rep);
53
54#ifdef MEDCOUPLING_
55INTERP_KERNEL::NormalizedCellType type_geo_trio_to_type_medcoupling(const Nom& type_elem_, int& mesh_dimension);
56
57void fill_connectivity_from_mc_mesh(const MEDCoupling::MEDCouplingUMesh * mc_mesh, IntTab& face_sommet, IntTab& elem_face);
58
59#endif
60
61#endif
62
63#endif
class Char_ptr Une chaine de caractere pour nommer les objets de TRUST
Definition Char_ptr.h:28
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
Un tableau de chaine de caracteres (VECT(Nom)).
Definition Noms.h:26
static void exit(int exit_code=-1)
Routine de sortie de TRUST dans une region Kokkos.
Definition Process.cpp:455