TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Champ_Generique_modifier_pour_QC.h
1/****************************************************************************
2* Copyright (c) 2026, 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
17#ifndef Champ_Generique_modifier_pour_QC_included
18#define Champ_Generique_modifier_pour_QC_included
19
20#include <Champ_Gen_de_Champs_Gen.h>
21#include <TRUST_Ref.h>
22
23class Milieu_base;
24
25/*! @brief class Champ_Generique_modifier_pour_QC OWN_PTR(Champ_base) intended to post-process a field of a quasi-compressible problem
26 *
27 * that we want to multiply or divide by the density (rho).
28 * The class carries a REF to the medium which must be of type Fluide_Quasi_Compressible.
29 *
30 */
31
32//// Data file syntax to follow
33//
34// "field_name" modifier_pour_QC {
35// [division]
36// source "generic_field_type" { ... source ref_Champ { Pb_champ "pb_name" "discrete_field_name" } }
37// }
38// "field_name" set by user will be the name of the generic field
39// "division" activates the division of the field by rho otherwise the field is multiplied by rho
40// "generic_field_type" type of a generic field
41
43{
44 Declare_instanciable_sans_constructeur(Champ_Generique_modifier_pour_QC);
45
46public:
47
49 void set_param(Param& param) const override;
50 void completer(const Postraitement_base& post) override;
51 const Champ_base& get_champ(OWN_PTR(Champ_base)& espace_stockage) const override;
52 const Champ_base& get_champ_without_evaluation(OWN_PTR(Champ_base)& espace_stockage) const override;
53 void nommer_source() override;
54
55protected:
56
57 bool diviser_ = false;
58 OBS_PTR(Milieu_base) mon_milieu_;
59};
60
61#endif
62
Base class of generic fields having other generic fields as source. The use of the class methods reli...
virtual OWN_PTR(Champ_Fonc_base) &creer_espace_stockage(const Nature_du_champ &nature
OBS_PTR(Milieu_base) mon_milieu_
const Champ_base & get_champ_without_evaluation(OWN_PTR(Champ_base)&espace_stockage) const override
void completer(const Postraitement_base &post) override
const Champ_base & get_champ(OWN_PTR(Champ_base)&espace_stockage) const override
class Champ_base This class is the base of the fields hierarchy.
Definition Champ_base.h:43
Milieu_base This class is the base of the (physical) medium hierarchy.
Definition Milieu_base.h:50
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
Base class for all post-processing objects.