TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Pb_Dilatable_base.h
1/****************************************************************************
2* Copyright (c) 2024, 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 Pb_Dilatable_base_included
17#define Pb_Dilatable_base_included
18
19#include <Pb_Fluide_base.h>
20#include <TRUST_Ref.h>
21
23
24/*! @brief classe Pb_Dilatable_base Cette classe est censee factoriser ce qui est commun a l'ensemble
25 *
26 * des problemes dilatables.
27 *
28 *
29 * @sa Pb_Fluide_base
30 */
31
33{
34 Declare_base(Pb_Dilatable_base);
35
36public:
37 bool initTimeStep(double dt) override;
38 void preparer_calcul() override;
39 void mettre_a_jour(double temps) override; // Ne met a jour que les postraitements
40 void associer_milieu_base(const Milieu_base& ) override;
41 void associer_sch_tps_base(const Schema_Temps_base&) override;
42 virtual void update_pressure_fields(double );
43 bool iterateTimeStep(bool& converged) override;
44
45protected :
47};
48
49#endif /* Pb_Dilatable_base_included */
classe Fluide_Dilatable_base Cette classe represente un d'un fluide dilatable,
classe Milieu_base Cette classe est la base de la hierarchie des milieux (physiques)
Definition Milieu_base.h:50
classe Pb_Dilatable_base Cette classe est censee factoriser ce qui est commun a l'ensemble
void mettre_a_jour(double temps) override
Effectue une mise a jour en temps du probleme.
void associer_sch_tps_base(const Schema_Temps_base &) override
Associe un schema en temps au probleme.
bool iterateTimeStep(bool &converged) override
In the case solveTimeStep uses an iterative process, this method executes a single iteration.
bool initTimeStep(double dt) override
This method allocates and initializes the unknown and given fields for the future time step.
OBS_PTR(Fluide_Dilatable_base) le_fluide_
virtual void update_pressure_fields(double)
void preparer_calcul() override
Prepare le calcul: initialise les parametres du milieu et prepare le calcul de chacune des equations.
void associer_milieu_base(const Milieu_base &) override
Associe un milieu physique aux equations du probleme.
classe Pb_Fluide_base Cette classe a pour but de disposer d une classe amont pour
class Schema_Temps_base