Set number of variable to solver for based on the tubulence and transition model being used
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(controltype), | intent(inout) | :: | control | Control parameters |
||
type(schemetype), | intent(in) | :: | scheme | finite-volume Schemes |
subroutine set_n_var_value(control, scheme)
!< Set number of variable to solver for based on
!< the tubulence and transition model being used
implicit none
type(controltype), intent(inout) :: control
!< Control parameters
type(schemetype), intent(in) ::scheme
!< finite-volume Schemes
DebugCall("set_n_var_value")
select case (trim(scheme%turbulence))
case('none')
n_var=5
case('sa', 'saBC')
n_var=6
case('sst', "sst2003", 'bsl', 'kw', 'ke', 'kkl', 'Des-kw')
n_var=7
case DEFAULT
n_var=5
end select
!Transition modeling
select case(trim(scheme%transition))
case('lctm2015')
n_var = n_var + 1
case('bc', 'none')
n_var = n_var + 0
case DEFAULT
Fatal_error
end Select
control%n_var = n_var
end subroutine set_n_var_value