This class takes a sympy expression as the manufactured solution \(u(t;x,y)\) to the nonstationary heat equation
completed with Dirichlet boundary conditions and an initial condition
and a FEM function space where the equation is approximated on.
| Parameters: |
|
|---|
csr matrix representing the weak discrete \(-\nabla \cdot (\kappa \nabla )\) operator
csr matrix for the mass
get the current error
| Parameters: |
|
|---|---|
| Returns: | the approximation error |
Compute the current source term
containing the actual source of the system plus the contribution from the Dirichlet boundary data
| Parameters: | tcur – current time |
|---|---|
| Returns: | Vector of the current rhs |
Get the current solution projected onto the FEM space
| Parameters: | tcur – current time |
|---|---|
| Returns: | vector of the current projected solution |
expand uvec to the dolfin function representation
| Parameters: | uvec – vector of a current solution approximation |
|---|---|
| Returns: | FEniCS function containing the values of uvec and the Dirichlet data |
Example for the test of convergence of Implicit Euler
An example time varying 2D manufactured solution
| Parameters: | omega – Parameter for the frequency. Defaults to 1 |
|---|---|
| Returns: | A symbolic expression of a scalar function depending on the space variables x (internal name is x[0]) and y (internal name is x[1]) and the time variable t |