Problems for OpenTidalFarm
opentidalfarm.problems.steady_sw.
SteadySWProblem
(parameters)[source]¶Create a steady-state shallow water problem:
where
Parameters: | parameters – A SteadySWProblemParameters
object containing the parameters of the problem. |
---|
default_parameters
()[source]¶Returns a SteadySWProblemParameters
with default
parameters.
opentidalfarm.problems.steady_sw.
SteadySWProblemParameters
[source]¶A parameters set for a SteadySWProblem
.
Domain parameters:
Variables: | domain – The computational domain, see Domains. |
---|
Physical parameters:
Variables: |
|
---|
Equation parameters:
Variables: |
|
---|
Boundary conditions:
Variables: |
|
---|
Discretization settings:
Variables: | finite_element – The finite-element pair to use. Default:
opentidalfarm.finite_elements.p2p1 |
---|
opentidalfarm.problems.multi_steady_sw.
MultiSteadySWProblem
(parameters)[source]¶Create a shallow water problem consisting of a sequence of (independent) steady-state shallow water problems. More specifically, it solves for each time-level \(n\):
\[\begin{split}-\nabla\cdot\nu\nabla u^n+u^n\cdot\nabla u^n+g\nabla \eta^n + \frac{c_b + c_t}{H^n} \| u^n\| u^n &= f_u^n, \\ \nabla \cdot \left( H^n u^n \right) &= 0,\end{split}\]where
- \(u\) is the velocity,
- \(\eta\) is the free-surface displacement,
- \(H=\eta + h\) is the total water depth where \(h\) is the water depth at rest,
- \(f_u\) is the velocity forcing term,
- \(c_b\) is the (quadratic) natural bottom friction coefficient,
- \(c_t\) is the (quadratic) friction coefficient due to the turbine farm,
- \(\nu\) is the viscosity coefficient,
- \(g\) is the gravitational constant,
parameter parameters: A MultiSteadySWProblemParameters
object containing the parameters of the problem.
opentidalfarm.problems.multi_steady_sw.
MultiSteadySWProblemParameters
[source]¶A set of parameters for a MultiSteadySWProblem
.
The parameters are as described in
opentidalfarm.problems.steady_sw.SteadySWProblemParameters
.
In addition following parameters are available:
Temporal parameters:
Variables: |
|
---|
opentidalfarm.problems.sw.
SWProblem
(parameters)[source]¶Create a transient shallow water problem:
where
Parameters: | parameters – A SWProblemParameters
object containing the parameters of the problem. |
---|
opentidalfarm.problems.sw.
SWProblemParameters
[source]¶A set of parameters for a SWProblem
.
The parameters are as described in
opentidalfarm.problems.steady_sw.SteadySWProblemParameters
.
In addition following parameters are available:
Time parameters:
Variables: |
|
---|
Functional time integration paramters (FIXME: Move to reduced functional):
Variables: | functional_final_time_only – Boolean indicating if the functional should be integrated over time or evaluated at the end of time only. Default: False. |
---|