TrioCFD 1.9.9_beta
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 Champ_val_tot_sur_vol_base Base class derived from Champ_Uniforme_Morceaux representing fields
25 *
26 * whose evaluation is expressed as val_lue_loc/(Somme_vol_poro_loc)
27 *
28 * val_lue_loc denotes the value read for a spatial localization (subdomain or default domain)
29 * VDF case: Somme_vol_poro_loc is the sum of vol_element*poro_volumique
30 * for elements contained in localization loc
31 * VEF case: Somme_vol_poro_loc is the sum of vol_entrelaces*poro_surface
32 * for faces contained in localization loc
33 * Somme_vol_poro_loc is evaluated by the eval_contrib_loc() method of derived classes
34 *
35 * The user syntax to follow is:
36 * Valeur_totale_sur_volume nom_domaine nb_comp { defaut val_lue_dom ...domainei val_lue_szi ... }
37 * nom_domaine : name of the computational domain
38 * nb_comp : number of field components
39 * val_lue_dom : value read for the default domain
40 * val_lue_szi : value read for subdomain 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
Champ_Uniforme_Morceaux This class represents a piecewise constant-in-space field.
Champ_val_tot_sur_vol_base Base class derived from Champ_Uniforme_Morceaux representing fields.
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
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.