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
Get the PDE form
Get the forward solution of the PDE
Get the lhs form
Get the observation operator
Get the parameter of the PDE
Get the reuse_assembled flag
Get the rhs form