TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Equation_Navier_Cauchy.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
16#ifndef Equation_Navier_Cauchy_included
17#define Equation_Navier_Cauchy_included
18
19#include <Operateur_Diff.h>
20#include <Equation_base.h>
21#include <Milieu_Elasticite.h>
22#include <TRUST_Ref.h>
23
25
26/*! @brief Navier–Cauchy equation for small-strain linear elasticity.
27 *
28 * Solves for the displacement field \f$\mathbf{u}\f$ of an isotropic linear elastic solid.
29 *
30 * Governing equations (optionally including thermal expansion and body forces):
31 * - Balance of momentum:
32 * \f$\rho\,\ddot{\mathbf{u}} = \nabla\cdot\boldsymbol{\sigma} - 3K\alpha\,\nabla(\Delta T) + \mathbf{b}\f$
33 * - Small-strain tensor:
34 * \f$\boldsymbol{\varepsilon}=\tfrac12(\nabla\mathbf{u} + (\nabla\mathbf{u})^T)\f$
35 * - Isotropic Hooke’s law:
36 * \f$\boldsymbol{\sigma} = \mu\,(\nabla\mathbf{u}+ (\nabla\mathbf{u})^T) + \lambda\,(\nabla\cdot\mathbf{u})\,\mathbf{I}\f$
37 *
38 * The Lamé parameters \f$\lambda\f$ and \f$\mu\f$, the bulk modulus \f$K\f$ and the thermal expansion
39 * coefficient \f$\alpha\f$ are provided by `Milieu_Elasticite`.
40 *
41 * The operator `terme_diffusif` represents the whole divergence term
42 * \f$\nabla\cdot(\mu(\nabla\mathbf{u}+\nabla\mathbf{u}^T)+\lambda(\nabla\cdot\mathbf{u})\mathbf{I})\f$,
43 * including the volumetric contribution (\f$\lambda\f$, sometimes referred to as a “volumetric viscosity”
44 * in diffusion-like operator form).
45 *
46 * Post-processing fields may be created/updated, depending on the discretization and options:
47 * stresses, strains, von Mises equivalent stress, and (when needed) nodal velocity.
48 */
50{
51 Declare_instanciable(Equation_Navier_Cauchy);
52
53public:
54
55 int nombre_d_operateurs() const override { return 1; }
56 const Operateur& operateur(int) const override;
57 Operateur& operateur(int) override;
58
59 const Champ_Inc_base& inconnue() const override { return deplacement_; }
60 Champ_Inc_base& inconnue() override { return deplacement_; }
61 void mettre_a_jour(double temps) override;
62
63 void associer_milieu_base(const Milieu_base&) override;
64 const Milieu_base& milieu() const override { return milieu_.valeur(); }
65 Milieu_base& milieu() override { return milieu_.valeur(); }
66 void discretiser() override;
67 void set_param(Param& param) const override;
68 int lire_motcle_non_standard(const Motcle& mot, Entree& is) override;
69 virtual const Champ_Don_base& diffusivite_pour_transport() const { return milieu_->mu_lame(); }
70 virtual const Champ_base& diffusivite_pour_pas_de_temps() const { return milieu_->mu_lame(); }
71 const Motcle& domaine_application() const override;
72 void valider_iteration() override;
73
74private:
75 void update_velocity();
76
77 Operateur_Diff terme_diffusif;
78 OWN_PTR(Champ_Inc_base) deplacement_;
79 OBS_PTR(Milieu_Elasticite) milieu_;
80 OWN_PTR(Champ_Fonc_base) von_mises_, contraintes_, deformations_, vitesse_noeuds_;
81};
82
83#endif
classe Champ_Don_base classe de base des Champs donnes (non calcules)
classe Champ_Fonc_base Classe de base des champs qui sont fonction d'une grandeur calculee
Classe Champ_Inc_base.
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
Navier–Cauchy equation for small-strain linear elasticity.
void set_param(Param &param) const override
const Motcle & domaine_application() const override
Renvoie "indetermine" Navier_Stokes_standard par exemple surcharge cette methode.
Champ_Inc_base & inconnue() override
void associer_milieu_base(const Milieu_base &) override
const Champ_Inc_base & inconnue() const override
void discretiser() override
Discretise l'equation.
Milieu_base & milieu() override
int lire_motcle_non_standard(const Motcle &mot, Entree &is) override
Lecture des parametres de type non simple d'un objet_U a partir d'un flot d'entree.
int nombre_d_operateurs() const override
virtual const Champ_Don_base & diffusivite_pour_transport() const
const Operateur & operateur(int) const override
void valider_iteration() override
methode virtuelle permettant de corriger l'onconnue lors d'iterations implicites par exemple K-eps do...
virtual const Champ_base & diffusivite_pour_pas_de_temps() const
void mettre_a_jour(double temps) override
La valeur de l'inconnue sur le pas de temps a ete calculee.
const Milieu_base & milieu() const override
classe Equation_base Le role d'une equation est le calcul d'un ou plusieurs champs....
Isotropic small-strain linear elastic medium.
classe Milieu_base Cette classe est la base de la hierarchie des milieux (physiques)
Definition Milieu_base.h:50
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
classe Operateur_Diff Classe generique de la hierarchie des operateurs representant un terme
classe Operateur Classe generique de la hierarchie des operateurs.
Definition Operateur.h:39
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112