Skip to content

Commit e12949b

Browse files
Merge pull request #14413 from johodges/unfreeze
FDS Source and FDS_User_Guide Add UNFREEZE_TIME parameter
2 parents 9d4d71d + 0693168 commit e12949b

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

Manuals/FDS_User_Guide/FDS_User_Guide.tex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9259,6 +9259,11 @@ \subsection*{Reading the Fields}
92599259
\end{lstlisting}
92609260
and FDS will read, for example, \ct{CHID_uvw_t1_m1.csv} through \ct{CHID_uvw_t1_m16.csv} in the order of the \ct{MESH} lines (note that a \ct{MULT} line for the meshes may also be used).
92619261

9262+
\section{Unfreezing the Initial Flow Field}
9263+
\label{info:FREZ}
9264+
9265+
It may be useful to allow the solid phase to respond to an established flow field at the start of a simulation. This could be accomplished with the normal restart functionality; however, this limits the number of changes that can be made to the model before a restart is made. The \ct{UNFREEZE_TIME} parameter on the \ct{MISC} line can be used for this purpose. When set, the initial flow field is frozen with the options \ct{FREEZE_VELOCITY} and \ct{SOLID_PHASE_ONLY} set until the simulation time exceeds \ct{UNFREEZE_TIME}.
9266+
92629267

92639268
\section{Gravity}
92649269
\label{info:GVEC}
@@ -12731,6 +12736,7 @@ \section{\texorpdfstring{{\tt MISC}}{MISC} (Miscellaneous Parameters)}
1273112736
\ct{TMPA} & Real & Section~\ref{info:MISC_Basics} & $^\circ$C & 20. \\ \hline
1273212737
\ct{TURBULENCE_MODEL} & Character & Section~\ref{info:LES} & & \ct{'DEARDORFF'} \\ \hline
1273312738
\ct{TURBULENT_DEPOSITION} & Logical & Section~\ref{info:deposition} & & \ct{T} \\ \hline
12739+
\ct{UNFREEZE_TIME} & Real & Section~\ref{info:FREZ} & & \\ \hline
1273412740
\ct{VERBOSE} & Logical & Section~\ref{info:multimesh} & & \\ \hline
1273512741
\ct{VISIBILITY_FACTOR} & Real & Section~\ref{info:visibility} & & 3 \\ \hline
1273612742
\ct{VN_MAX} & Real & Section~\ref{info:VN} & & 1.0 \\ \hline

Source/cons.f90

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ MODULE GLOBAL_CONSTANTS
394394
REAL(EB) :: DT_END_MINIMUM=TWO_EPSILON_EB !< Smallest possible final time step (s)
395395
REAL(EB) :: DT_END_FILL=1.E-6_EB
396396
INTEGER :: DIAGNOSTICS_INTERVAL !< Number of time steps between diagnostic outputs
397+
REAL(EB) :: UNFREEZE_TIME !< Time to unfreeze a simulation
397398

398399
! Combustion parameters
399400

Source/main.f90

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,11 @@ PROGRAM FDS
532532

533533
INITIALIZATION_PHASE = .FALSE.
534534

535+
IF (UNFREEZE_TIME > 0._EB) THEN
536+
FREEZE_VELOCITY=.TRUE.
537+
SOLID_PHASE_ONLY=.TRUE.
538+
ENDIF
539+
535540
IF (MY_RANK==0 .AND. VERBOSE) CALL VERBOSE_PRINTOUT('Starting the time-stepping')
536541

537542
!***********************************************************************************************************************************
@@ -569,6 +574,11 @@ PROGRAM FDS
569574
LO10 = INT(LOG10(REAL(MAX(1,ABS(ICYC)),EB)))
570575
IF (MOD(ICYC,10**LO10)==0 .OR. MOD(ICYC,DIAGNOSTICS_INTERVAL)==0 .OR. (T+DT)>=T_END) DIAGNOSTICS = .TRUE.
571576

577+
IF ((UNFREEZE_TIME > 0._EB).AND.(T>UNFREEZE_TIME)) THEN
578+
FREEZE_VELOCITY=.FALSE.
579+
SOLID_PHASE_ONLY=.FALSE.
580+
ENDIF
581+
572582
!================================================================================================================================
573583
! Start of Predictor part of time step
574584
!================================================================================================================================

Source/read.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1746,7 +1746,7 @@ SUBROUTINE READ_MISC
17461746
RND_SEED,SIMULATION_MODE,SMOKE_ALBEDO,SOLID_PHASE_ONLY,SOOT_DENSITY,SOOT_OXIDATION,&
17471747
TAU_DEFAULT,TENSOR_DIFFUSIVITY,TERRAIN_IMAGE,TEST_NEW_CHAR_MODEL,TEXTURE_ORIGIN,&
17481748
THERMOPHORETIC_DEPOSITION,THERMOPHORETIC_SETTLING,THICKEN_OBSTRUCTIONS,&
1749-
TMPA,TURBULENCE_MODEL,TURBULENT_DEPOSITION,UVW_FILE,&
1749+
TMPA,TURBULENCE_MODEL,TURBULENT_DEPOSITION,UVW_FILE,UNFREEZE_TIME,&
17501750
VERBOSE,VISIBILITY_FACTOR,VN_MAX,VN_MIN,Y_CO2_INFTY,Y_O2_INFTY,&
17511751
RADIATION,STRATIFICATION,SUPPRESSION
17521752

@@ -1800,6 +1800,7 @@ SUBROUTINE READ_MISC
18001800
MAX_LEAK_PATHS = 200
18011801
FLUX_LIMITER = 'null'
18021802
LES_FILTER_TYPE = 'null'
1803+
UNFREEZE_TIME = -1._EB
18031804

18041805
! Initial read of the MISC line
18051806

0 commit comments

Comments
 (0)