api.equation#

Functions#

l2_boundary_projection(equation)

Create an auxiliary equation (weak formulation) that solves for the boundary trace of the solution by performing an L2 projection of inhomogeneous essential boundary conditions.

Classes#

Inheritance diagram of psydac.api.equation

DiscreteEquation(expr, *args, **kwargs)

LinearSystem(lhs, rhs)

Details#

l2_boundary_projection(equation)[source]#

Create an auxiliary equation (weak formulation) that solves for the boundary trace of the solution by performing an L2 projection of inhomogeneous essential boundary conditions.

Return None if no inhomogeneous essential BCs are imposed on the solution.

Parameters:
equationsympde.expr.Equation

Weak formulation of PDE of interest, which may have essential BCs.

Returns:
eqn_bcsympde.expr.Equation

Weak formulation that performs L2 projection of inhomogeneous essential boundary conditions onto the trial space. None if not needed.

class DiscreteEquation(expr, *args, **kwargs)[source]#

Bases: BasicDiscrete

property expr#
property lhs#
property rhs#
property domain#
property trial_space#
property test_space#
property bc#
property linear_system#
property boundary_equation#
set_solver(solver, **kwargs)[source]#
get_solver()[source]#
assemble(**kwargs)[source]#
solve(**kwargs)[source]#