Skip to content

Commit

Permalink
Merge pull request #13892 from mcgratta/master
Browse files Browse the repository at this point in the history
FDS Source: #13885. Fix bug at Atmospheric interpolated boundary
  • Loading branch information
mcgratta authored Dec 13, 2024
2 parents 8cfb664 + 9420b1f commit bbc3838
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/wall.f90
Original file line number Diff line number Diff line change
Expand Up @@ -645,10 +645,11 @@ SUBROUTINE SURFACE_HEAT_TRANSFER(NM,T,SF,BC,B1,WALL_INDEX,CFACE_INDEX,PARTICLE_I
! interp or extrap RHO_OTHER for jump in vertical grid resolution, linear in temperature to match heat flux in divg
PBAR_G = PBAR_P(BC%KKG,B1%PRESSURE_ZONE)
PBAR_OTHER = EVALUATE_RAMP(MM%ZC(EWC%KKO_MIN),I_RAMP_P0_Z)
ZZ_GET(1:N_TRACKED_SPECIES) = MAX(0._EB,MIN(1._EB,ZZP(BC%II,BC%JJ,BC%KK,1:N_TOTAL_SCALARS)/RHOP(BC%II,BC%JJ,BC%KK)))
ZZ_GET(1:N_TRACKED_SPECIES) = MAX(0._EB,MIN(1._EB,ZZP(BC%II,BC%JJ,BC%KK,1:N_TOTAL_SCALARS)))
CALL GET_SPECIFIC_GAS_CONSTANT(ZZ_GET,RSUM(BC%II,BC%JJ,BC%KK))
DENOM = PBAR_G/B1%RHO_G/RSUM_G + DDO*(PBAR_OTHER/RHO_OTHER/RSUM(BC%II,BC%JJ,BC%KK) - PBAR_G/B1%RHO_G/RSUM_G)
RHOP(BC%II,BC%JJ,BC%KK) = PBAR_P(BC%KK,B1%PRESSURE_ZONE)/RSUM(BC%II,BC%JJ,BC%KK)/DENOM
TMP(BC%II,BC%JJ,BC%KK) = PBAR_P(BC%KK,B1%PRESSURE_ZONE)/(RSUM(BC%II,BC%JJ,BC%KK)*RHOP(BC%II,BC%JJ,BC%KK))
ENDIF

! Correction for variable molecular weights
Expand Down

0 comments on commit bbc3838

Please sign in to comment.