SteadyStateLinearFEniCSPDE#

class cuqipy_fenics.pde.SteadyStateLinearFEniCSPDE(PDE_form, mesh, solution_function_space, parameter_function_space, dirichlet_bcs, adjoint_dirichlet_bcs=None, observation_operator=None, reuse_assembled=False, linalg_solve=None, linalg_solve_kwargs=None)#

Class representation of steady state linear PDEs defined in FEniCS. It accepts the same arguments as the base class cuqipy_fenics.pde.FEniCSPDE.

__init__(PDE_form, mesh, solution_function_space, parameter_function_space, dirichlet_bcs, adjoint_dirichlet_bcs=None, observation_operator=None, reuse_assembled=False, linalg_solve=None, linalg_solve_kwargs=None)#

Methods

__init__(PDE_form, mesh, ...[, ...])

assemble([parameter])

Assemble the PDE weak form

gradient_wrt_parameter(direction, wrt, **kwargs)

Compute the gradient of the PDE with respect to the parameter

observe(PDE_solution_fun)

Apply observation operator on the PDE solution

solve()

Solve the PDE

with_updated_rhs(rhs_form)

A method to create a shallow copy of the PDE model with updated rhs form.

Attributes

PDE_form

Get the PDE form

forward_solution

Get the forward solution of the PDE

grid_obs

grid_sol

grids_equal

lhs_form

Get the lhs form

observation_operator

Get the observation operator

parameter

Get the parameter of the PDE

reuse_assembled

Get the reuse_assembled flag

rhs_form

Get the rhs form