TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Source_Flux_interfacial_base.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 Source_Flux_interfacial_base_included
17#define Source_Flux_interfacial_base_included
18
19#include <Sources_Multiphase_base.h>
20#include <Correlation_base.h>
21#include <TRUST_Ref.h>
22
23/*! @brief Classe Source_Flux_interfacial_base
24 *
25 * Cette classe implemente dans PolyMAC_HFV un operateur de frottement interfacial
26 *
27 * de la forme F_{kl} = - F_{lk} = - C_{kl} (u_k - u_l)
28 * le calcul de C_{kl} est realise par la hierarchie Coefficient_Flux_interfacial_base
29 *
30 * @sa Source_base
31 */
33{
34 Declare_base(Source_Flux_interfacial_base);
35public :
36 void dimensionner_blocs(matrices_t matrices, const tabs_t& semi_impl = {}) const override;
37 void ajouter_blocs(matrices_t matrices, DoubleTab& secmem, const tabs_t& semi_impl = {}) const override;
38 void mettre_a_jour(double temps) override;
39 void completer() override;
40
41 /* flux paroi-interface (par maille) et ses derivees */
42 /* ces tableaux ne sont appelables que dans le terme associe a l'equation d'energie et sont utilises par les autres */
43 /* ils peuvent etre remplis par l'operateur de diffusion (flux en paroi), un module de thermique crayon, etc */
44 DoubleTab& qpi() const; //qpi(e, k, l) : puissance deposee dans l'element e de la phase k vers l'interface (k, l) ; unite : W
45 DoubleTab& dT_qpi() const; //dT_qpi(e, k, l, n) : sa derivee en T[n]
46 DoubleTab& da_qpi() const; //da_qpi(e, k, l, n) : sa derivee en alpha[n]
47 DoubleTab& dp_qpi() const; //da_qpi(e, k, l) : sa derivee en p
48
49private:
50 mutable DoubleTab qpi_, dT_qpi_, da_qpi_, dp_qpi_;
51 OBS_PTR(Correlation_base) correlation_; //correlation donnant le coeff de flux interfacial
52 int is_turb_ = 0;
53 double dv_min = -1.;
54 double mod2grp = -1. ;
55};
56
57#endif /* Source_Flux_interfacial_base_included */
Classe Source_Flux_interfacial_base.
void dimensionner_blocs(matrices_t matrices, const tabs_t &semi_impl={}) const override
void completer() override
Met a jour les references internes a l'objet Source_base.
void mettre_a_jour(double temps) override
DOES NOTHING - to override in derived classes.
void ajouter_blocs(matrices_t matrices, DoubleTab &secmem, const tabs_t &semi_impl={}) const override