TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
DP_Impose.h
1/****************************************************************************
2* Copyright (c) 2025, 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 DP_Impose_included
17#define DP_Impose_included
18
19#include <Perte_Charge_Singuliere.h>
20
21class Champ_Don_base;
22
23/*! @brief Classe DP_Impose Cette classe derivee de Perte_Charge_Singuliere est utilisee lorsque l'on veut
24 *
25 * impose un Delta P (pour simuler une pompe) depuis un champ exterieur
26 *
27 * @sa Perte_Charge Perte_Charge_Reguliere
28 */
30{
31public:
32 ~DP_Impose() override { }
34 void mettre_a_jour(double temps);
35 void update_dp_regul(const Equation_base& eqn, double deb, DoubleVect& bilan); //regule dp_regul_ a partir du debit calcule par update_Q
36
37protected:
38 OWN_PTR(Champ_Don_base) DP_; //le champ de delta P qu'on veut imposer
39 mutable Parser_U f_DP_; //DP a reguler par fac_regul_ (peut dependre de t)
40 double fac_regul_ = 1;
41};
42
43#endif /* DP_Impose_included */
classe Champ_Don_base classe de base des Champs donnes (non calcules)
Classe DP_Impose Cette classe derivee de Perte_Charge_Singuliere est utilisee lorsque l'on veut.
Definition DP_Impose.h:30
double fac_regul_
Definition DP_Impose.h:40
void update_dp_regul(const Equation_base &eqn, double deb, DoubleVect &bilan)
Definition DP_Impose.cpp:93
Parser_U f_DP_
Definition DP_Impose.h:39
OWN_PTR(Champ_Don_base) DP_
void mettre_a_jour(double temps)
Definition DP_Impose.cpp:87
~DP_Impose() override
Definition DP_Impose.h:32
Entree & lire_donnees(Entree &)
Lit les specifications d'un Delta P impose a partir d'un flot d'entree.
Definition DP_Impose.cpp:51
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
classe Equation_base Le role d'une equation est le calcul d'un ou plusieurs champs....
classe Parser_U Version de la classe Parser, derivant de Objet_U.
Definition Parser_U.h:32
Classe Perte_Charge_Singuliere Cette classe derivee de Perte_Charge est utilisee lorsque l'on veut.