Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
GOSI9esm
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Consortium Members
UKMO
GOSI
GOSI9esm
Commits
91cf1811
Commit
91cf1811
authored
3 years ago
by
Andrew Coward
Browse files
Options
Downloads
Patches
Plain Diff
Corrections to chap_DYN.tex and update link to gitlab forge
parent
12f10c5e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/latex/NEMO/subfiles/chap_DYN.tex
+59
-60
59 additions, 60 deletions
doc/latex/NEMO/subfiles/chap_DYN.tex
doc/latex/global/info_page.tex
+1
-1
1 addition, 1 deletion
doc/latex/global/info_page.tex
with
60 additions
and
61 deletions
doc/latex/NEMO/subfiles/chap_DYN.tex
+
59
−
60
View file @
91cf1811
...
...
@@ -677,8 +677,7 @@ It works well for moderately steep slopes but produces large velocities in the S
when the slopes are steep. It uses a constrained cubic spline to
reconstruct the vertical density profile within a water column.
This method maintains the monotonicity between the density nodes.
The pressure is calculated by analytical integration of the density profile. and
a pressure Jacobian method is used to solve the horizontal pressure gradient.
The pressure is calculated by analytical integration of the density profile.
For the force in the
$
i
$
-direction, it calculates the difference of the pressures on the
$
i
+
\tfrac
{
1
}{
2
}$
and
$
i
-
\tfrac
{
1
}{
2
}$
faces of the cell using pressures calculated at the same height.
In grid cells just above the bathymetry, this height is higher than the cells' centre.
...
...
@@ -709,64 +708,64 @@ The pressure gradient due to ocean load is computed using the expression \autore
\autoref
{
subsec:DYN
_
hpg
_
sco
}
.
%% =================================================================================================
\subsection
[Time-scheme (\forcode{ln_dynhpg_imp})]
{
Time-scheme (
\protect\np
{
ln
_
dynhpg
_
imp
}{
ln
\_
dynhpg
\_
imp
}
)
}
\label
{
subsec:DYN
_
hpg
_
imp
}
The default time differencing scheme used for the horizontal pressure gradient is a leapfrog scheme and
therefore the density used in all discrete expressions given above is the
\textit
{
now
}
density,
computed from the
\textit
{
now
}
temperature and salinity.
In some specific cases
(usually high resolution simulations over an ocean domain which includes weakly stratified regions)
the physical phenomenon that controls the time-step is internal gravity waves (IGWs).
A semi-implicit scheme for doubling the stability limit associated with IGWs can be used
\citep
{
brown.campana
_
MWR78, maltrud.smith.ea
_
JGR98
}
.
It involves the evaluation of the hydrostatic pressure gradient as
an average over the three time levels
$
t
-
\rdt
$
,
$
t
$
, and
$
t
+
\rdt
$
(
\ie\ \textit
{
before
}
,
\textit
{
now
}
and
\textit
{
after
}
time-steps),
rather than at the central time level
$
t
$
only, as in the standard leapfrog scheme.
$
\bullet
$
leapfrog scheme (
\np
[=.true.]
{
ln
_
dynhpg
_
imp
}{
ln
\_
dynhpg
\_
imp
}
):
\begin{equation}
\label
{
eq:DYN
_
hpg
_
lf
}
\frac
{
u
^{
t+
\rdt
}
-u
^{
t-
\rdt
}}{
2
\rdt
}
=
\;\cdots
\;
-
\frac
{
1
}{
\rho
_
o
\,
e
_{
1u
}
}
\delta
_{
i+1/2
}
\left
[ {p_h^t } \right]
\end{equation}
$
\bullet
$
semi-implicit scheme (
\np
[=.true.]
{
ln
_
dynhpg
_
imp
}{
ln
\_
dynhpg
\_
imp
}
):
\begin{equation}
\label
{
eq:DYN
_
hpg
_
imp
}
\frac
{
u
^{
t+
\rdt
}
-u
^{
t-
\rdt
}}{
2
\rdt
}
=
\;\cdots
\;
-
\frac
{
1
}{
4
\,\rho
_
o
\,
e
_{
1u
}
}
\delta
_{
i+1/2
}
\left
[ p_h^{t+\rdt} +2\,p_h^t +p_h^{t-\rdt} \right]
\end{equation}
The semi-implicit time scheme
\autoref
{
eq:DYN
_
hpg
_
imp
}
is made possible without
significant additional computation since the density can be updated to time level
$
t
+
\rdt
$
before
computing the horizontal hydrostatic pressure gradient.
It can be easily shown that the stability limit associated with the hydrostatic pressure gradient doubles using
\autoref
{
eq:DYN
_
hpg
_
imp
}
compared to that using the standard leapfrog scheme
\autoref
{
eq:DYN
_
hpg
_
lf
}
.
Note that
\autoref
{
eq:DYN
_
hpg
_
imp
}
is equivalent to applying a time filter to the pressure gradient to
eliminate high frequency IGWs.
Obviously, when using
\autoref
{
eq:DYN
_
hpg
_
imp
}
,
the doubling of the time-step is achievable only if no other factors control the time-step,
such as the stability limits associated with advection or diffusion.
In practice, the semi-implicit scheme is used when
\np
[=.true.]
{
ln
_
dynhpg
_
imp
}{
ln
\_
dynhpg
\_
imp
}
.
In this case, we choose to apply the time filter to temperature and salinity used in the equation of state,
instead of applying it to the hydrostatic pressure or to the density,
so that no additional storage array has to be defined.
The density used to compute the hydrostatic pressure gradient (whatever the formulation) is evaluated as follows:
\[
% \label{eq:DYN_rho_flt}
\rho
^
t
=
\rho
(
\widetilde
{
T
}
,
\widetilde
{
S
}
,z
_
t
)
\quad
\text
{
with
}
\quad
\widetilde
{
X
}
=
1
/
4
\left
(
X
^{
t
+
\rdt
}
+
2
\,
X
^
t
+
X
^{
t
-
\rdt
}
\right
)
\]
Note that in the semi-implicit case, it is necessary to save the filtered density,
an extra three-dimensional field, in the restart file to restart the model with exact reproducibility.
This option is controlled by
\np
{
nn
_
dynhpg
_
rst
}{
nn
\_
dynhpg
\_
rst
}
, a namelist parameter.
%%
\subsection[Time-scheme (\forcode{ln_dynhpg_imp})]{Time-scheme (\protect\np{ln_dynhpg_imp}{ln\_dynhpg\_imp})}
%%
\label{subsec:DYN_hpg_imp}
%%
%%
The default time differencing scheme used for the horizontal pressure gradient is a leapfrog scheme and
%%
therefore the density used in all discrete expressions given above is the \textit{now} density,
%%
computed from the \textit{now} temperature and salinity.
%%
In some specific cases
%%
(usually high resolution simulations over an ocean domain which includes weakly stratified regions)
%%
the physical phenomenon that controls the time-step is internal gravity waves (IGWs).
%%
A semi-implicit scheme for doubling the stability limit associated with IGWs can be used
%%
\citep{brown.campana_MWR78, maltrud.smith.ea_JGR98}.
%%
It involves the evaluation of the hydrostatic pressure gradient as
%%
an average over the three time levels $t-\rdt$, $t$, and $t+\rdt$
%%
(\ie\ \textit{before}, \textit{now} and \textit{after} time-steps),
%%
rather than at the central time level $t$ only, as in the standard leapfrog scheme.
%%
%%
$\bullet$ leapfrog scheme (\np[=.true.]{ln_dynhpg_imp}{ln\_dynhpg\_imp}):
%%
%%
\begin{equation}
%%
\label{eq:DYN_hpg_lf}
%%
\frac{u^{t+\rdt}-u^{t-\rdt}}{2\rdt} = \;\cdots \;
%%
-\frac{1}{\rho_o \,e_{1u} }\delta_{i+1/2} \left[ {p_h^t } \right]
%%
\end{equation}
%%
%%
$\bullet$ semi-implicit scheme (\np[=.true.]{ln_dynhpg_imp}{ln\_dynhpg\_imp}):
%%
\begin{equation}
%%
\label{eq:DYN_hpg_imp}
%%
\frac{u^{t+\rdt}-u^{t-\rdt}}{2\rdt} = \;\cdots \;
%%
-\frac{1}{4\,\rho_o \,e_{1u} } \delta_{i+1/2} \left[ p_h^{t+\rdt} +2\,p_h^t +p_h^{t-\rdt} \right]
%%
\end{equation}
%%
%%
The semi-implicit time scheme \autoref{eq:DYN_hpg_imp} is made possible without
%%
significant additional computation since the density can be updated to time level $t+\rdt$ before
%%
computing the horizontal hydrostatic pressure gradient.
%%
It can be easily shown that the stability limit associated with the hydrostatic pressure gradient doubles using
%%
\autoref{eq:DYN_hpg_imp} compared to that using the standard leapfrog scheme \autoref{eq:DYN_hpg_lf}.
%%
Note that \autoref{eq:DYN_hpg_imp} is equivalent to applying a time filter to the pressure gradient to
%%
eliminate high frequency IGWs.
%%
Obviously, when using \autoref{eq:DYN_hpg_imp},
%%
the doubling of the time-step is achievable only if no other factors control the time-step,
%%
such as the stability limits associated with advection or diffusion.
%%
%%
In practice, the semi-implicit scheme is used when \np[=.true.]{ln_dynhpg_imp}{ln\_dynhpg\_imp}.
%%
In this case, we choose to apply the time filter to temperature and salinity used in the equation of state,
%%
instead of applying it to the hydrostatic pressure or to the density,
%%
so that no additional storage array has to be defined.
%%
The density used to compute the hydrostatic pressure gradient (whatever the formulation) is evaluated as follows:
%%
\[
%%
% \label{eq:DYN_rho_flt}
%%
\rho^t = \rho( \widetilde{T},\widetilde {S},z_t)
%%
\quad \text{with} \quad
%%
\widetilde{X} = 1 / 4 \left( X^{t+\rdt} +2 \,X^t + X^{t-\rdt} \right)
%%
\]
%%
%%
Note that in the semi-implicit case, it is necessary to save the filtered density,
%%
an extra three-dimensional field, in the restart file to restart the model with exact reproducibility.
%%
This option is controlled by \np{nn_dynhpg_rst}{nn\_dynhpg\_rst}, a namelist parameter.
%%
%% =================================================================================================
\section
[Surface pressure gradient (\textit{dynspg.F90})]
{
Surface pressure gradient (
\protect\mdl
{
dynspg
}
)
}
\label
{
sec:DYN
_
spg
}
...
...
This diff is collapsed.
Click to expand it.
doc/latex/global/info_page.tex
+
1
−
1
View file @
91cf1811
...
...
@@ -31,7 +31,7 @@ Additional information can be found on:
\begin{itemize}
\item
\faWordpress\
the
\href
{
http://www.nemo-ocean.eu
}{
website
}
of the project detailing
several associated applications and an exhaustive users bibliography
\item
\faCodeFork\
the
\href
{
http://forge.
ipsl.jussieu.fr
/nemo
}{
development platform
}
of
\item
\faCodeFork\
the
\href
{
http
s
://forge.
nemo-ocean.eu
/nemo
}{
development platform
}
of
the model with the code repository for the shared reference and some main resources
(wiki, ticket system, forums,
\ldots
)
\\
\faGithub\
the
\href
{
http://github.com/NEMO-ocean/NEMO-examples
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment