TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Champs_compris_IJK_interface.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 Champs_compris_IJK_interface_included
17#define Champs_compris_IJK_interface_included
18
19#include <IJK_Field_forward.h>
20#include <IJK_Field_vector.h>
21#include <Champ_Generique_base.h> // For Entity and Nature_du_champ
22
23class Motcle;
24
25/*! @brief Similar to Champs_compris_interface but for IJK scalar and vector fields
26 */
28{
29public :
30 /** Name / Localisation (elem, face, node) / Nature (vector, scalar) / true=Lagrangian (interface), false=Eulerian
31 */
32 using FieldInfo_t = std::tuple<Motcle, Entity, Nature_du_champ, bool>;
33
35
36 virtual const IJK_Field_double& get_IJK_field(const Motcle& nom)=0;
37 virtual const IJK_Field_vector3_double& get_IJK_field_vector(const Motcle& nom)=0;
38
39 // Might be a repetition of what is in Champs_compris_interface, but this is a pure virtual, so OK
40 virtual bool has_champ(const Motcle& nom) const=0;
41
42 virtual bool has_champ_vectoriel(const Motcle& nom) const=0;
43
44 // This is not possible in C++, but this method should be implemented every time too:
45// static void Fill_postprocessable_fields(std::vector<FieldInfo_t>& chps)=0;
46};
47
48#endif
Similar to Champs_compris_interface but for IJK scalar and vector fields.
std::tuple< Motcle, Entity, Nature_du_champ, bool > FieldInfo_t
virtual bool has_champ_vectoriel(const Motcle &nom) const =0
virtual const IJK_Field_vector3_double & get_IJK_field_vector(const Motcle &nom)=0
virtual bool has_champ(const Motcle &nom) const =0
virtual const IJK_Field_double & get_IJK_field(const Motcle &nom)=0
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26