splinepy.helpme.integrate.FieldIntegrator#
- class splinepy.helpme.integrate.FieldIntegrator(geometry, solution_field=None, orders=None)[source]#
Bases:
objectClass for the numerical evaluation of a PDE on a single-patch geometry.
On initialization it sets up solution field, its mapper, precomputes the transformation and calculate the number of DoFs.
- Parameters:
geometry (spline) – The geometry
solution_field (None or spline) – Solution field. If not given, quadrature and supports will be calculated using the geometry
orders (None or list<int>) – Quadrature order in each dimension. If not given, default quadrature will be used
Methods
FieldIntegrator.L2_projection(function)Perform an L2-projection of a function
Applies Dirichlet boundary conditions via L2-projection.
FieldIntegrator.apply_homogeneous_dirichlet_boundary_conditions([...])Assembles homogeneous Dirichlet boundary conditions
FieldIntegrator.assemble_matrix(function[, ...])Assemble the system matrix for a given function.
Assemble the system matrix and rhs vector for a given function.
FieldIntegrator.assemble_vector(function[, ...])Assemble the rhs for a given function.
Check if system matrix and rhs are already assembled
FieldIntegrator.compute_error(function[, norm])Compute error to some given function(s) w.r.t a norm
Get indices of boundary dofs.
Computes the quadrature points, jacobians and their determinants of all elements in spline
FieldIntegrator.reset([orders])Sets up the transformation and resets the lhs and rhs.
Solve linear system for system matrix and rhs
Attributes
Get the quadrature points' supports.