TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
OpConvAmontIJK.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 OpConvAmontIJK_included
17#define OpConvAmontIJK_included
18#include <Operateur_IJK_faces_conv_base.h>
19
21{
22 Declare_instanciable(OpConvAmontIJK_double);
23protected:
24
25 inline void compute_flux_x_vx(IJK_Field_local_double& resu, const int k_layer) override
26 {
27 compute_flux_<DIRECTION::X,DIRECTION::X>(resu,k_layer);
28 }
29 inline void compute_flux_x_vy(IJK_Field_local_double& resu, const int k_layer) override
30 {
31 compute_flux_<DIRECTION::X,DIRECTION::Y>(resu,k_layer);
32 }
33 inline void compute_flux_x_vz(IJK_Field_local_double& resu, const int k_layer) override
34 {
35 compute_flux_<DIRECTION::X,DIRECTION::Z>(resu,k_layer);
36 }
37 inline void compute_flux_y_vx(IJK_Field_local_double& resu, const int k_layer) override
38 {
39 compute_flux_<DIRECTION::Y,DIRECTION::X>(resu,k_layer);
40 }
41 inline void compute_flux_y_vy(IJK_Field_local_double& resu, const int k_layer) override
42 {
43 compute_flux_<DIRECTION::Y,DIRECTION::Y>(resu,k_layer);
44 }
45 inline void compute_flux_y_vz(IJK_Field_local_double& resu, const int k_layer) override
46 {
47 compute_flux_<DIRECTION::Y,DIRECTION::Z>(resu,k_layer);
48 }
49 inline void compute_flux_z_vx(IJK_Field_local_double& resu, const int k_layer) override
50 {
51 compute_flux_<DIRECTION::Z,DIRECTION::X>(resu,k_layer);
52 }
53 inline void compute_flux_z_vy(IJK_Field_local_double& resu, const int k_layer) override
54 {
55 compute_flux_<DIRECTION::Z,DIRECTION::Y>(resu,k_layer);
56 }
57 inline void compute_flux_z_vz(IJK_Field_local_double& resu, const int k_layer) override
58 {
59 compute_flux_<DIRECTION::Z,DIRECTION::Z>(resu,k_layer);
60 }
61
62private:
63 template <DIRECTION _DIR_, DIRECTION _VCOMPO_>
64 void compute_flux_(IJK_Field_local_double& resu, const int k_layer);
65};
66
67#include <OpConvAmontIJK.tpp>
68
69#endif /* OpConvAmontIJK_included */
void compute_flux_y_vy(IJK_Field_local_double &resu, const int k_layer) override
void compute_flux_x_vx(IJK_Field_local_double &resu, const int k_layer) override
void compute_flux_y_vx(IJK_Field_local_double &resu, const int k_layer) override
void compute_flux_z_vx(IJK_Field_local_double &resu, const int k_layer) override
void compute_flux_x_vz(IJK_Field_local_double &resu, const int k_layer) override
void compute_flux_x_vy(IJK_Field_local_double &resu, const int k_layer) override
void compute_flux_z_vy(IJK_Field_local_double &resu, const int k_layer) override
void compute_flux_z_vz(IJK_Field_local_double &resu, const int k_layer) override
void compute_flux_y_vz(IJK_Field_local_double &resu, const int k_layer) override