Skip to content

Commit 7094072

Browse files
authored
Merge pull request #15503 from drjfloyd/master
FDS Source: Add error for nonsensical E value (Issue #15497).
2 parents ae876fa + 1769897 commit 7094072

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Manuals/FDS_User_Guide/FDS_User_Guide.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14190,6 +14190,7 @@ \chapter{Error Codes}
1419014190
266 \> \ct{REAC ... FUEL ... is not a predefined or tracked species.} \> Section~\ref{info:simple_chemistry} \\
1419114191
267 \> \ct{REAC ... has no consumed species.} \> Section~\ref{info:REAC_Diagnostics} \\
1419214192
268 \> \ct{BACK tracked species ... not found.} \> Section~\ref{info:BACK} \\
14193+
269 \> \ct{MATL ... The specified pyrolysis parameters result in A >...} \> Section~\ref{info:kinetic_parameters} \\
1419314194
\> \> \\
1419414195
299 \> \ct{SURF ... has no solid or particle for TGA.} \> Section~\ref{info:TGA_DSC_MCC} \\
1419514196
300 \> \ct{N_LAYER_CELLS_MAX should be at least ... for ...} \> Section~\ref{info:solid_phase_stability} \\

Source/read.f90

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7347,6 +7347,12 @@ SUBROUTINE READ_MATL
73477347
PEAK_REACTION_RATE = 2._EB*ML%HEATING_RATE(NR)/ML%PYROLYSIS_RANGE(NR)
73487348
ENDIF
73497349
ML%E(NR) = EXP(1._EB)*PEAK_REACTION_RATE*R0*ML%TMP_REF(NR)**2/ML%HEATING_RATE(NR)
7350+
! 0.0001 HUGE_EB is used so the reaction rate is not overflowed when multiplied by RHO.
7351+
IF (LOG(0.0001_EB*HUGE_EB)*R0*ML%TMP_REF(NR) < ML%E(NR)) THEN
7352+
WRITE(MESSAGE,'(3A,E10.3)') 'ERROR(269): MATL ',TRIM(ML%ID),' The specified pyrolysis parameters result in A >',&
7353+
0.0001_EB*HUGE_EB
7354+
CALL SHUTDOWN(MESSAGE) ; RETURN
7355+
ENDIF
73507356
ML%A(NR) = EXP(1._EB)*PEAK_REACTION_RATE*EXP(ML%E(NR)/(R0*ML%TMP_REF(NR)))
73517357
ENDIF
73527358

0 commit comments

Comments
 (0)