56 TYPE(t_region
),
POINTER :: regions(:)
70 global => regions(1)%global
73 'RFLO_DerivedInputValues.F90' )
77 IF (global%refREnum > 0._rfreal)
THEN
78 global%refVisc = global%refDensity*global%RefVelocity*global%refLength/ &
81 global%refVisc = 0._rfreal
87 DO ireg=1,global%nRegions
88 IF (regions(ireg)%mixtInput%moveGrid .eqv. .true.)
THEN
94 IF ( (somemoved.eqv..true.) .AND. &
95 (global%moveGridScheme==movegrid_vms .OR. &
96 global%moveGridScheme==movegrid_foms))
THEN
97 global%calcCellCtr = .true.
98 global%calcFaceCtr = .true.
101 IF (global%aeroCoeffs==active)
THEN
102 global%calcFaceCtr = .true.
107 DO ireg=1,global%nRegions
109 input => regions(ireg)%mixtInput
113 IF (
input%spaceOrder > discr_order_2)
THEN
114 regions(ireg)%nDumCells = 3
119 input%computeTv = (
input%flowModel == flow_navst)
123 DO ilev=1,regions(ireg)%nGridLevels
124 regions(ireg)%levels(ilev)%mixt%nDv = 6
125 IF (
input%computeTv.eqv..true.)
THEN
126 regions(ireg)%levels(ilev)%mixt%nTv = 2
128 regions(ireg)%levels(ilev)%mixt%nTv = 0
130 regions(ireg)%levels(ilev)%mixt%nGv = 2
131 IF (
input%flowModel == flow_navst)
THEN
132 regions(ireg)%levels(ilev)%mixt%nGrad = 12
134 regions(ireg)%levels(ilev)%mixt%nGrad = 0
136 regions(ireg)%levels(ilev)%mixt%indCp = 0
137 regions(ireg)%levels(ilev)%mixt%indMol = 0
139 regions(ireg)%levels(ilev)%mixt%prLam = global%prLam
140 regions(ireg)%levels(ilev)%mixt%prTurb = global%prTurb
141 regions(ireg)%levels(ilev)%mixt%scnLam = global%scnLam
142 regions(ireg)%levels(ilev)%mixt%scnTurb = global%scnTurb
145 IF (
input%refVisc < 0._rfreal)
input%refVisc = global%refVisc
149 IF (.NOT. (
input%moveGrid.eqv..true.))
THEN
150 global%moveGridScheme = movegrid_blocks
155 DO ilev=1,regions(ireg)%nGridLevels
156 IF (
input%moveGrid.eqv..true.)
THEN
157 regions(ireg)%levels(ilev)%grid%indSvel = 1
159 regions(ireg)%levels(ilev)%grid%indSvel = 0
165 IF (global%flowType == flow_steady)
THEN
166 input%timeScheme = tst_hyb5rk
167 global%tstepOrder = 0
169 IF (global%solverType == solv_explicit)
THEN
170 input%timeScheme = tst_std4rk
171 global%tstepOrder = 4
173 input%timeScheme = tst_hyb5rk
174 global%startLevel = 1
182 dim1d =
max(regions(ireg)%levels(1)%grid%ipc, &
183 regions(ireg)%levels(1)%grid%jpc, &
184 regions(ireg)%levels(1)%grid%kpc) + 6
185 regions(ireg)%dimWork1D = dim1d*dim1d
186 regions(ireg)%dimWork2D(:) = 1
Vector_n max(const Array_n_const &v1, const Array_n_const &v2)
subroutine registerfunction(global, funName, fileName)
subroutine rflo_setmstagecoeffs(global, input, nrkSteps)
subroutine input(X, NNODE, NDC, NCELL, NFCE, NBPTS, NBFACE, ITYP, NPROP, XBNDY, XFAR, YFAR, ZFAR)
subroutine deregisterfunction(global)