TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Fluide_Ostwald.h
1/****************************************************************************
2* Copyright (c) 2026, 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/*! @brief class Fluide_Ostwald
16 *
17 * Possede les proprietes d'un fluide incompressible plus:
18 * N : indice de structure
19 * K : consistance du fluide
20 * La viscosite dynamique dans ce cas depend de K, N et Grad(U)
21 * Nouveau fluide. c'est un fluide incompressible non newtonien. Il derive donc
22 * de fluide_Incompressible et possede quelques proprietes de plus (K, N)
23 * mu depend de K, N, et de grad(U)
24 *
25 * @sa Fluide_Incompressible
26 */
27
28#ifndef Fluide_Ostwald_included
29#define Fluide_Ostwald_included
30
31#include <Fluide_Incompressible.h>
32
34{
35 Declare_instanciable_sans_constructeur(Fluide_Ostwald);
36
37public :
38
40 inline const Champ_Don_base& consistance() const { return K_.valeur(); }
41 inline Champ_Don_base& consistance() { return K_.valeur(); }
42 inline const Champ_Don_base& indice_struct() const { return N_.valeur(); }
43 inline Champ_Don_base& indice_struct() { return N_.valeur(); }
44
45 void set_param(Param& param) const override;
46 void creer_champs_non_lus() override;
47 void mettre_a_jour(double) override;
48 int initialiser(const double temps) override;
49 void discretiser(const Probleme_base& pb, const Discretisation_base& dis) override;
50
51protected :
52
53 OWN_PTR(Champ_Don_base) K_; // consistance lue
54 OWN_PTR(Champ_Don_base) N_; // indice de structure lue
55
56
57};
58
59#endif
classe Champ_Don_base classe de base des Champs donnes (non calcules)
classe Discretisation_base Cette classe represente un schema de discretisation en espace,...
void set_param(Param &param) const override
void creer_champs_non_lus() override
const Champ_Don_base & indice_struct() const
OWN_PTR(Champ_Don_base) K_
int initialiser(const double temps) override
Initialise les parametres du fluide.
void mettre_a_jour(double) override
Effectue une mise a jour en temps du milieu, et donc de ses parametres caracteristiques.
const Champ_Don_base & consistance() const
Champ_Don_base & indice_struct()
Champ_Don_base & consistance()
void discretiser(const Probleme_base &pb, const Discretisation_base &dis) override
OWN_PTR(Champ_Don_base) N_
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
classe Probleme_base C'est un Probleme_U qui n'est pas un couplage.