Theses general rules should be seen as basic golden rules helping the whole documentation to be consistent. They are strongly recommended:
*i.e*
usepackage{csmacros}`).csbiblio.bib
file located in the doc/style
directory.csdoc.csl
class (for long documents as a report) csshortdoc.cls
class (for short documents as an article).This section does not pretend to describe how to write a document, but is to present the macros defined in
csmacro.sty
and give some typographic pieces of advice.
The \CS
macro in the csdoc.sty
package is used to allow a short syntax and typeset the code_saturne name in a proper and consistant manner.
The available macros for mathematical symbols are available through the csmacros.sty
package.
![]() | preview | comment |
---|---|---|
$\divs$ | ![]() | |
$\divv$ | ![]() | |
$\divt$ | ![]() | |
$\grad$ | ![]() | |
$\ggrad$ | ![]() | |
$\gradv$ | ![]() | |
$\gradt$ | ![]() | |
$\gradtt$ | ![]() | |
$\mat{M}$ | ![]() | |
$\matt{M}$ | ![]() | |
$\rot$ | ![]() | |
$\vect{V}$ | ![]() | |
$\tens{T}$ | ![]() | |
$\transpose{M}$ | ![]() | |
$\symmetric{M}$ | ![]() | |
$\trace$ | ![]() | |
$\deviator{M}$ | ![]() | |
$\norm{M}$ | ![]() | |
$\rans{M}$ | ![]() | |
$\fluct{M}$ | ![]() | |
$\fluctt{M}$ | ![]() | |
$\favre{M}$ | ![]() | |
$\ints{M}{N}$ | ![]() | |
$\intss{M}{N}$ | ![]() | |
$\intt{M}{N}$ | ![]() | |
\degresC | ![]() | |
$\Max$ | ![]() | |
$\Min$ | ![]() | |
$\dd$ | ![]() | total derivative |
Many macros are dedicated to discretized quantity notations used throughout code_saturne. The following table lists the main ones, but may not be complete, so checking the actual contents of csmacros.sty
is always recommened.
![]() | preview | comment |
---|---|---|
$\Facei{\celli}$ | ![]() | set of internal faces |
$\Faceb{\cellj}$ | ![]() | set of boundary faces |
$\Face{\celli}$ | ![]() | set of faces |
$\face$ | ![]() | face |
$\fij$ | ![]() | internal face |
$\fib$ | ![]() | boundary face |
$\iface$ | ![]() | oriented face |
$\ij$ | ![]() | oriented internal face |
$\ib$ | ![]() | oriented boundary face |
$\celli$ | ![]() | name of the current cell |
$\cellj$ | ![]() | name of the adjacent cell |
$\ipf$ | ![]() | orthogonal center index of the current cell |
$\jpf$ | ![]() | orthogonal center index of the adjacent cell |
$\centi$ | ![]() | center of the current cell |
$\centj$ | ![]() | center of the adjacent cell |
$\centip$ | ![]() | orthogonal center of the current cell |
$\centjp$ | ![]() | orthogonal center of the adjacent cell |
$\cento$ | ![]() | intersection between the cell centers and the face |
$\centf$ | ![]() | center of the face |
Here are some useful tricks:
\begin{itemize} \item \end{itemize}
environment.\textcolor{blueedf}{text}
, its darker version \textcolor{bluededf}{text}
, or the orange \textcolor{orangeedf}{text}
and its the dark version \textcolor{orangededf}{text}
.\label{eq:label}
, \label{sec:label}
, \label{ap:label}
, \label{fig:label}
and \label{tab:label}
prefixes.\emph{}
mode for acronyms (e.g., EDF).\emph{}
mode for Latin words (e.g., i.e., a priori, etc.).\left(
instead of (
and \right)
instead of )
in math mode.\newline
or \\
except in a tabular environment or an array.\figurename~
and \tablename~
to write \begin{remark} \end{remark}
and example \begin{example} \end{example}
environments defined in csdoc.cls
: