Skip to content

Commit 37d0502

Browse files
authored
Merge pull request #15300 from mcgratta/master
Revert "FDS Source: Distinguish INIT particles and regions"
2 parents e2246e6 + 1d570a1 commit 37d0502

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

Source/part.f90

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,14 +1012,15 @@ SUBROUTINE INSERT_VOLUMETRIC_PARTICLES
10121012

10131013
! If the INIT volume is outside the current mesh, return
10141014

1015-
SELECT CASE(IN%SHAPE)
1016-
CASE ('BLOCK')
1017-
IF (IN_X1>=XF .OR. IN_X2<=XS .OR. IN_Y1>=YF .OR. IN_Y2<=YS .OR. IN_Z1>=ZF .OR. IN_Z2<=ZS) RETURN
1018-
CASE ('RING')
1019-
IF (RING_MESH_INTERSECTION_ARC(NM,IN%X0,IN%Y0,IN%RADIUS)<TWO_EPSILON_EB) RETURN
1020-
CASE DEFAULT
1021-
IF (IN_X1>XF .OR. IN_X2<XS .OR. IN_Y1>YF .OR. IN_Y2<YS .OR. IN_Z1>ZF .OR. IN_Z2<ZS) RETURN
1022-
END SELECT
1015+
IF (IN%SHAPE/='RING' .AND. IN%SHAPE/='LINE') THEN
1016+
IF ((IN_X1-XF)>50._EB*TWO_EPSILON_EB .OR. (IN_X2-XS)<-50._EB*TWO_EPSILON_EB .OR. &
1017+
(IN_Y1-YF)>50._EB*TWO_EPSILON_EB .OR. (IN_Y2-YS)<-50._EB*TWO_EPSILON_EB .OR. &
1018+
(IN_Z1-ZF)>50._EB*TWO_EPSILON_EB .OR. (IN_Z2-ZS)<-50._EB*TWO_EPSILON_EB) RETURN
1019+
ELSEIF (IN%SHAPE=='RING') THEN
1020+
IF (RING_MESH_INTERSECTION_ARC(NM,IN%X0,IN%Y0,IN%RADIUS)<TWO_EPSILON_EB) RETURN
1021+
ELSE
1022+
IF (IN_X1>XF .OR. IN_X2<XS .OR. IN_Y1>YF .OR. IN_Y2<YS .OR. IN_Z1>ZF .OR. IN_Z2<ZS) RETURN
1023+
ENDIF
10231024

10241025
! Skip mesh that is contained completely within a ring
10251026

Source/read.f90

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12899,7 +12899,6 @@ SUBROUTINE READ_INIT
1289912899
XB(1:2) = XYZ(1)
1290012900
XB(3:4) = XYZ(2)
1290112901
XB(5:6) = XYZ(3)
12902-
IF (SHAPE=='null') SHAPE = 'POINT'
1290312902
ENDIF
1290412903

1290512904
! If an offset has been specified, set the SHAPE to LINE.
@@ -12912,10 +12911,6 @@ SUBROUTINE READ_INIT
1291212911
XB(6) = XB(5) + DZ*(N_PARTICLES-1)
1291312912
ENDIF
1291412913

12915-
! If the INIT region is not a POINT or a LINE, assume it is a BLOCK unless user says otherwise
12916-
12917-
IF (SHAPE=='null') SHAPE = 'BLOCK'
12918-
1291912914
! Create a box around a CONE
1292012915

1292112916
IF (SHAPE=='CONE' .OR. SHAPE=='RING' .OR. SHAPE=='CYLINDER') THEN
@@ -13360,7 +13355,7 @@ SUBROUTINE SET_INIT_DEFAULTS
1336013355
RAMP_PART = 'null'
1336113356
RAMP_Q = 'null'
1336213357
RAMP_TMP_Z = 'null'
13363-
SHAPE = 'null'
13358+
SHAPE = 'BLOCK'
1336413359
SPEC_ID = 'null'
1336513360
TEMPERATURE = -1000._EB
1336613361
TREE_HEIGHT = -1._EB

0 commit comments

Comments
 (0)