Skip to content

Commit a6195ce

Browse files
committed
Merge remote-tracking branch 'firemodels/master' into decimal
2 parents 09f9d1e + 1e9e7de commit a6195ce

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

Manuals/FDS_User_Guide/FDS_User_Guide.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9559,7 +9559,7 @@ \section{Baroclinic Vorticity}
95599559
\ee
95609560
drops below the value of \ct{PRESSURE_TOLERANCE} which is specified on the \ct{PRES} line. Its default value is $20/\dx^2$~s$^{-2}$, where $\dx$ is the characteristic grid cell size.
95619561

9562-
The lagged pressure term on the right hand side of Eq.~(\ref{sepeq}) is sometimes referred to as the baroclinic torque, and it is responsible for generating vorticity due to the non-alignment of pressure and density gradients. In versions of FDS prior to 6, the inclusion of the baroclinic torque term was found to sometimes cause numerical instabilities. If it is suspected that the term is responsible for numerical problems, it can be removed by setting \ct{BAROCLINIC=F} on the \ct{MISC} line. For example, in the simple helium plume test case below, neglecting the baroclinic torque changes the puffing behavior noticeably. In other applications, however, its effect is less significant. For further discussion of its effect, see Ref.~\cite{Xin:JSS2005}.
9562+
The lagged pressure term on the right hand side of Eq.~(\ref{sepeq}) is sometimes referred to as the baroclinic torque, and it is responsible for generating vorticity due to the non-alignment of pressure and density gradients. In versions of FDS prior to 6, the inclusion of the baroclinic torque term was found to sometimes cause numerical instabilities. If it is suspected that the term is responsible for numerical problems, it can be removed by setting \ct{BAROCLINIC=F} on the \ct{PRES} line. For example, in the simple helium plume test case below, neglecting the baroclinic torque changes the puffing behavior noticeably. In other applications, however, its effect is less significant. For further discussion of its effect, see Ref.~\cite{Xin:JSS2005}.
95639563

95649564

95659565

Source/read.f90

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11410,15 +11410,7 @@ SUBROUTINE READ_OBST(QUICK_READ)
1141011410
IF (OB%I1==OB%I2) THEN ; OBT%X1=OB%X1 ; OBT%X2=OB%X2 ; ENDIF
1141111411
IF (OB%J1==OB%J2) THEN ; OBT%Y1=OB%Y1 ; OBT%Y2=OB%Y2 ; ENDIF
1141211412
IF (OB%K1==OB%K2) THEN ; OBT%Z1=OB%Z1 ; OBT%Z2=OB%Z2 ; ENDIF
11413-
IF (OB%BULK_DENSITY > 0._EB .AND. OB%MASS<1.E5_EB) THEN
11414-
OBT%MASS = OB%BULK_DENSITY*(OBT%X2-OBT%X1)*(OBT%Y2-OBT%Y1)*(OBT%Z2-OBT%Z1)
11415-
IF (OB%I1==OB%I2 .AND. OB%UNDIVIDED_INPUT_LENGTH(1)<0.5_EB*DX(OB%I1)) &
11416-
OBT%MASS = OB%BULK_DENSITY*OB%UNDIVIDED_INPUT_LENGTH(1)*(OBT%Y2-OBT%Y1)*(OBT%Z2-OBT%Z1)
11417-
IF (OB%J1==OB%J2 .AND. OB%UNDIVIDED_INPUT_LENGTH(2)<0.5_EB*DY(OB%J1)) &
11418-
OBT%MASS = OB%BULK_DENSITY*(OBT%X2-OBT%X1)*OB%UNDIVIDED_INPUT_LENGTH(2)*(OBT%Z2-OBT%Z1)
11419-
IF (OB%K1==OB%K2 .AND. OB%UNDIVIDED_INPUT_LENGTH(3)<0.5_EB*DZ(OB%K1)) &
11420-
OBT%MASS = OB%BULK_DENSITY*(OBT%X2-OBT%X1)*(OBT%Y2-OBT%Y1)*OB%UNDIVIDED_INPUT_LENGTH(3)
11421-
ENDIF
11413+
IF (OB%BULK_DENSITY > 0._EB .AND. OB%MASS<1.E5_EB) OBT%MASS = OB%MASS/N_NEW_OBST
1142211414
ENDDO
1142311415
ENDDO
1142411416
ENDDO
@@ -11582,7 +11574,7 @@ SUBROUTINE READ_HOLE
1158211574
USE MISC_FUNCTIONS, ONLY: PROCESS_MESH_NEIGHBORHOOD
1158311575
CHARACTER(LABEL_LENGTH) :: DEVC_ID,CTRL_ID,MULT_ID
1158411576
CHARACTER(25) :: COLOR
11585-
INTEGER :: NM,N_HOLE,NN,NDO,N,I1,I2,J1,J2,K1,K2,RGB(3),N_HOLE_NEW,N_HOLE_O,II,JJ,KK,NNN,DEVC_INDEX_O,CTRL_INDEX_O
11577+
INTEGER :: NM,N_HOLE,NN,NDO,N,I1,I2,J1,J2,K1,K2,RGB(3),N_HOLE_NEW,N_HOLE_O,II,JJ,KK,NNN,NNNN,DEVC_INDEX_O,CTRL_INDEX_O
1158611578
REAL(EB) :: X1,X2,Y1,Y2,Z1,Z2,TRANSPARENCY
1158711579
NAMELIST /HOLE/ COLOR,CTRL_ID,DEVC_ID,FYI,ID,MULT_ID,RGB,TRANSPARENCY,XB
1158811580
REAL(EB), ALLOCATABLE, DIMENSION(:,:) :: TEMP_XB
@@ -11861,7 +11853,13 @@ SUBROUTINE READ_HOLE
1186111853
NEW_OBST_IF: IF (NDO>0) THEN
1186211854
CALL RE_ALLOCATE_OBST(NM,N_OBST,NDO)
1186311855
OBSTRUCTION=>M%OBSTRUCTION
11864-
OBSTRUCTION(N_OBST+1:N_OBST+NDO) = TEMP_OBST(1:NDO)
11856+
DO NNNN = 1,NDO
11857+
OB => OBSTRUCTION(N_OBST+NNNN)
11858+
OB = TEMP_OBST(NNNN)
11859+
IF (OB%BULK_DENSITY > 0._EB) &
11860+
OB%MASS = OB%BULK_DENSITY*(TEMP_OBST(NNNN)%X2-TEMP_OBST(NNNN)%X1)*&
11861+
(TEMP_OBST(NNNN)%Y2-TEMP_OBST(NNNN)%Y1)*(TEMP_OBST(NNNN)%Z2-TEMP_OBST(NNNN)%Z1)
11862+
ENDDO
1186511863
N_OBST = N_OBST + NDO
1186611864
ENDIF NEW_OBST_IF
1186711865

@@ -11871,6 +11869,9 @@ SUBROUTINE READ_HOLE
1187111869

1187211870
OBSTRUCTION(NN) = TEMP_OBST(0)
1187311871
OB => OBSTRUCTION(NN)
11872+
IF (OB%BULK_DENSITY > 0._EB) &
11873+
OB%MASS = OB%BULK_DENSITY*(TEMP_OBST(0)%X2-TEMP_OBST(0)%X1)*&
11874+
(TEMP_OBST(0)%Y2-TEMP_OBST(0)%Y1)*(TEMP_OBST(0)%Z2-TEMP_OBST(0)%Z1)
1187411875
OB%DEVC_INDEX_O = DEVC_INDEX_O
1187511876
OB%CTRL_INDEX_O = CTRL_INDEX_O
1187611877
OB%DEVC_ID = DEVC_ID

0 commit comments

Comments
 (0)