TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Perte_Charge_Isotrope_PolyMAC_CDO_Face.cpp
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#include <Perte_Charge_Isotrope_PolyMAC_CDO_Face.h>
17#include <Motcle.h>
18
19Implemente_instanciable(Perte_Charge_Isotrope_PolyMAC_CDO_Face, "Perte_Charge_Isotrope_Face_PolyMAC_CDO", Perte_Charge_PolyMAC_CDO);
20
23
24void Perte_Charge_Isotrope_PolyMAC_CDO_Face::coeffs_perte_charge(const DoubleVect& u, const DoubleVect& pos, double t, double norme_u,
25 double dh, double nu, double reynolds, double& coeff_ortho,
26 double& coeff_long, double& u_l, DoubleVect& v_valeur) const
27{
28 coeffs_perte_charge_impl(u, pos, t, norme_u, dh, nu, reynolds, K_, coeff_ortho, coeff_long, u_l, v_valeur, lambda);
29}
30
31/////////////////////////////////////////////////
32
33Implemente_instanciable(Perte_Charge_Isotrope_PolyMAC_HFV_Face, "Perte_Charge_Isotrope_Face_PolyMAC_HFV|Perte_Charge_Isotrope_Face_PolyMAC_MPFA", Perte_Charge_PolyMAC_HFV);
34
37
38void Perte_Charge_Isotrope_PolyMAC_HFV_Face::coeffs_perte_charge(const DoubleVect& u, const DoubleVect& pos, double t, double norme_u,
39 double dh, double nu, double reynolds, double& coeff_ortho,
40 double& coeff_long, double& u_l, DoubleVect& v_valeur) const
41{
42 coeffs_perte_charge_impl(u, pos, t, norme_u, dh, nu, reynolds, K_, coeff_ortho, coeff_long, u_l, v_valeur, lambda);
43}
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
const Nom & que_suis_je() const
Returns the string identifying the class.
Definition Objet_U.cpp:104
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
Definition Objet_U.cpp:289
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
Definition Objet_U.cpp:278
void coeffs_perte_charge_impl(const DoubleVect &, const DoubleVect &, double, double, double, double, double, double, double &, double &, double &, DoubleVect &, Parser_U &) const
Isotropic pressure drop (proportional to -u).
void coeffs_perte_charge(const DoubleVect &, const DoubleVect &, double, double, double, double, double, double &, double &, double &, DoubleVect &) const override
Implements the effective computation of the pressure drop for a given location.
void coeffs_perte_charge(const DoubleVect &, const DoubleVect &, double, double, double, double, double, double &, double &, double &, DoubleVect &) const override
Called for each face by ajouter().
Factorises the features of several pressure drop classes in VEF, face velocity.
Base class for output streams.
Definition Sortie.h:52