TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Discr_inst.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 Discr_inst_included
17#define Discr_inst_included
18
19/*! @brief class Discr_inst This class does nothing; it is needed for Pb_MED,
20 *
21 * which requires an associated discretisation.
22 *
23 */
24
25
26#include <Discretisation_base.h>
27
28
30{
31 Declare_instanciable(Discr_inst);
32
33public:
34 void volume_maille(const Schema_Temps_base& sch, const Domaine_dis_base& z, OWN_PTR(Champ_Fonc_base) &ch) const
35 {
36 Cerr << __FILE__ << (int) __LINE__ << " not coded" << finl;
37 exit();
38 }
39 Nom domaine_cl_dis_type() const override
40 {
41 Cerr << __FILE__ << (int) __LINE__ << " not coded" << finl;
42 throw;
43 }
44 void modifier_champ_tabule(const Domaine_dis_base& domaine_vdf, Champ_Fonc_Tabule& lambda_tab, const VECT(OBS_PTR(Champ_base)) &ch_temper) const override
45 {
46 Cerr << __FILE__ << (int) __LINE__ << " not coded" << finl;
48 }
49
50 void discretiser_champ(const Motcle& directive, const Domaine_dis_base& z, Nature_du_champ nature, const Noms& nom, const Noms& unite, int nb_comp, int nb_pas_dt, double temps,
51 OWN_PTR(Champ_Inc_base) &champ,
52 const Nom& sous_type = NOM_VIDE) const override;
53 void discretiser_champ(const Motcle& directive, const Domaine_dis_base& z, Nature_du_champ nature, const Noms& nom, const Noms& unite, int nb_comp, double temps,
54 OWN_PTR(Champ_Fonc_base) &champ) const override;
55 void discretiser_champ(const Motcle& directive, const Domaine_dis_base& z, Nature_du_champ nature, const Noms& nom, const Noms& unite, int nb_comp, double temps, OWN_PTR(Champ_Don_base)& champ) const override;
56
57private:
58 void discretiser_champ_fonc_don(const Motcle& directive, const Domaine_dis_base& z, Nature_du_champ nature, const Noms& noms, const Noms& unites, int nb_comp, double temps, Objet_U& champ) const;
59};
60
61#endif
class Champ_Don_base base class of Given Fields (not calculated)
Class Champ_Fonc_Tabule Derived class of Champ_Fonc_base representing.
class Champ_Fonc_base Base class of fields that are functions of a calculated quantity
Class Champ_Inc_base.
class Champ_base This class is the base of the fields hierarchy.
Definition Champ_base.h:43
class Discr_inst This class does nothing; it is needed for Pb_MED,
Definition Discr_inst.h:30
void volume_maille(const Schema_Temps_base &sch, const Domaine_dis_base &z, OWN_PTR(Champ_Fonc_base) &ch) const
Definition Discr_inst.h:34
void modifier_champ_tabule(const Domaine_dis_base &domaine_vdf, Champ_Fonc_Tabule &lambda_tab, const VECT(OBS_PTR(Champ_base)) &ch_temper) const override
Definition Discr_inst.h:44
Nom domaine_cl_dis_type() const override
Definition Discr_inst.h:39
void discretiser_champ(const Motcle &directive, const Domaine_dis_base &z, Nature_du_champ nature, const Noms &nom, const Noms &unite, int nb_comp, int nb_pas_dt, double temps, OWN_PTR(Champ_Inc_base) &champ, const Nom &sous_type=NOM_VIDE) const override
void discretiser_champ(const Motcle &directive, const Domaine_dis_base &z, Nature_du_champ nature, const Noms &nom, const Noms &unite, int nb_comp, double temps, OWN_PTR(Champ_Fonc_base) &champ) const override
class Discretisation_base This class represents a spatial discretization scheme, which
OBS_PTR(Domaine) le_domaine_
static const Nom NOM_VIDE
class Domaine_dis_base This class is the base of the hierarchy of discretized domains.
A character string (Nom) in uppercase.
Definition Motcle.h:26
class Nom: a character string for naming TRUST objects.
Definition Nom.h:31
An array of character strings (VECT(Nom)).
Definition Noms.h:26
Objet_U()
Default constructor: assigns a unique identifier to the object (object_id_) and registers the object ...
Definition Objet_U.cpp:54
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Definition Process.cpp:466
class Schema_Temps_base