TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Champ_Ostwald.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 Champ_Ostwald_included
17#define Champ_Ostwald_included
18
19#include <Champ_Fonc_P0_base.h>
20#include <Champ_Don_base.h>
21#include <TRUST_Ref.h>
22
23class Fluide_Ostwald;
24
25/*! @brief Champ_Ostwald Represents a field that varies as a function of consistency and
26 *
27 * the structure index.
28 * Base class that manages the field used for the Ostwald fluid in both
29 * discretizations.
30 * Contains generic functions common to both discretizations.
31 * References an Ostwald fluid in order to use the two
32 * parameters of the Ostwald fluid: K and N.
33 *
34 * @sa Champ_Don_base
35 */
37{
38 Declare_instanciable(Champ_Ostwald);
39public :
40 void mettre_a_jour(double temps) override;
41 int initialiser(const double temps) override;
42 int fixer_nb_valeurs_nodales(int nb_noeuds) override;
43 Champ_base& affecter_(const Champ_base& ) override;
44 virtual void me_calculer(double tps);
45
46 inline virtual const Fluide_Ostwald& mon_fluide() const { return mon_fluide_.valeur(); }
47
48 inline void associer_fluide(const Fluide_Ostwald& le_fluide)
49 {
50 mon_fluide_ = le_fluide;
51 }
52
53protected:
54 OBS_PTR(Fluide_Ostwald) mon_fluide_; // to obtain K and N
55};
56
57#endif /* Champ_Ostwald_included */
Champ_Ostwald Represents a field that varies as a function of consistency and.
void mettre_a_jour(double temps) override
Time update of the field.
Champ_base & affecter_(const Champ_base &) override
Assigns a Champ_base to a Champ_Fonc_base.
virtual void me_calculer(double tps)
OBS_PTR(Fluide_Ostwald) mon_fluide_
void associer_fluide(const Fluide_Ostwald &le_fluide)
virtual const Fluide_Ostwald & mon_fluide() const
int initialiser(const double temps) override
DOES NOTHING.
int fixer_nb_valeurs_nodales(int nb_noeuds) override
Sets the number of degrees of freedom per component.
class Champ_base This class is the base of the fields hierarchy.
Definition Champ_base.h:43
class Fluide_Ostwald