pymor.models.saddle_point¶
Module Contents¶
- class pymor.models.saddle_point.SaddlePointModel(A, B, f, g=None, C=None, u_product=None, p_product=None, error_estimator=None, visualizer=None, name=None)[source]¶
Bases:
pymor.models.basic.StationaryModelGeneric class for saddle-point models.
Defines a stationary saddle-point model using a 2x2
BlockOperator:\[\begin{split}\begin{bmatrix} A & B^\ast \\ B & C \end{bmatrix} \begin{bmatrix} u \\ p \end{bmatrix} = \begin{bmatrix} f \\ g \end{bmatrix},\end{split}\]Here,
Amaps theu-space into itself,Bmaps from theu-space to thep-space, andCis optional. IfCis provided, it maps thep-space into itself. Typical example: Stokes equation with velocity (u) and pressure (p).- Parameters:
A –
Operatoron theu-space withA.source == A.range.B – Coupling
Operatorbetween theuandp-space withB.source == A.source.C – Optional
Operatoron thep-space. One of: -OperatorwithC.source == C.range == B.range. -None, which yields aZeroOperator.f –
fof the right-hand side. Either: - LinearOperatoracting on theu-space with a scalar source space. -VectorArrayon theu-space.g –
gof the right-hand side. Either - LinearOperatoracting on thep-space with a scalar source space. -VectorArrayon thep-space. -None, thengis set to zero.u_product – Inner product
Operatoracting on theu-space.p_product – Inner product
Operatoracting on thep-space.error_estimator – See
StationaryModel.visualizer – See
StationaryModel.name – See
StationaryModel.