Skip to content

Commit

Permalink
Update document
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroaki Matsui authored and Hiroaki Matsui committed Aug 10, 2023
1 parent 371fef0 commit 09c2924
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 19 deletions.
52 changes: 35 additions & 17 deletions doc/tex_src/controls_CALYPSO.tex
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ \subsection{\tt phys\_values\_ctl}
\begin{tabular}{|c|c|c|}
\hline
\tt [Name] & field name & Description \\ \hline \hline
\tt velocity & Velocity & \bvec{u} \\
\tt velocity & Velocity & $\bvec{u}$ \\
\tt vorticity & Vorticity & $\bvec{\omega} = \nabla \times \bvec{u} $ \\
\tt pressure & Pressure & $P$ \\
\hline
Expand Down Expand Up @@ -510,6 +510,7 @@ \subsection{\tt boundary\_condition}
\begin{description}
\item{\tt insulator} Magnetic field is connected to potential field at boundary defined in [Group]. real value is required at \verb|[Value]|, but they value is not used in the program.
\item{\tt sph\_to\_center} If this condition is set, magnetic field in conductive inner core ($r < r_{i}$) is solved. This boundary condition can be used for {\tt ICB}, and grid is filled to center. The value at \verb|[Value]| does not used.
\item{\tt pseudo\_vacuum} Magetic field has only radial componenet at the specified boundary.
\end{description}
%

Expand Down Expand Up @@ -561,7 +562,7 @@ \subsection{\tt dimensionless\_ctl}
\paragraph{\tt array dimless\_ctl}
\label{href_t:dimless_ctl}
\verb|[Name] [Value]| \\
Dimensionless are listed in this array. The name is defined in \verb|[Name]| by text, and value is defined in \verb|[Value]| by real. These name of the dimensionless numbers are used to construct coefficients for each terms in governing equations. The following names can not be used because of reserved name in the program.
Dimensionless nummbers are defined in this array. The name is defined in \verb|[Name]| by text, and value is defined in \verb|[Value]| by real. These name of the dimensionless numbers are used to construct coefficients for each terms in governing equations. The following names can not be used because of reserved name in the program.
%
\begin{table}[htp]
\caption{List of reserved name of dimensionless numbers}
Expand Down Expand Up @@ -895,6 +896,11 @@ \subsection{\tt time\_loop\_ctl}
\end{description}
%

\paragraph{\tt coef\_implicit\_ctl}
\label{href_t:coef_implicit_ctl}
\verb|[COEF_INPLICIT]| \\
Coefficients for the implicit parts of the Crank-Nicolson scheme for all diffusion terms \verb|[COEF_INPLICIT]| is defined by real.

\paragraph{\tt coef\_imp\_v\_ctl}
\label{href_t:coef_imp_v_ctl}
\verb|[COEF_INP_U]| \\
Expand All @@ -920,25 +926,30 @@ \subsection{\tt time\_loop\_ctl}
\label{href_t:FFT_library_ctl}
\verb|[FFT_Name]| \\
FFT library name for Fourier transform is defined by text. The following libraries are available for \verb|[FFT_Name]|.
If this flag is not defined, program searches the fastest library in the initialization process.
If this flag is not defined, `FFTW` is chosen if FFTW library is included.
%
\begin{description}
\item{\tt FFTW} Use FFTW
\item{\tt FFTPACK} Use FFTPACK
% \item{\tt ISPACK} Use ISPACK
% \item{\tt Search_fastest} Compare elapsed time of FFTW and FFTPACK at the initialization and choose faster one.
\end{description}
%

\paragraph{\tt Legendre\_trans\_loop\_ctl}
\label{href_t:Legendre_trans_loop_ctl}
\verb|[FFT_Name]| \\
\verb|[Leg_Loop]| \\
Loop configuration for Legendre transform is defined by text. The following settings are available for \verb|[Leg_Loop]|.
If this flag is not defined, program searches the fastest approarch in the initialization process.
If this flag is not defined, \verb|Symmetric_matmul_big| is chosen as a default value because \verb|Symmetric_matmul_big| is the fastest approarch in many platforms. In the all spherical transform, equatorial syymetry is taken into account.
%
\begin{description}
\item{\tt Inner\_radial\_loop} Loop for the radial grids is set as the innermost loop
\item{\tt Outer\_radial\_loop} Loop for the radial grids is set as the outermost loop
\item{\tt Long\_loop} Long one-dimentional loop is used
\item{\tt Symmetric_original_loop} Set radial loop as the inner most loop for Legendre transform.
\item{\tt Symmetric_outer_radial_loop} Set radial loop as the outmost loop for Legendre transform.
\item{\tt Symmetric_matmul} Use Fortran90's intrinsic function for matrix-matrix products for each components.
\item{\tt Symmetric_matmul_big} Use Fortran90's intrinsic function for matrix-matrix products. The matrix operation is combined for all radial and fielc components.
\item{\tt Symmetric_BLAS_big} Use BLAS library for matrix-matrix products if BLAS library is linked. The matrix operation is combined for all radial and fielc components.
\item{\tt On_the_fly_Plm} Evaluate Legendre polynomial in every Legendre transforms.
\item{\tt Search_fastest} Compare elapsed time among above six approarch at the initialization and choose the fastest one.
\end{description}
%

Expand All @@ -951,25 +962,31 @@ \subsection{\tt sph\_monitor\_ctl}
\paragraph{\tt volume\_average\_prefix}
\label{href_t:volume_average_prefix}
\verb|[vol_ave_prefix]| \\
File prefix for volume average data \verb|[vol_ave_prefix]| is defined by Text. Program add {\tt .dat} or {\tt .dat.gz} extension after this file prefix. If this file prefix is not defined, volume average data are not generated.
File prefix for volume average data \verb|[vol_ave_prefix]| is defined by Text. Program add {\tt .dat} or {\tt .dat.gz} extension after this file prefix. If this file prefix is not defined, volume average data file is not generated.

\paragraph{\tt volume\_pwr\_spectr\_prefix}
\label{href_t:volume_pwr_spectr_prefix}
\verb|[vol_pwr_prefix]| \\
File prefix for mean square spectrum data averaged over the fluid shell \verb|[vol_pwr_prefix]| is defined by Text.

Spectrum as a function of degree {l} is written in \verb|[vol_pwr_prefix])_l.dat|, spectrum as a function of order {m} is written in \verb|[vol_pwr_prefix]_m.dat|, and spectrum as a function of $(l-m)$ is written in \verb|[vol_pwr_prefix]_lm.dat|. This prefix is also used for the file name of the volume mean square data as \verb|[vol_pwr_prefix]_s.dat|.
Spectrum as a function of degree $l$ is written in \verb|[vol_pwr_prefix]_l.dat|, spectrum as a function of order $m$ is written in \verb|[vol_pwr_prefix]_m.dat|, and spectrum as a function of $(l-m)$ is written in \verb|[vol_pwr_prefix]_lm.dat|. This prefix is also used for the file name of the volume mean square data as \verb|[vol_pwr_prefix]_s.dat|.
If this file prefix is not defined, volume spectrum data are not generated and volume mean square data is written as \verb|sph_pwr_volume_s.dat|.

\paragraph{\tt volume\_pwr\_spectr\_format}
\label{href_t:volume_pwr_spectr_format}
\verb|[file_format]| \\
File format for mean square spectrum data averaged over the fluid shell. If \verb|[file_format]| is \verb|gzip|, volume average, mean square and spectrum data are compressed by zlib. If the mean square data file exist, this setting is ignored and append data in the existing file.
File format for mean square spectrum data averaged over the fluid shell. The following formats are avaiable for \verb|[file_format]|. The default value is \verb|ASCII|. If the mean square data file exist, this setting is ignored and append data to the existing file.
%
\begin{description}
\item{\tt ASCII} Text data.
\item{\tt gzip} Text data is compressed by the gzip format.
\end{description}
%

\paragraph{\tt nusselt\_number\_prefix}
\label{href_t:nusselt_number_prefix}
\verb|[nusselt_number_prefix]| \\
File prefix for Nusselt number data at ICB and CMB \verb|[nusselt_number_prefix]| is defined by Text. Program add {\tt .dat} or {\tt .dat.gz} extension after this file prefix. If this file prefix is not defined, Nusselt number data are not generated. \\
File prefix for Nusselt number data at ICB and CMB \verb|[nusselt_number_prefix]| is defined by Text. Program add {\tt .dat} or {\tt .dat.gz} extension after this file prefix. If this file prefix is not defined, Nusselt number data file is not generated. \\
{\bf CAUTION: Nusselt number is not evaluated if heat source exsists.}

\paragraph{\tt nusselt\_number\_format}
Expand Down Expand Up @@ -1234,7 +1251,7 @@ \subsubsection{\tt surface\_define}
\hline
\verb|[METHOD]| & Surface type \\ \hline
\verb|equation| & Quadrature surface \\
% & $a x^2 + b y^2 + c z^2 + d y x + e z x + f x y + g x + h y + j z + k = 0$ \\
% & $a x^2 + b y^2 + c z^2 + d y x + e z x + f x y + g x + h y + i z + j = 0$ \\
\verb|plane| & Plane surface \\
%& $a \left(x-x_{0} \right) + b \left(y-y_{0} \right) + c \left(z-z_{0} \right) = 0$ \\
\verb|sphere| & Sphere \\
Expand All @@ -1253,9 +1270,9 @@ \subsubsection{\tt surface\_define}
\verb|[TERM] [COEFFICIENT]| \\
This array defines coefficients for a quadrature surface described by
\begin{eqnarray*}
a x^2 + b y^2 + c z^2 + d y z + e z x + f x y + g x + h y + j z + k &=& 0.
a x^2 + b y^2 + c z^2 + d y z + e z x + f x y + g x + h y + i z + j &=& 0.
\end{eqnarray*}
Each coefficient $a$ to $k$ are defined by the name of the term \verb|[TERM]| and real value \verb|[COEFFICIENT]| as shown in Table \ref{table:psf_coefs}.
Each coefficient $a$ to $k$ are defined by the name of the term \verb|[TERM]| and real value \verb|[COEFFICIENT]| as shown in Table \ref{table:psf_coefs}. Undefined terms are set to be 0.
%
\begin{table}[htp]
\caption{List of coefficient labels for quadrature surface}
Expand All @@ -1266,7 +1283,7 @@ \subsubsection{\tt surface\_define}
\verb|x2| & $a$ & \verb|y2| & $b$ & \verb|z2| & $c$ \\
\verb|yz| & $d$ & \verb|zx| & $e$ & \verb|xy| & $f$ \\
\verb|x | & $g$ & \verb|y| & $h$ & \verb|z| & $i$ \\
\verb|const| & $h$ & & & & \\ \hline
\verb|const| & $j$ & & & & \\ \hline
\end{tabular}
\end{center}
\label{table:psf_coefs}
Expand Down Expand Up @@ -1444,7 +1461,8 @@ \subsubsection{\tt field\_on\_isosurf}
%
\paragraph{\tt result\_value}
\label{href_t:result_value}
Isosurface value is defined as real value \verb|VALUE|.
Value in output data `[VALUE]` is defined as real value.


%
\paragraph{\tt output\_field}
Expand Down
3 changes: 2 additions & 1 deletion doc/tex_src/programs_CALYPSO.tex
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,8 @@ \subsection{Control file}
\hyperref[href_t:time_loop_ctl]{\tt time\_loop\_ctl}
\begin{itemize} \label{href_i:time_loop_ctl}
\item \hyperref[href_t:scheme_ctl]{\tt scheme\_ctl [EVOLUTION\_SCHEME]}
\item \hyperref[href_t:coef_imp_v_ctl]{\tt coef\_imp\_v\_ctl [COEF\_INP\_U]}
\item \hyperref[href_t:coef_implicit_ctl]{\tt coef\_implicit\_ctl [COEF\_INP\_U]}
\item \hyperref[href_t:coef_imp_v_ctl]{\tt coef\_imp\_v\_ctl [COEF_INPLICIT]}
\item \hyperref[href_t:coef_imp_t_ctl]{\tt coef\_imp\_t\_ctl [COEF\_INP\_T]}
\item \hyperref[href_t:coef_imp_b_ctl]{\tt coef\_imp\_b\_ctl [COEF\_INP\_B]}
\item \hyperref[href_t:coef_imp_c_ctl]{\tt coef\_imp\_c\_ctl [COEF\_INP\_C]}
Expand Down
2 changes: 1 addition & 1 deletion tests/Dynamobench_case2_cont/control_MHD
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,6 @@ begin MHD_control
end visual_control
!
begin dynamo vizs control
file zonal mean section ctl control_psf_zm
file zonal_mean_section_ctl control_psf_zm
end dynamo vizs control
end MHD_control

0 comments on commit 09c2924

Please sign in to comment.