TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Porosites_champ.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 Porosites_champ_included
17#define Porosites_champ_included
18
19#include <Interprete.h>
20#include <TRUSTVect.h>
21#include <vector>
22
23class Champ_Don_base;
24
25/*! @brief Porosites_champ nom_pb champ: assigns the field champ to the volumetric porosity of the domain of problem nom_pb, then computes surface porosities as a harmonic mean.
26 *
27 */
29{
30 Declare_instanciable(Porosites_champ);
31public :
32 Entree& interpreter(Entree&) override;
33};
34
35const DoubleTab& modif_par_porosite_si_flag(const DoubleTab& org, DoubleTab& res,int flag,const DoubleVect& porosite);
36
37class Porosites : public Objet_U
38{
39 Declare_instanciable(Porosites);
40public:
41 void remplir_champ(const Domaine_VF& zvf, DoubleVect& , DoubleVect& );
42 const bool& is_read() { return is_read_; }
43
44protected :
45 bool is_read_ = false;
46 std::vector<Nom> les_sous_domaines;
47 std::vector<double> porosites_volu;
48 std::vector<DoubleVect> porosites_surf;
49};
50
51#endif /* Porosites_champ_included */
class Champ_Don_base base class of Given Fields (not calculated)
class Domaine_VF
Definition Domaine_VF.h:44
Base class for "interpreter" objects.
Definition Interprete.h:38
friend class Entree
Definition Objet_U.h:71
Objet_U()
Default constructor: assigns a unique identifier to the object (object_id_) and registers the object ...
Definition Objet_U.cpp:54
Porosites_champ nom_pb champ: assigns the field champ to the volumetric porosity of the domain of pro...
Entree & interpreter(Entree &) override
void remplir_champ(const Domaine_VF &zvf, DoubleVect &, DoubleVect &)
std::vector< DoubleVect > porosites_surf
std::vector< double > porosites_volu
std::vector< Nom > les_sous_domaines
const bool & is_read()