2012-10-15 09:57:17 -05:00
|
|
|
\section{Specifying Parameters}
|
2012-02-14 08:52:59 -06:00
|
|
|
\label{sec:inputFiles}
|
2012-02-13 04:11:31 -06:00
|
|
|
|
2012-10-15 09:57:17 -05:00
|
|
|
As already mentioned in the previous section, \eWoms allows to specify
|
|
|
|
a number of parameters at run time. A description of these parameters
|
|
|
|
can usually obtained by passing the \texttt{--help} parameter to the
|
|
|
|
executable. The values used for these parameters are printed to the
|
|
|
|
terminal during the start-up of the simulation, e.g. the if the \texttt{lens\_immiscible}
|
|
|
|
simulation is run with the parameters \texttt{--end-time=30e3 --foo-param=123}, there will an output similar to
|
2012-02-13 04:11:31 -06:00
|
|
|
\begin{lstlisting}[style=Bash]
|
2012-10-15 09:57:17 -05:00
|
|
|
###########
|
|
|
|
# Parameters specified at run-time
|
|
|
|
###########
|
|
|
|
EndTime="30e3"
|
|
|
|
###########
|
|
|
|
# Parameters with use compile-time fallback values
|
|
|
|
###########
|
|
|
|
AmgCoarsenTarget="5000"
|
|
|
|
...
|
|
|
|
VtkWriteSaturations="1"
|
|
|
|
VtkWriteTemperature="1"
|
|
|
|
VtkWriteViscosities="0"
|
|
|
|
###########
|
|
|
|
# Parameters unknown to the simulation
|
|
|
|
###########
|
|
|
|
FooParam="123"
|
2012-02-13 04:11:31 -06:00
|
|
|
\end{lstlisting}
|
|
|
|
|
2012-10-15 09:57:17 -05:00
|
|
|
This can be directly copy-and-pasted into a file
|
|
|
|
(e.g. \texttt{myparams.ini}) and loaded by passing the
|
|
|
|
\texttt{--parameter-file=myparams.ini} parameter to the simulation the
|
|
|
|
next time it is run.
|
2012-02-24 06:42:40 -06:00
|
|
|
|
2012-10-15 09:57:17 -05:00
|
|
|
When you do simulations, always look for the paramters which are
|
|
|
|
unknown to the simulation, as this is \emph{very} useful for spotting
|
|
|
|
typos.
|
2012-02-13 04:11:31 -06:00
|
|
|
|
2012-10-15 09:57:17 -05:00
|
|
|
%%% Local Variables:
|
|
|
|
%%% mode: latex
|
|
|
|
%%% TeX-master: "ewoms-handbook"
|
|
|
|
%%% End:
|