TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Champ_val_tot_sur_vol_base.h
1/****************************************************************************
2* Copyright (c) 2022, 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_val_tot_sur_vol_base_included
17#define Champ_val_tot_sur_vol_base_included
18
19#include <Champ_Uniforme_Morceaux.h>
20
23
24/*! @brief classe Champ_val_tot_sur_vol_base Classe de base derivee de Champ_Uniforme_Morceaux qui represente les champs
25 *
26 * dont on veut une evaluation exprimee par val_lue_loc/(Somme_vol_poro_loc)
27 *
28 * val_lue_loc designe la valeur lue pour une localisation de l espace (sous domaine ou domaine par defaut)
29 * cas VDF : Somme_vol_poro_loc exprime la sommation de vol_element*poro_volumique
30 * pour les elements contenus dans la localisation loc
31 * cas VEF : Somme_vol_poro_loc exprime la sommation de vol_entrelaces*poro_surface
32 * pour les faces contenues dans la localisation loc
33 * Somme_vol_poro_loc est evalue par la methode eval_contrib_loc() des classes derivees
34 *
35 * La syntaxe utilisateur a respecter est la suivante :
36 * Valeur_totale_sur_volume nom_domaine nb_comp { defaut val_lue_dom ...domainei val_lue_szi ... }
37 * nom_domaine : nom du domaine de calcul
38 * nb_comp : nombre de composantes du champ
39 * val_lue_dom : valeur lue pour le domaine par defaut
40 * val_lue_szi : valeur lue pour la sous domaine domainei
41 *
42 *
43 *
44 *
45 */
47{
48
49 Declare_base(Champ_val_tot_sur_vol_base);
50
51public:
52
53 void evaluer(const Domaine_dis_base& zdis,const Domaine_Cl_dis_base& zcldis);
54 virtual DoubleVect& eval_contrib_loc(const Domaine_dis_base& zdis,const Domaine_Cl_dis_base& zcldis,
55 DoubleVect& vol)=0;
56};
57
58#endif
classe Champ_Uniforme_Morceaux Cette classe represente champ constant par morceaux dans l'espace
classe Champ_val_tot_sur_vol_base Classe de base derivee de Champ_Uniforme_Morceaux qui represente le...
void evaluer(const Domaine_dis_base &zdis, const Domaine_Cl_dis_base &zcldis)
virtual DoubleVect & eval_contrib_loc(const Domaine_dis_base &zdis, const Domaine_Cl_dis_base &zcldis, DoubleVect &vol)=0
classe Domaine_Cl_dis_base Les objets Domaine_Cl_dis_base representent les conditions aux limites
classe Domaine_dis_base Cette classe est la base de la hierarchie des domaines discretisees.