TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
OpHessCentre2IJKScalar.h
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 OpHessCentre2IJKScalar_included
17#define OpHessCentre2IJKScalar_included
18
19#include <Operateur_IJK_elem_diff_base.h>
20#include <IJK_Field_vector.h>
21
22/////////////////////////////////////////////////////////////////////////////
23//
24// .DESCRIPTION : class OpHessCentre2IJKScalar
25//
26// <Description of class OpHessCentre2IJKScalar>
27//
28/////////////////////////////////////////////////////////////////////////////
29
31{
32
33 Declare_instanciable( OpHessCentre2IJKScalar_double ) ;
34
35public:
36 void calculer_hess(const IJK_Field_double& field,
37 IJK_Field_vector3_double& result,
38 const IJK_Field_local_double& boundary_flux_kmin,
39 const IJK_Field_local_double& boundary_flux_kmax);
40
41 void calculer_hess_xx(const IJK_Field_double& field,
42 IJK_Field_double& result,
43 const IJK_Field_local_double& boundary_flux_kmin,
44 const IJK_Field_local_double& boundary_flux_kmax);
45
46 void calculer_hess_yy(const IJK_Field_double& field,
47 IJK_Field_double& result,
48 const IJK_Field_local_double& boundary_flux_kmin,
49 const IJK_Field_local_double& boundary_flux_kmax);
50
51 void calculer_hess_zz(const IJK_Field_double& field,
52 IJK_Field_double& result,
53 const IJK_Field_local_double& boundary_flux_kmin,
54 const IJK_Field_local_double& boundary_flux_kmax);
55protected:
56 const double unit_lambda_ = 1.;
57 void fill_grad_field_x_y_(IJK_Field_local_double& flux, IJK_Field_double& resu, int k, int dir) override;
58 void fill_grad_field_z_(IJK_Field_local_double& flux_min, IJK_Field_local_double& flux_max, IJK_Field_double& resu, int k) override;
59};
60
62{
63 Declare_instanciable_sans_constructeur(OpHessFluxCentre2IJKScalar_double);
64public:
66 void calculer_hess_flux(const IJK_Field_double& field,
67 IJK_Field_vector3_double& result,
68 const IJK_Field_local_double& boundary_flux_kmin,
69 const IJK_Field_local_double& boundary_flux_kmax);
70 void fill_grad_field_x_y_(IJK_Field_local_double& flux, IJK_Field_double& resu, int k, int dir) override;
71 void fill_grad_field_z_(IJK_Field_local_double& flux_min, IJK_Field_local_double& flux_max, IJK_Field_double& resu, int k) override;
72};
73
74#endif /* OpHessCentre2IJKScalar_included */
void calculer_hess_yy(const IJK_Field_double &field, IJK_Field_double &result, const IJK_Field_local_double &boundary_flux_kmin, const IJK_Field_local_double &boundary_flux_kmax)
void calculer_hess(const IJK_Field_double &field, IJK_Field_vector3_double &result, const IJK_Field_local_double &boundary_flux_kmin, const IJK_Field_local_double &boundary_flux_kmax)
void fill_grad_field_x_y_(IJK_Field_local_double &flux, IJK_Field_double &resu, int k, int dir) override
void calculer_hess_xx(const IJK_Field_double &field, IJK_Field_double &result, const IJK_Field_local_double &boundary_flux_kmin, const IJK_Field_local_double &boundary_flux_kmax)
void calculer_hess_zz(const IJK_Field_double &field, IJK_Field_double &result, const IJK_Field_local_double &boundary_flux_kmin, const IJK_Field_local_double &boundary_flux_kmax)
void fill_grad_field_z_(IJK_Field_local_double &flux_min, IJK_Field_local_double &flux_max, IJK_Field_double &resu, int k) override
void fill_grad_field_z_(IJK_Field_local_double &flux_min, IJK_Field_local_double &flux_max, IJK_Field_double &resu, int k) override
void fill_grad_field_x_y_(IJK_Field_local_double &flux, IJK_Field_double &resu, int k, int dir) override
void calculer_hess_flux(const IJK_Field_double &field, IJK_Field_vector3_double &result, const IJK_Field_local_double &boundary_flux_kmin, const IJK_Field_local_double &boundary_flux_kmax)