63 TYPE(t_region
),
DIMENSION(:),
POINTER :: regions
69 CHARACTER(CHRLEN) :: rcsidentstring
78 rcsidentstring =
'$RCSfile: SPEC_DerivedInputValues.F90,v $ $Revision: 1.12 $'
80 global => regions(1)%global
83 'SPEC_DerivedInputValues.F90')
89 DO ireg = lbound(regions,1),ubound(regions,1)
90 regions(ireg)%spec%nSpecEqs = regions(ireg)%specInput%nSpecies
96 regions(ireg)%specInput%nSpeciesEE = 0
98 DO ispec = 1,regions(ireg)%specInput%nSpecies
99 pspectype => regions(ireg)%specInput%specType(ispec)
105 SELECT CASE ( pspectype%sourceType )
106 CASE ( spec_source_type_none )
107 regions(ireg)%specInput%sourceFlag = .false.
108 CASE ( spec_source_type_chem )
109 regions(ireg)%specInput%sourceFlag = .true.
110 CASE ( spec_source_type_cavi )
111 regions(ireg)%specInput%sourceFlag = .true.
113 CALL
errorstop(global,err_reached_default,__line__, &
114 'Invalid input value for SOURCETYPE')
121 pspectype%discreteFlag = (pspectype%pMaterial%phase /= 1)
123 IF ( pspectype%discreteFlag .EQV. .false. )
THEN
131 IF ( pspectype%discreteFlag .EQV. .true. )
THEN
132 pspectype%effectiveDensity = pspectype%pMaterial%dens/ &
134 pspectype%effectiveVolume = global%pi*pspectype%diameter**3/ &
136 pspectype%materialVolume = pspectype%effectiveVolume/ &
142 pspectype%tauCoefficient = pspectype%diameter**2* &
143 (pspectype%effectiveDensity-1.0_rfreal)/18.0_rfreal
147 IF ( pspectype%tauCoefficient == 0.0_rfreal )
THEN
148 pspectype%velocityMethod = spec_methv_fluidvel
154 pspectype%diameter =
REAL(crazy_value_int,kind=rfreal)
155 pspectype%puffFactor =
REAL(crazy_value_int,kind=rfreal)
156 pspectype%effectiveDensity =
REAL(crazy_value_int,kind=rfreal)
157 pspectype%effectiveVolume =
REAL(crazy_value_int,kind=rfreal)
158 pspectype%materialVolume =
REAL(crazy_value_int,kind=rfreal)
159 pspectype%tauCoefficient =
REAL(crazy_value_int,kind=rfreal)
161 IF ( pspectype%velocityMethod /= spec_methv_fluidvel )
THEN
162 CALL
errorstop(global,err_illegal_value,__line__, &
163 'Continuum species must use fluid velocity for advection')
171 SELECT CASE ( pspectype%velocityMethod )
172 CASE ( spec_methv_fluidvel )
173 regions(ireg)%mixtInput%indSd = 0
174 CASE ( spec_methv_eqeul )
175 regions(ireg)%mixtInput%indSd = 1
177 regions(ireg)%specInput%nSpeciesEE = &
178 regions(ireg)%specInput%nSpeciesEE + 1
179 pspectype%iSpec2iSpecEEv = regions(ireg)%specInput%nSpeciesEE
180 pspectype%iSpecEEv2iSpec = ispec
182 CALL
errorstop(global,err_reached_default,__line__, &
183 'Invalid input value for VELOCITYMETHOD')
189 IF ( regions(ireg)%mixtInput%indSd == 1 )
THEN
190 regions(ireg)%mixtInput%computeTv = .true.
192 IF ( regions(ireg)%mixtInput%nTv < 2 )
THEN
193 regions(ireg)%mixtInput%nTv = 2
subroutine registerfunction(global, funName, fileName)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)