SteadyStateLinearPDE#
- class cuqi.pde.SteadyStateLinearPDE(PDE_form, **kwargs)#
Linear steady state PDE.
- Parameters:
PDE_form (callable function) – Callable function with signature PDE_form(parameter) where parameter is the Bayesian parameter. The function returns a tuple with the discretized differential operator A and right-hand-side b. The types of A and b are determined by what the method
linalg_solve()
accepts as first and second parameters, respectively.kwargs – See
LinearPDE
for the remaining keyword arguments.
Example
See demo demos/demo24_fwd_poisson.py for an illustration on how to use SteadyStateLinearPDE with varying solver choices. And demos demos/demo25_fwd_poisson_2D.py and demos/demo26_fwd_poisson_mixedBC.py for examples with mixed (Dirichlet and Neumann) boundary conditions problems. demos/demo25_fwd_poisson_2D.py also illustrates how to observe on a specific boundary, for example.
- __init__(PDE_form, **kwargs)#
Methods
__init__
(PDE_form, **kwargs)assemble
(parameter)Assembles differential operator and rhs according to PDE_form
observe
(solution)solve
()Solve the PDE and returns the solution and an information variable info which is a tuple of all variables returned by the function linalg_solve after the solution.
Attributes