You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Manuals/FDS_User_Guide/FDS_User_Guide.tex
+20-17Lines changed: 20 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -5506,37 +5506,40 @@ \subsection{Chemical Time Integration}
5506
5506
5507
5507
If you have multiple reactions with widely ranging time-scales, you might want to specify \linebreak[4]\ct{CHECK_REALIZABILITY} to be \ct{T} on the \ct{COMB} line, which forces the program to issue a warning if the species mass fractions do not remain between 0 and 1 during the integration scheme.
5508
5508
5509
-
For solving the chemistry with a detailed chemical mechanism (see Section \ref{info:detailedChemMech}), the recommended ODE solver is CVODE from Sundials \cite{cvodeDoc:2024}. The following line instructs FDS to solve the chemistry with the CVODE solver using an absolute error tolerance of $10^{-10}$ and a relative error tolerance of $10^{-8}$:
5509
+
To solve chemistry using a detailed chemical mechanism (see Section \ref{info:detailedChemMech}), it is recommended to use the CVODE ODE solver from Sundials \cite{cvodeDoc:2024}. The following input line configures FDS to use CVODE for chemistry calculations:
5510
5510
\begin{lstlisting}
5511
-
&COMB
5512
-
FINITE_RATE_MIN_TEMP=300,
5513
-
ODE_SOLVER='CVODE',
5514
-
ZZ_MIN_GLOBAL=1E-15,
5515
-
ODE_MIN_ATOL=1E-12,
5516
-
ODE_REL_ERROR=1E-6,
5517
-
EQUIV_RATIO_CHECK=T,
5518
-
MIN_EQUIV_RATIO=0.0,
5519
-
MAX_EQUIV_RATIO=20.0,
5520
-
DO_CHEM_LOAD_BALANCE=T /
5511
+
&COMB ODE_SOLVER='CVODE'/
5521
5512
\end{lstlisting}
5522
-
However, the relative and absolute tolerances for ODEs can be specified at the species level using the \ct{ODE_REL_ERROR} and \ct{ODE_ABS_ERROR} parameters. Currently, CVODE only supports absolute tolerance at the species level. The parameters \ct{EQUIV_RATIO_CHECK}, \ct{MIN_EQUIV_RATIO}, and \ct{MAX_EQUIV_RATIO} are optional. The purpose of \ct{EQUIV_RATIO_CHECK} (when true) is to save computational time by calling the chemistry solver only for cells where the equivalence ratio is within the specified \ct{MIN_EQUIV_RATIO} and \ct{MAX_EQUIV_RATIO} limits. Additionally, setting the parameter \ct{DO_CHEM_LOAD_BALANCE} to true can significantly accelerate chemistry calculations by evenly distributing the chemistry workload across all MPI processes. The minimum concentration limit of a species is determined by multiplying \ct{ODE_REL_ERROR} to \ct{ZZ_MIN_GLOBAL}. Concentrations below this threshold are considered to be zero.
5523
-
5524
-
For CVODE, the default parameter values are as follows:
5513
+
Internally, CVODE assigns default values to several key parameters, as listed below:
5525
5514
\begin{itemize}
5515
+
\setlength{\itemsep}{-4pt}
5526
5516
\item \ct{FINITE_RATE_MIN_TEMP}=300~$^\circ$C
5527
-
\item \ct{ZZ_MIN_GLOBAL}=1E-10
5528
5517
\item \ct{ODE_MIN_ATOL}=1E-10
5529
5518
\item \ct{ODE_REL_ERROR}=1E-6
5519
+
\item \ct{ZZ_MIN_GLOBAL}=1E-10
5530
5520
\item \ct{EQUIV_RATIO_CHECK}=F
5531
5521
\item \ct{MIN_EQUIV_RATIO}=0.0
5532
5522
\item \ct{MAX_EQUIV_RATIO}=20.0
5533
5523
\item \ct{DO_CHEM_LOAD_BALANCE}=T
5534
5524
\end{itemize}
5535
-
To use these default values, simply add the following lines to the FDS input file:
5525
+
The parameter \ct{FINITE_RATE_MIN_TEMP} defines the minimum temperature (in ~$^\circ$C) above which chemistry calculation will be performed. CVODE allows specification of relative and absolute tolerances at the species-level using the \ct{ODE_REL_ERROR} and \ct{ODE_ABS_ERROR} parameters in the \ct{SPEC} input line. These tolerances can also be set globally in the \ct{COMB} input line, with species-level settings taking precedence. Currently, CVODE only allows absolute tolerance at the species level. The minimum concentration of a species is determined as the product of \ct{ODE_REL_ERROR} and \ct{ZZ_MIN_GLOBAL}. Concentrations below this threshold are treated as zero.
5526
+
5527
+
Additional optional parameters include \ct{EQUIV_RATIO_CHECK}, \ct{MIN_EQUIV_RATIO}, and \ct{MAX_EQUIV_RATIO}. When \ct{EQUIV_RATIO_CHECK} is enabled (set to true), the chemistry calculation is performed only for those cells for which equivalence ratio is within the specified \ct{MIN_EQUIV_RATIO} and \ct{MAX_EQUIV_RATIO} limits, reducing computational time. Enabling \ct{DO_CHEM_LOAD_BALANCE} significantly accelerates chemistry calculations by distributing the computational load evenly across all MPI processes.
5528
+
User can modify the default values of any or all of these parameters as needed using the following line in the FDS input file:
0 commit comments