TrioCFD 1.9.9_beta
TrioCFD documentation
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 * @brief Field corresponding to an unknown described by its face fluxes (e.g. velocity).
26 * Degrees of freedom: normal component at faces + tangential component at edges of the vorticity.
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(); /* request addition of auxiliary variables ( [lambda rot u] at edges )*/
43 int reprendre(Entree& fich) override;
44
45 //interpolations at elements: velocity 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
Restores an Objet_U from an input stream. Virtual method to override.
DoubleTab & trace(const Frontiere_dis_base &, DoubleTab &, double, int distant) const override
Computes the trace of a field on a boundary at time tps.
const Domaine_PolyMAC_HFV & domaine_PolyMAC_HFV() const
DoubleTab & valeur_aux_faces(DoubleTab &result) const override
Returns the field value at the faces.
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
class Frontiere_dis_base Class representing a discretized boundary.