ADflow  v1.0
ADflow is a finite volume RANS solver tailored for gradient-based aerodynamic design optimization.
turbMod.F90
Go to the documentation of this file.
1 module turbmod
2  !
3  ! This local module contains variables used when the turbulence
4  ! equations are solved.
5  !
6  use precision
7  implicit none
8  save
9 
10  ! secondOrd: whether or not a second order discretization for
11  ! the advective terms must be used.
12  ! sig1, sig2: Sigma coefficients in the diffusion terms of the
13  ! different turbulence models.
14 
15  logical :: secondord
16  real(kind=realtype) :: sig1, sig2
17 
18  ! dvt: Pointer, which points to an unused part of dw. It is
19  ! used for temporary storage of residual.
20  ! vort: Pointer, which points to an unused part of dw. It is
21  ! used for temporary storage of the magnitude of
22  ! vorticity squared.
23  ! prod: Pointer, which points to an unused part of dw. It is
24  ! used for temporary storage of the unscaled production
25  ! term.
26  ! f1: F1 blending function in the SST model.
27  ! kwCD: Cross diffusion term in the k-omega type models.
28  ! ktCD: Cross diffusion term in the k-tau model
29  ! sct: Time scale in the v2-f model.
30  ! scl2: Length scale in the v2-f model.
31  ! strain2: Square of the strain.
32 
33  real(kind=realtype), dimension(:, :, :, :), pointer :: dvt
34  real(kind=realtype), dimension(:, :, :), pointer :: vort
35  real(kind=realtype), dimension(:, :, :), pointer :: prod
36  real(kind=realtype), dimension(:, :, :), pointer :: f1
37  real(kind=realtype), dimension(:, :, :), pointer :: kwcd
38  real(kind=realtype), dimension(:, :, :), pointer :: ktcd
39  real(kind=realtype), dimension(:, :, :), pointer :: sct
40  real(kind=realtype), dimension(:, :, :), pointer :: scl2
41  real(kind=realtype), dimension(:, :, :), pointer :: strain2
42 
43 #ifndef USE_TAPENADE
44  real(kind=realtype), dimension(:, :, :, :), pointer :: dvtd
45  real(kind=realtype), dimension(:, :, :), pointer :: vortd
46  real(kind=realtype), dimension(:, :, :), pointer :: prodd
47  real(kind=realtype), dimension(:, :, :), pointer :: f1d
48  real(kind=realtype), dimension(:, :, :), pointer :: kwcdd
49  real(kind=realtype), dimension(:, :, :), pointer :: ktcdd
50  real(kind=realtype), dimension(:, :, :), pointer :: sctd
51  real(kind=realtype), dimension(:, :, :), pointer :: scl2d
52  real(kind=realtype), dimension(:, :, :), pointer :: strain2d
53 #endif
54 end module turbmod
integer, parameter realtype
Definition: precision.F90:112
real(kind=realtype), dimension(:, :, :), pointer vort
Definition: turbMod.F90:34
real(kind=realtype), dimension(:, :, :, :), pointer dvtd
Definition: turbMod.F90:44
real(kind=realtype) sig2
Definition: turbMod.F90:16
real(kind=realtype), dimension(:, :, :), pointer sctd
Definition: turbMod.F90:50
real(kind=realtype), dimension(:, :, :), pointer kwcdd
Definition: turbMod.F90:48
real(kind=realtype), dimension(:, :, :), pointer strain2d
Definition: turbMod.F90:52
real(kind=realtype), dimension(:, :, :), pointer scl2
Definition: turbMod.F90:40
real(kind=realtype), dimension(:, :, :), pointer f1d
Definition: turbMod.F90:47
real(kind=realtype), dimension(:, :, :), pointer prodd
Definition: turbMod.F90:46
real(kind=realtype), dimension(:, :, :), pointer vortd
Definition: turbMod.F90:45
real(kind=realtype), dimension(:, :, :), pointer kwcd
Definition: turbMod.F90:37
real(kind=realtype), dimension(:, :, :), pointer prod
Definition: turbMod.F90:35
logical secondord
Definition: turbMod.F90:15
real(kind=realtype), dimension(:, :, :), pointer ktcd
Definition: turbMod.F90:38
real(kind=realtype) sig1
Definition: turbMod.F90:16
real(kind=realtype), dimension(:, :, :), pointer strain2
Definition: turbMod.F90:41
real(kind=realtype), dimension(:, :, :), pointer f1
Definition: turbMod.F90:36
real(kind=realtype), dimension(:, :, :, :), pointer dvt
Definition: turbMod.F90:33
real(kind=realtype), dimension(:, :, :), pointer scl2d
Definition: turbMod.F90:51
real(kind=realtype), dimension(:, :, :), pointer ktcdd
Definition: turbMod.F90:49
real(kind=realtype), dimension(:, :, :), pointer sct
Definition: turbMod.F90:39