TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Champ_Face_PolyMAC_HFV.h
1/****************************************************************************
2* Copyright (c) 2023, 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_Face_PolyMAC_HFV_included
17#define Champ_Face_PolyMAC_HFV_included
18
19#include <Domaine_PolyMAC_HFV.h>
20#include <Champ_Face_PolyMAC_CDO.h>
21#include <SolveurSys.h>
22
23/*! @brief : class Champ_Face_PolyMAC_HFV
24 *
25 * Champ correspondant a une inconnue decrite par ses flux aux faces (type vitesse)
26 * Degres de libertes : composante normale aux faces + composante tangentielle aux aretes de la vorticite
27 *
28 */
30{
31 Declare_instanciable(Champ_Face_PolyMAC_HFV) ;
32public :
33 inline const Domaine_PolyMAC_HFV& domaine_PolyMAC_HFV() const { return ref_cast(Domaine_PolyMAC_HFV, le_dom_VF.valeur()); }
34
35 DoubleTab& valeur_aux_faces(DoubleTab& result) const override;
36 DoubleTab& trace(const Frontiere_dis_base&, DoubleTab&, double, int distant) const override;
37
38 int nb_valeurs_nodales() const override;
39
40 int fixer_nb_valeurs_nodales(int n) override;
41
42 virtual void init_auxiliary_variables(); /* demande l'ajout des variables auxiliaires ( [lambda rot u] aux aretes )*/
43 int reprendre(Entree& fich) override;
44
45 //interpolations aux elements : vitesse val(e, i) = v_i, gradient vals(e, i, j) = dv_i / dx_j
46 void interp_ve(const DoubleTab& inco, DoubleTab& val, bool is_vit = true) const override;
47 void interp_ve(const DoubleTab& inco, const IntVect&, DoubleTab& val, bool is_vit = true) const override;
48};
49
50#endif /* Champ_Face_PolyMAC_HFV_included */
: class Champ_Face_PolyMAC_HFV
void interp_ve(const DoubleTab &inco, DoubleTab &val, bool is_vit=true) const override
int fixer_nb_valeurs_nodales(int n) override
int nb_valeurs_nodales() const override
int reprendre(Entree &fich) override
Reprise d'un Objet_U sur un flot d'entree Methode a surcharger.
DoubleTab & trace(const Frontiere_dis_base &, DoubleTab &, double, int distant) const override
Calcule la trace d'un champ sur une frontiere au temps tps.
const Domaine_PolyMAC_HFV & domaine_PolyMAC_HFV() const
DoubleTab & valeur_aux_faces(DoubleTab &result) const override
renvoie la valeur du champ aux faces
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
classe Frontiere_dis_base Classe representant une frontiere discretisee.