TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
OpGradCentre2IJKScalar.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 OpGradCentre2IJKScalar_included
17#define OpGradCentre2IJKScalar_included
18
19#include <OpConvCentre2IJKScalar.h>
20#include <IJK_Field_vector.h>
21
22/////////////////////////////////////////////////////////////////////////////
23//
24// .DESCRIPTION : class OpGradCentre2IJKScalar
25//
26// <Description of class OpGradCentre2IJKScalar>
27//
28/////////////////////////////////////////////////////////////////////////////
29
31{
32 Declare_instanciable_sans_constructeur( OpGradCentre2IJKScalar_double ) ;
33public :
35 void calculer_grad(const IJK_Field_double& field, IJK_Field_vector3_double& result);
36 void calculer_grad_x(const IJK_Field_double& field, IJK_Field_double& result);
37 void calculer_grad_y(const IJK_Field_double& field, IJK_Field_double& result);
38 void calculer_grad_z(const IJK_Field_double& field, IJK_Field_double& result);
39protected :
40 void fill_grad_field_x_y_(IJK_Field_local_double& flux, IJK_Field_double& resu, int k, int dir) override;
41 void fill_grad_field_z_(IJK_Field_local_double& flux_min, IJK_Field_local_double& flux_max, IJK_Field_double& resu, int k) override;
42};
43
45{
46 Declare_instanciable_sans_constructeur(OpGradFluxCentre2IJKScalar_double);
47public:
49 void calculer_grad_flux(const IJK_Field_double& field,
50 const IJK_Field_double& vx,
51 const IJK_Field_double& vy,
52 const IJK_Field_double& vz,
53 IJK_Field_vector3_double& result);
54 void fill_grad_field_x_y_(IJK_Field_local_double& flux, IJK_Field_double& resu, int k, int dir) override;
55 void fill_grad_field_z_(IJK_Field_local_double& flux_min, IJK_Field_local_double& flux_max, IJK_Field_double& resu, int k) override;
56};
57
58#endif /* OpGradCentre2IJKScalar_included */
void calculer_grad_x(const IJK_Field_double &field, IJK_Field_double &result)
void calculer_grad_y(const IJK_Field_double &field, IJK_Field_double &result)
void fill_grad_field_x_y_(IJK_Field_local_double &flux, IJK_Field_double &resu, int k, int dir) 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 calculer_grad(const IJK_Field_double &field, IJK_Field_vector3_double &result)
void calculer_grad_z(const IJK_Field_double &field, IJK_Field_double &result)
void fill_grad_field_x_y_(IJK_Field_local_double &flux, IJK_Field_double &resu, int k, int dir) 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 calculer_grad_flux(const IJK_Field_double &field, const IJK_Field_double &vx, const IJK_Field_double &vy, const IJK_Field_double &vz, IJK_Field_vector3_double &result)