TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Champ_Morceaux.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 Champ_Morceaux_included
17#define Champ_Morceaux_included
18
19#include <Champ_Fonc_P0_base.h>
20#include <Champ_Don_base.h>
21#include <Probleme_base.h>
22
23/*
24field on subdomains defined from several fields, each defined on the whole domain.
25Example:
26Champ_Morceaux dom n
27{
28 subdomain1 Champ_Uniforme 1 x
29 subdomain2 Champ_fonc_txyz_Morceaux dom n ...
30}
31*/
32
34{
35 Declare_instanciable(Champ_Morceaux);
36public:
37 void mettre_a_jour(double) override;
38 int initialiser(const double t) override;
39 double changer_temps(const double t) override;
40 const Domaine& domaine() const override { return pb_->domaine(); }
41
42 const Nom& fixer_unite(const Nom& unit) override;
43 const Nom& fixer_unite(int i, const Nom& unit) override;
44
45 void associer_domaine_dis_base(const Domaine_dis_base& zdb) override;
46
47private:
48 //sub_field[subdomain] = { the field }
49 std::map<std::string, OWN_PTR(Champ_Don_base)> field_;
50 std::map<std::string, DoubleTab> xp_ssz_;
51 OBS_PTR(Probleme_base) pb_;
52 IntTab default_vals_;
53};
54
55#endif /* Champ_Morceaux_included */
classe Champ_Don_base classe de base des Champs donnes (non calcules)
void associer_domaine_dis_base(const Domaine_dis_base &zdb) override
const Nom & fixer_unite(const Nom &unit) override
Specifie l'unite d'un champ scalaire ou dont toutes les composantes ont la meme unite.
void mettre_a_jour(double) override
Mise a jour en temps du champ.
const Domaine & domaine() const override
double changer_temps(const double t) override
Fixe le temps auquel se situe le champ.
int initialiser(const double t) override
NE FAIT RIEN.
classe Domaine_dis_base Cette classe est la base de la hierarchie des domaines discretisees.
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
classe Probleme_base C'est un Probleme_U qui n'est pas un couplage.