TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
ComputeValParCompoInCell.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 ComputeValParCompoInCell_included
17#define ComputeValParCompoInCell_included
18
19#include <Connectivite_frontieres.h>
20#include <FixedVector.h>
21#include <IJK_Field.h> // est-ce que j'en ai vraiment besoin ?
22#include <Linear_algebra_tools_impl.h>
23#include <Maillage_FT_IJK.h>
24#include <Parcours_interface.h>
25#include <Vecteur3.h>
26#include <Linear_algebra_tools_impl.h>
27#include <SurfaceVapeurIJKComputation.h>
28
30{
31public:
34 void initialize(const Domaine_IJK& splitting, const Maillage_FT_IJK& maillage_ft_ijk)
35 {
36 ref_domaine_ = splitting;
37 mesh_ = &maillage_ft_ijk;
38 }
39
41 const double time,
42 const int itstep,
43 IJK_Field_int& nb_compo_trav,
50 );
51
53 const ArrOfDouble& val_on_sommet,
55 ) const;
57 const ArrOfDouble& val_on_sommet,
59 ) const;
60
61
62
64 const ArrOfDouble& val_on_fa7,
66 ) const;
67
68protected:
69 // Calcul des tableau de surface, normal et bary par compo
71 const int num_compo,
72 const int elem,
73 double& surface,
74 Vecteur3& normale,
75 Vecteur3& bary
76 ) const;
77
78 int calculer_indic_elem_pour_compo(const int icompo, const int elem, double& indic) const;
79
81 IJK_Field_int& nb_compo_traversante,
87 ) const;
88
90 const int elem,
91 ArrOfInt& liste_composantes_connexes_dans_element) const;
92
93 OBS_PTR(Domaine_IJK) ref_domaine_;
95};
96
97#endif
void initialize(const Domaine_IJK &splitting, const Maillage_FT_IJK &maillage_ft_ijk)
void calculer_moyennes_interface_element_pour_compo(const int num_compo, const int elem, double &surface, Vecteur3 &normale, Vecteur3 &bary) const
void calculer_moy_field_fa7_par_compo(const ArrOfDouble &val_on_fa7, FixedVector< IJK_Field_double, max_authorized_nb_of_components_ > &field_par_compo) const
void calculer_valeur_par_compo(const double time, const int itstep, IJK_Field_int &nb_compo_trav, FixedVector< IJK_Field_int, max_authorized_nb_of_components_ > &compos_trav, FixedVector< IJK_Field_double, 3 *max_authorized_nb_of_components_ > &normale_par_compo, FixedVector< IJK_Field_double, 3 *max_authorized_nb_of_components_ > &bary_par_compo, FixedVector< IJK_Field_double, max_authorized_nb_of_components_ > &indicatrice_par_compo, FixedVector< IJK_Field_double, max_authorized_nb_of_components_ > &surface_par_compo, FixedVector< IJK_Field_double, max_authorized_nb_of_components_ > &courbure_par_compo)
OBS_PTR(Domaine_IJK) ref_domaine_
int compute_list_compo_connex_in_element(const int elem, ArrOfInt &liste_composantes_connexes_dans_element) const
int calculer_indic_elem_pour_compo(const int icompo, const int elem, double &indic) const
void calculer_moy_par_compo(IJK_Field_int &nb_compo_traversante, FixedVector< IJK_Field_int, max_authorized_nb_of_components_ > &compos_traversantes, FixedVector< IJK_Field_double, 3 *max_authorized_nb_of_components_ > &normale_par_compo, FixedVector< IJK_Field_double, 3 *max_authorized_nb_of_components_ > &bary_par_compo, FixedVector< IJK_Field_double, max_authorized_nb_of_components_ > &indic_par_compo, FixedVector< IJK_Field_double, max_authorized_nb_of_components_ > &surface_par_compo) const
void calculer_somme_field_sommet_par_compo(const ArrOfDouble &val_on_sommet, FixedVector< IJK_Field_double, max_authorized_nb_of_components_ > &field_par_compo) const
const Maillage_FT_IJK * mesh_
void calculer_moy_field_sommet_par_compo(const ArrOfDouble &val_on_sommet, FixedVector< IJK_Field_double, max_authorized_nb_of_components_ > &field_par_compo) const
This class encapsulates all the information related to the eulerian mesh for TrioIJK.
Definition Domaine_IJK.h:47
: class Maillage_FT_IJK