TrioCFD 1.9.9_beta
TrioCFD documentation
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
class Champ_Don_base base class of Given Fields (not calculated)
class Champ_Fonc_base Base class of fields that are functions of a calculated quantity
Class Champ_Inc_base.
class Champ_base This class is the base of the fields hierarchy.
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
Returns "indeterminate" Navier_Stokes_standard for example overrides this method.
Champ_Inc_base & inconnue() override
void associer_milieu_base(const Milieu_base &) override
const Champ_Inc_base & inconnue() const override
void discretiser() override
Discretizes the equation.
Milieu_base & milieu() override
int lire_motcle_non_standard(const Motcle &mot, Entree &is) override
Reads non-simple-type parameters of an Objet_U from an input stream.
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
virtual method to correct the unknown during implicit iterations for example K-eps must remain positi...
virtual const Champ_base & diffusivite_pour_pas_de_temps() const
void mettre_a_jour(double temps) override
The value of the unknown at the time step has been calculated.
const Milieu_base & milieu() const override
class Equation_base The role of an equation is the calculation of one or more fields....
Isotropic small-strain linear elastic medium.
Milieu_base This class is the base of the (physical) medium hierarchy.
Definition Milieu_base.h:50
A character string (Nom) in uppercase.
Definition Motcle.h:26
Operateur_Diff Generic class of the hierarchy of operators representing a diffusion.
class Operateur Generic class of the operator hierarchy.
Definition Operateur.h:39
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112