TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Source_Transport_K_Omega_VDF_Elem_base.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 Source_Transport_K_Omega_VDF_Elem_base_included
17#define Source_Transport_K_Omega_VDF_Elem_base_included
18
19#include <Modele_turbulence_hyd_K_Omega.h>
20#include <Calcul_Production_K_VDF.h>
21#include <Tensors_Computation_VDF.h>
22#include <Source_Transport_VDF_Elem_base.h>
23#include <Domaine_Cl_VDF.h>
24#include <Domaine_VDF.h>
25#include <TRUST_Ref.h>
26
28{
29 Declare_base_sans_constructeur(Source_Transport_K_Omega_VDF_Elem_base);
30public:
32
33 DoubleTab& calculer(DoubleTab&) const override;
34 void associer_domaines(const Domaine_dis_base&, const Domaine_Cl_dis_base&) override;
35 void associer_pb(const Probleme_base&) override;
36
37 inline int has_interface_blocs() const override { return 1; }
38 void dimensionner_blocs(matrices_t matrices, const tabs_t& semi_impl) const override {}
39 void ajouter_blocs(matrices_t matrices, DoubleTab& secmem, const tabs_t& semi_impl) const override = 0;
40 virtual void compute_cross_diffusion() const { return not_implemented<void>(__func__); }
41 virtual void compute_blending_F1() const { return not_implemented<void>(__func__); }
42
43 inline void mettre_a_jour(double t) override { Calcul_Production_K_VDF::mettre_a_jour(t); }
44
45protected:
46 DoubleTab& ajouter_komega(DoubleTab&) const;
47
48
50 OWN_PTR(Champ_Fonc_base) grad_k_omega_elem_; /* produit : grad (K) * grad (omega)*/
51 OWN_PTR(Champ_Fonc_base) grad_k_face_;
52 OWN_PTR(Champ_Fonc_base) grad_omega_face_;
53 OWN_PTR(Champ_Fonc_base) grad_k_elem_;
54 OWN_PTR(Champ_Fonc_base) grad_omega_elem_;
55 OWN_PTR(Champ_Fonc_base) production_k_elem_;
56 OWN_PTR(Champ_Fonc_base) production_omega_elem_;
57 OWN_PTR(Champ_Fonc_base) dissipation_k_elem_;
58 OWN_PTR(Champ_Fonc_base) dissipation_omega_elem_;
59 OWN_PTR(Champ_Fonc_base) cross_diffusion_k_omega_elem_;
60
61};
62
63#endif /* Source_Transport_K_Omega_VDF_Elem_base_included */
class Champ_Fonc_base Base class of fields that are functions of a calculated quantity
class Domaine_Cl_dis_base Domaine_Cl_dis_base objects represent discretized boundary conditions
class Domaine_dis_base This class is the base of the hierarchy of discretized domains.
Classe Modele_turbulence_hyd_K_Omega Cette classe represente le modele de turbulence (k,...
class Probleme_base It is a Probleme_U that is not a coupling.
OWN_PTR(Champ_Fonc_base) grad_k_omega_elem_
OBS_PTR(Modele_turbulence_hyd_K_Omega) turbulence_model
void dimensionner_blocs(matrices_t matrices, const tabs_t &semi_impl) const override
OWN_PTR(Champ_Fonc_base) grad_k_elem_
void ajouter_blocs(matrices_t matrices, DoubleTab &secmem, const tabs_t &semi_impl) const override=0
OWN_PTR(Champ_Fonc_base) dissipation_k_elem_
OWN_PTR(Champ_Fonc_base) production_omega_elem_
void mettre_a_jour(double t) override
DOES NOTHING - to override in derived classes.
OWN_PTR(Champ_Fonc_base) dissipation_omega_elem_
OWN_PTR(Champ_Fonc_base) grad_k_face_
OWN_PTR(Champ_Fonc_base) production_k_elem_
void associer_domaines(const Domaine_dis_base &, const Domaine_Cl_dis_base &) override
OWN_PTR(Champ_Fonc_base) cross_diffusion_k_omega_elem_
OWN_PTR(Champ_Fonc_base) grad_omega_elem_
OWN_PTR(Champ_Fonc_base) grad_omega_face_