TrioCFD 1.9.9_beta
TrioCFD documentation
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 This class derived from Perte_Charge_Singuliere is used when one wants
24 *
25 * to impose a Delta P (to simulate a pump) from an external field.
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); //regulates dp_regul_ from the flow rate computed by update_Q
36
37protected:
38 OWN_PTR(Champ_Don_base) DP_; // the delta P field to impose
39 mutable Parser_U f_DP_; // DP to regulate via fac_regul_ (may depend on t)
40 double fac_regul_ = 1;
41};
42
43#endif /* DP_Impose_included */
class Champ_Don_base base class of Given Fields (not calculated)
Classe DP_Impose This class derived from Perte_Charge_Singuliere is used when one wants.
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 &)
Reads the specifications of an imposed Delta P from an input stream.
Definition DP_Impose.cpp:51
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
class Equation_base The role of an equation is the calculation of one or more fields....
class Parser_U Version of the Parser class, deriving from Objet_U.
Definition Parser_U.h:32
Classe Perte_Charge_Singuliere This class derived from Perte_Charge is used when one wants.