Skip to content

Commit

Permalink
Merge pull request #13932 from rmcdermo/master
Browse files Browse the repository at this point in the history
FDS Source: add SOLID OXYGEN MASS FRACTION profile output
  • Loading branch information
rmcdermo authored Dec 20, 2024
2 parents b1a1407 + cccb988 commit 4353c76
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Source/data.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1604,6 +1604,14 @@ SUBROUTINE DEFINE_OUTPUT_QUANTITIES
OUTPUT_QUANTITY(-80)%UNITS= 'kW/m2'
OUTPUT_QUANTITY(-80)%SHORT_NAME = 'hrrpua_O2'

OUTPUT_QUANTITY(-81)%NAME = 'SOLID OXYGEN MASS FRACTION'
OUTPUT_QUANTITY(-81)%UNITS = 'kg/kg'
OUTPUT_QUANTITY(-81)%SHORT_NAME = 'Y_O2'
OUTPUT_QUANTITY(-81)%MATL_ID_REQUIRED=.TRUE.
OUTPUT_QUANTITY(-81)%INSIDE_SOLID = .TRUE.
OUTPUT_QUANTITY(-81)%BNDF_APPROPRIATE = .FALSE.
OUTPUT_QUANTITY(-81)%PROF_APPROPRIATE = .TRUE.

! Fire spread
OUTPUT_QUANTITY(-90)%NAME = 'FIRE ARRIVAL TIME'
OUTPUT_QUANTITY(-90)%UNITS = 's'
Expand Down
7 changes: 7 additions & 0 deletions Source/dump.f90
Original file line number Diff line number Diff line change
Expand Up @@ -9272,6 +9272,13 @@ REAL(EB) FUNCTION SOLID_PHASE_OUTPUT(INDX,Y_INDEX,Z_INDEX,PART_INDEX,OPT_WALL_IN
IF (SF%INCLUDE_BOUNDARY_PROP2_TYPE) SOLID_PHASE_OUTPUT = B2%Y_O2_ITER
CASE(80) ! OXIDATIVE HRRPUA
SOLID_PHASE_OUTPUT = B1%Q_DOT_O2_PP*0.001_EB
CASE(81) ! SOLID OXYGEN MASS FRACTION
SOLID_PHASE_OUTPUT = 0._EB
IF (SF%INCLUDE_BOUNDARY_PROP2_TYPE .AND. MATL_INDEX>0) THEN
ML => MATERIAL(MATL_INDEX)
! for the moment this assumes there is only one char reaction
IF (ML%N_O2(1)>0._EB) SOLID_PHASE_OUTPUT = B2%Y_O2_F*EXP(-ONE_D%X(I_DEPTH-1)/(TWO_EPSILON_EB+ML%GAS_DIFFUSION_DEPTH(1)))
ENDIF
CASE(90) ! FIRE ARRIVAL TIME
IF (PRESENT(OPT_WALL_INDEX)) THEN
OUTPUT_INDEX = OPT_WALL_INDEX
Expand Down

0 comments on commit 4353c76

Please sign in to comment.