splinepy.helpme.integrate.FieldIntegrator#

class splinepy.helpme.integrate.FieldIntegrator(geometry, solution_field=None, orders=None)[source]#

Bases: object

Class 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

FieldIntegrator.apply_dirichlet_boundary_conditions(...)

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.

FieldIntegrator.assemble_matrix_and_vector(...)

Assemble the system matrix and rhs vector for a given function.

FieldIntegrator.assemble_vector(function[, ...])

Assemble the rhs for a given function.

FieldIntegrator.check_if_assembled()

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

FieldIntegrator.get_boundary_dofs([...])

Get indices of boundary dofs.

FieldIntegrator.precompute_transformation()

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.

FieldIntegrator.solve_linear_system()

Solve linear system for system matrix and rhs

Attributes

FieldIntegrator.supports

Get the quadrature points' supports.