Integral Form#
- felupe.IntegralForm#
alias of
IntegralFormMixed
- felupe.Form(v, u=None, grad_v=None, grad_u=None, dx=None, args=(), kwargs={}, parallel=False)[source]#
A linear or bilinear form object as function decorator on a weak-form with methods for integration and assembly of vectors or sparse matrices.
Linear Form:
\[L(v) = \int_\Omega f \cdot v \ dx\]Bilinear Form:
\[a(v, u) = \int_\Omega v \cdot f \cdot u \ dx\]- Parameters
v (Field or FieldMixed) – An object with interpolation or gradients of a field. May be updated during integration / assembly.
u (Field or FieldMixed) – An object with interpolation or gradients of a field. May be updated during integration / assembly.
grad_v (bool, optional (default is None)) – Flag to use the gradient of
v
.grad_u (bool, optional (default is None)) – Flag to use the gradient of
u
.dx (ndarray or None, optional (default is None)) – Array with (numerical) differential volumes.
args (tuple, optional (default is ())) – Tuple with initial optional weakform-arguments. May be updated during integration / assembly.
kwargs (dict, optional (default is {})) – Dictionary with initial optional weakform-keyword-arguments. May be updated during integration / assembly.
- Returns
A form object based on LinearForm, LinearFormMixed, BilinearForm or BilinearFormMixed with methods for integration and assembly.
- Return type
BaseForm