TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Champ_Fonc_Face_VDF.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 Champ_Fonc_Face_VDF_included
17#define Champ_Fonc_Face_VDF_included
18
19#include <Champ_Face_VDF_implementation.h>
20#include <Champ_Fonc_base.h>
21#include <Domaine_VDF.h>
22
23/*! @brief class Champ_Fonc_Face_VDF
24 *
25 * @sa Champ_Fonc_base Champ_Face_VDF
26 */
28{
29 Declare_instanciable(Champ_Fonc_Face_VDF);
30public:
31 int fixer_nb_valeurs_nodales(int) override;
32 int imprime(Sortie& os, int ncomp) const override;
33 void mettre_a_jour(double) override;
34 DoubleTab& trace(const Frontiere_dis_base&, DoubleTab&, double, int distant) const override;
35 Champ_base& affecter_(const Champ_base&) override;
36 DoubleVect& valeur_aux_compo(const DoubleTab& positions, DoubleVect& tab_valeurs, int ncomp) const override;
37
38 // Inline methods
39 inline const Domaine_VDF& domaine_vdf() const override { return ref_cast(Domaine_VDF, le_dom_VF.valeur()); }
40
41 inline DoubleVect& valeur_a_elem(const DoubleVect& position, DoubleVect& val, int le_poly) const override
42 {
43 return Champ_Face_VDF_implementation::valeur_a_elem(position, val, le_poly);
44 }
45
46 inline double valeur_a_elem_compo(const DoubleVect& position, int le_poly, int ncomp) const override
47 {
48 return Champ_Face_VDF_implementation::valeur_a_elem_compo(position, le_poly, ncomp);
49 }
50
51 inline DoubleTab& valeur_aux_elems(const DoubleTab& positions, const IntVect& les_polys, DoubleTab& tab_valeurs) const override
52 {
53 return Champ_Face_VDF_implementation::valeur_aux_elems(positions, les_polys, tab_valeurs);
54 }
55
56 inline DoubleVect& valeur_aux_elems_compo(const DoubleTab& positions, const IntVect& les_polys, DoubleVect& tab_valeurs, int ncomp) const override
57 {
58 return Champ_Face_VDF_implementation::valeur_aux_elems_compo(positions, les_polys, tab_valeurs, ncomp);
59 }
60
61 inline DoubleTab& valeur_aux_sommets(const Domaine& dom, DoubleTab& val) const override
62 {
64 }
65
66 inline DoubleVect& valeur_aux_sommets_compo(const Domaine& dom, DoubleVect& val, int comp) const override
67 {
69 }
70
71 inline DoubleTab& remplir_coord_noeuds(DoubleTab& positions) const override
72 {
74 }
75
76 inline int remplir_coord_noeuds_et_polys(DoubleTab& positions, IntVect& polys) const override
77 {
79 }
80
81 inline DoubleTab& valeur_aux_faces_post(DoubleTab& result) const override
82 {
84 }
85
86private :
87 inline const Champ_base& le_champ() const override { return *this; }
88 inline Champ_base& le_champ() override { return *this; }
89};
90
91#endif /* Champ_Fonc_Face_VDF_included */
double valeur_a_elem_compo(const DoubleVect &position, int le_poly, int ncomp) const override
DoubleTab & valeur_aux_faces_post_impl(const Domaine_VDF &, DoubleTab &result) const
DoubleTab & valeur_aux_sommets(const Domaine &, DoubleTab &) const override
DoubleTab & remplir_coord_noeuds(DoubleTab &positions) const override
DoubleVect & valeur_aux_elems_compo(const DoubleTab &positions, const IntVect &les_polys, DoubleVect &valeurs, int ncomp) const override
DoubleVect & valeur_a_elem(const DoubleVect &position, DoubleVect &val, int le_poly) const override
int remplir_coord_noeuds_et_polys(DoubleTab &positions, IntVect &polys) const override
DoubleVect & valeur_aux_sommets_compo(const Domaine &, DoubleVect &, int) const override
DoubleTab & valeur_aux_elems(const DoubleTab &positions, const IntVect &les_polys, DoubleTab &valeurs) const override
class Champ_Fonc_Face_VDF
int imprime(Sortie &os, int ncomp) const override
DOES NOTHING.
DoubleTab & valeur_aux_sommets(const Domaine &dom, DoubleTab &val) const override
Returns the values at the vertices of the Domain dom.
DoubleVect & valeur_aux_elems_compo(const DoubleTab &positions, const IntVect &les_polys, DoubleVect &tab_valeurs, int ncomp) const override
Causes an error! Must be overridden by derived classes.
void mettre_a_jour(double) override
Time update of the field.
DoubleVect & valeur_a_elem(const DoubleVect &position, DoubleVect &val, int le_poly) const override
Causes an error! Must be overridden by derived classes.
const Domaine_VDF & domaine_vdf() const override
int fixer_nb_valeurs_nodales(int) override
Sets the number of degrees of freedom per component.
int remplir_coord_noeuds_et_polys(DoubleTab &positions, IntVect &polys) const override
DOES NOTHING TO override in derived classes.
DoubleTab & valeur_aux_elems(const DoubleTab &positions, const IntVect &les_polys, DoubleTab &tab_valeurs) const override
Causes an error! Must be overridden by derived classes.
DoubleVect & valeur_aux_compo(const DoubleTab &positions, DoubleVect &tab_valeurs, int ncomp) const override
Same as valeur_aux(const DoubleTab &, DoubleTab &), but computes only the component compo of the fiel...
DoubleTab & trace(const Frontiere_dis_base &, DoubleTab &, double, int distant) const override
Computes the trace of a field on a boundary at time tps.
DoubleTab & remplir_coord_noeuds(DoubleTab &positions) const override
DOES NOTHING TO override in derived classes.
DoubleTab & valeur_aux_faces_post(DoubleTab &result) const override
Champ_base & affecter_(const Champ_base &) override
Assigns a Champ_base to a Champ_Fonc_base.
double valeur_a_elem_compo(const DoubleVect &position, int le_poly, int ncomp) const override
Causes an error! Must be overridden by derived classes.
DoubleVect & valeur_aux_sommets_compo(const Domaine &dom, DoubleVect &val, int comp) const override
Returns the compo-th value at the vertices of dom.
class Champ_Fonc_base Base class of fields that are functions of a calculated quantity
class Champ_base This class is the base of the fields hierarchy.
Definition Champ_base.h:43
Champ_base()
Default constructor of a Champ_base.
virtual Champ_base & le_champ()=0
class Domaine_VDF
Definition Domaine_VDF.h:61
class Frontiere_dis_base Class representing a discretized boundary.
Base class for output streams.
Definition Sortie.h:52