Skip to content

Commit

Permalink
FDS Source: Issue #13134. Fix bug related to thin OBSTs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgratta committed Jul 8, 2024
1 parent d5686e6 commit f5022d5
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 @@ -10328,6 +10328,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 @@ -10436,16 +10446,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 f5022d5

Please sign in to comment.