Skip to content

Commit

Permalink
Merge pull request #13137 from mcgratta/master
Browse files Browse the repository at this point in the history
FDS Source: Issue #13134. Fix bug related to thin OBSTs
  • Loading branch information
mcgratta committed Jul 8, 2024
2 parents c0d0285 + f5022d5 commit d8d6479
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Source/read.f90
Original file line number Diff line number Diff line change
Expand Up @@ -10334,6 +10334,16 @@ SUBROUTINE READ_OBST(QUICK_READ)
XB6 = XB(6) + MR%DZ0 + II*MR%DXB(6)
ENDIF

! Save the original, undivided obstruction lengths and face areas.

UNDIVIDED_INPUT_LENGTH(1) = ABS(XB2-XB1)
UNDIVIDED_INPUT_LENGTH(2) = ABS(XB4-XB3)
UNDIVIDED_INPUT_LENGTH(3) = ABS(XB6-XB5)

UNDIVIDED_INPUT_AREA(1) = (XB4-XB3)*(XB6-XB5)
UNDIVIDED_INPUT_AREA(2) = (XB2-XB1)*(XB6-XB5)
UNDIVIDED_INPUT_AREA(3) = (XB2-XB1)*(XB4-XB3)

! Increase the OBST counter

N = N + 1
Expand Down Expand Up @@ -10442,16 +10452,6 @@ SUBROUTINE READ_OBST(QUICK_READ)
ENDIF
ENDIF

! Save the original, undivided obstruction lengths and face areas.

UNDIVIDED_INPUT_LENGTH(1) = ABS(XB2-XB1)
UNDIVIDED_INPUT_LENGTH(2) = ABS(XB4-XB3)
UNDIVIDED_INPUT_LENGTH(3) = ABS(XB6-XB5)

UNDIVIDED_INPUT_AREA(1) = (XB4-XB3)*(XB6-XB5)
UNDIVIDED_INPUT_AREA(2) = (XB2-XB1)*(XB6-XB5)
UNDIVIDED_INPUT_AREA(3) = (XB2-XB1)*(XB4-XB3)

! Throw out obstructions that are not within computational domain

XB1 = MAX(XB1,XS)
Expand Down

0 comments on commit d8d6479

Please sign in to comment.