TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Iterateur_VDF_Elem_FT_TCL.tpp
1/****************************************************************************
2* Copyright (c) 2023, 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 Iterateur_VDF_Elem_FT_TCL_TPP_included
17#define Iterateur_VDF_Elem_FT_TCL_TPP_included
18
19/*
20 * XXX XXX XXX
21 * Elie Saikali : NOTA BENE : fichier surcharger dans trio pour le FT, TCL model
22 */
23
24template<class _TYPE_> template<typename Type_Double>
25inline void Iterateur_VDF_Elem<_TYPE_>::fill_flux_tables_(const int face, const int ncomp, const double coeff, const Type_Double& flux, DoubleTab& resu) const
26{
27 DoubleTab& flux_bords = op_base->flux_bords();
28 const int elem1 = elem(face, 0), elem2 = elem(face, 1);
29 if (elem1 > -1)
30 for (int k = 0; k < ncomp; k++)
31 {
32 resu(elem1, k) += coeff * flux[k];
33 flux_bords(face, k) += coeff * flux[k];
34 }
35 if (elem2 > -1)
36 for (int k = 0; k < ncomp; k++)
37 {
38 resu(elem2, k) -= coeff * flux[k];
39 flux_bords(face, k) -= coeff * flux[k];
40 }
41}
42
43template<class _TYPE_> template<typename Type_Double>
44bool Iterateur_VDF_Elem<_TYPE_>::ajouter_blocs_bords_echange_ext_FT_TCL(const Echange_externe_impose& cl, const int ndeb, const int nfin, const int num_cl, const int N, const Front_VF& frontiere_dis,
45 matrices_t mats, DoubleTab& resu, const tabs_t& semi_impl) const
46{
47 return false; /* true dans trio ... */
48}
49
50#endif /* Iterateur_VDF_Elem_FT_TCL_TPP_included */
Classe Echange_externe_impose: Cette classe represente le cas particulier de la classe.
class Front_VF
Definition Front_VF.h:36