TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Cut_cell_diffusion_flux_interface.h
1/****************************************************************************
2* Copyright (c) 2015 - 2016, 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 Cut_cell_diffusion_flux_interface_included
17#define Cut_cell_diffusion_flux_interface_included
18
19#include <FixedVector.h>
20#include <IJK_Field.h>
21#include <Cut_field.h>
22#include <Maillage_FT_IJK.h>
23#include <Facettes_Interp_FT.h>
24
25enum class METHODE_FLUX_INTERFACE : int
26{
27 NON_INITIALISE, // Valeur invalide par defaut, pour forcer le choix
28 INTERP_PURE, // Methode d'interpolation n'utilisant pas les donnees cut-cell (cf. Aymeric)
29 INTERP_PURE_NO_JUMP, // * variante negligeant le saut du gradient a l'interface
30 INTERP_CUT_CELL, // Methode d'interpolation utilisant les donnees cut-cell
31 INTERP_CUT_CELL_NO_JUMP // * variante negligeant le saut du gradient a l'interface
32};
33
34void calculer_flux_interface_next(METHODE_FLUX_INTERFACE methode_flux_interface,
35 double lambda_liquid,
36 double lambda_vapour,
37 DoubleTabFT& interfacial_temperature,
38 DoubleTabFT& interfacial_phin_ai,
39 const Cut_field_double& cut_field_temperature,
40 const Facettes_Interp_FT& cut_cell_facettes_interpolation,
41 IJK_Field_double& flux_interface_ft);
42void calculer_flux_interface_old(METHODE_FLUX_INTERFACE methode_flux_interface,
43 double lambda_liquid,
44 double lambda_vapour,
45 DoubleTabFT& interfacial_temperature,
46 DoubleTabFT& interfacial_phin_ai,
47 const Cut_field_double& cut_field_temperature,
48 const Facettes_Interp_FT& cut_cell_facettes_interpolation,
49 IJK_Field_double& flux_interface_ft);
50
51void calculer_flux_interface_efficace(const IJK_Field_double& flux_interface_ns_old, const IJK_Field_double& flux_interface_ns_next, DoubleTabFT_cut_cell_scalar& flux_interface_efficace);
52
53void ajout_flux_interface_a_divergence(const DoubleTabFT_cut_cell_scalar& flux_interface_efficace, Cut_field_double& cut_field_d_temperature);
54
55#endif /* Cut_cell_diffusion_flux_interface_included */