This class implements the vorticity-velocity problem in two dimensions with periodic boundary conditions
in \([0, 1]^2\)
\[\frac{\partial w}{\partial t} = \nu \Delta w\]
for some parameter \(\nu\). In this class the problem is implemented that the spatial part is solved
using FEniCS[1]_. Hence, the problem is reformulated to the weak formulation
This problem class treats the PDE in an IMEX way, with diffusion being the implicit part and everything else the explicit one.
The mass matrix needs inversion for this type of problem class, see the derived one for the mass-matrix version without inversion.
Parameters:
c_nvars (List of int tuple, optional) – Spatial resolution, i.e., numbers of degrees of freedom in space, e.g. c_nvars=[(128,128)].
family (str, optional) – Indicates the family of elements used to create the function space
for the trail and test functions. The default is 'CG', which are the class
of Continuous Galerkin, a synonym for the Lagrange family of elements, see [2]_.
order (int, optional) – Defines the order of the elements in the function space.
refinements (int, optional) – Denotes the refinement of the mesh. refinements=2 refines the mesh by factor \(2\).
nu (float, optional) – Diffusion coefficient \(\nu\).
This class implements the vorticity-velocity problem in two dimensions with periodic boundary conditions
in \([0, 1]^2\)
\[\frac{\partial w}{\partial t} = \nu \Delta w\]
for some parameter \(\nu\). In this class the problem is implemented that the spatial part is solved
using FEniCS[1]_. Hence, the problem is reformulated to the weak formulation
This problem class treats the PDE in an IMEX way, with diffusion being the implicit part and everything else the explicit one.
No mass matrix inversion is needed here, i.e. using this problem class requires the imex_1st_order_mass sweeper.
Parameters:
c_nvars (List of int tuple, optional) – Spatial resolution, i.e., numbers of degrees of freedom in space, e.g. c_nvars=[(128,128)].
family (str, optional) – Indicates the family of elements used to create the function space
for the trail and test functions. The default is 'CG', which are the class
of Continuous Galerkin, a synonym for the Lagrange family of elements, see [2]_.
order (int, optional) – Defines the order of the elements in the function space.
refinements (int, optional) – Denotes the refinement of the mesh. refinements=2 refines the mesh by factor \(2\).
nu (float, optional) – Diffusion coefficient \(\nu\).