TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Champ_Fonc_Elem_PolyMAC_MPFA_rot.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 Champ_Fonc_Elem_PolyMAC_MPFA_rot_included
17#define Champ_Fonc_Elem_PolyMAC_MPFA_rot_included
18
19#include <Champ_Fonc_Elem_PolyMAC_CDO.h>
20#include <Champ_Face_PolyMAC_MPFA.h>
21#include <TRUST_Ref.h>
22
23/*! @brief class Champ_Fonc_Elem_PolyMAC_MPFA_rot for the calculation of the vorticity
24 * This field is a Champ_Fonc_Elem_PolyMAC_MPFA with 1 value per element and per phase in 2D and 3 in 3D
25 *
26 * It isn't a Champ_Fonc_Face_PolyMAC_MPFA as there is no physical justification to project the vorticity on a face
27 * In 3D, Champ_Fonc_Elem_PolyMAC_MPFA_TC::valeurs()(e, n*D + d) returns the value of phase n in element e along the d component
28 * The vorticity is calculated by hand in 2D and 3D using the values of the gradient
29 *
30 */
31
33{
34 Declare_instanciable(Champ_Fonc_Elem_PolyMAC_MPFA_rot);
35public:
36 void mettre_a_jour(double tps) override;
37 void me_calculer_2D();
38 void me_calculer_3D();
39
40 inline void associer_champ(const Champ_Face_PolyMAC_MPFA& cha) { champ_ = cha; }
41 inline virtual Champ_Face_PolyMAC_MPFA& champ_a_deriver() { return champ_.valeur(); }
42 inline virtual const Champ_Face_PolyMAC_MPFA& champ_a_deriver() const { return champ_.valeur(); }
43
44protected:
46};
47
48#endif /* Champ_Fonc_Elem_PolyMAC_MPFA_rot_included */
: class Champ_Face_PolyMAC_MPFA
class Champ_Fonc_Elem_PolyMAC_MPFA_rot for the calculation of the vorticity This field is a Champ_Fon...
virtual const Champ_Face_PolyMAC_MPFA & champ_a_deriver() const
void mettre_a_jour(double tps) override
Mise a jour en temps du champ.
virtual Champ_Face_PolyMAC_MPFA & champ_a_deriver()
OBS_PTR(Champ_Face_PolyMAC_MPFA) champ_
void associer_champ(const Champ_Face_PolyMAC_MPFA &cha)