Public Member Functions |
Static Public Member Functions |
Protected Member Functions |
Static Protected Member Functions |
Protected Attributes |
List of all members
Ewoms::FvBaseAdLocalLinearizer< TypeTag > Class Template Reference Calculates the local residual and its Jacobian for a single element of the grid. More...
Detailed Descriptiontemplate<class TypeTag>
|
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inlinestatic |
Returns the unweighted epsilon value used to calculate the local derivatives.
References GET_PROP_VALUE.
Referenced by Ewoms::FvBaseAdLocalLinearizer< TypeTag >::numericEpsilon().
|
inline |
Initialize the local Jacobian object.
At this point we can assume that everything has been allocated, although some objects may not yet be completely initialized.
simulator | The simulator object of the simulation. |
References Ewoms::FvBaseAdLocalLinearizer< TypeTag >::internalElemContext_, and Ewoms::FvBaseAdLocalLinearizer< TypeTag >::simulatorPtr_.
|
inline |
Returns the local Jacobian matrix of the residual of a sub-control volume.
domainScvIdx | The local index of the sub control volume which contains the independents |
rangeScvIdx | The local index of the sub control volume which contains the local residual |
References Ewoms::FvBaseAdLocalLinearizer< TypeTag >::jacobian_.
|
inline |
Returns the local Jacobian matrix the storage term of a sub-control volume.
dofIdx | The local index of sub control volume |
References Ewoms::FvBaseAdLocalLinearizer< TypeTag >::jacobianStorage_.
|
inline |
Compute an element's local Jacobian matrix and evaluate its residual.
The local Jacobian for a given context is defined as the derivatives of the residuals of all degrees of freedom featured by the stencil with regard to the primary variables of the stencil's "primary" degrees of freedom. Adding the local Jacobians for all elements in the grid will give the global Jacobian 'grad f(x)'.
element | The grid element for which the local residual and its local Jacobian should be calculated. |
References Ewoms::FvBaseAdLocalLinearizer< TypeTag >::internalElemContext_.
|
inline |
Compute an element's local Jacobian matrix and evaluate its residual.
The local Jacobian for a given context is defined as the derivatives of the residuals of all degrees of freedom featured by the stencil with regard to the primary variables of the stencil's "primary" degrees of freedom. Adding the local Jacobians for all elements in the grid will give the global Jacobian 'grad f(x)'.
After calling this method the ElementContext is in an undefined state, so do not use it anymore!
elemCtx | The element execution context for which the local residual and its local Jacobian should be calculated. |
References Ewoms::FvBaseAdLocalLinearizer< TypeTag >::localResidual_, Ewoms::FvBaseAdLocalLinearizer< TypeTag >::model_(), Ewoms::FvBaseAdLocalLinearizer< TypeTag >::reset_(), Ewoms::FvBaseAdLocalLinearizer< TypeTag >::resize_(), and Ewoms::FvBaseAdLocalLinearizer< TypeTag >::updateLocalLinearization_().
|
inline |
Return reference to the local residual.
References Ewoms::FvBaseAdLocalLinearizer< TypeTag >::localResidual_.
|
inline |
Return reference to the local residual.
References Ewoms::FvBaseAdLocalLinearizer< TypeTag >::localResidual_.
|
inlineprotected |
|
inlinestaticprotected |
Returns the numeric difference method which is applied.
References EWOMS_GET_PARAM.
|
inline |
Returns the epsilon value which is added and removed from the current solution.
elemCtx | The element execution context for which the local residual and its gradient should be calculated. |
dofIdx | The local index of the element's vertex for which the local derivative ought to be calculated. |
pvIdx | The index of the primary variable which gets varied |
References Ewoms::FvBaseAdLocalLinearizer< TypeTag >::baseEpsilon().
|
inlineprotected |
|
inlinestatic |
Register all run-time parameters for the local jacobian.
|
inlineprotected |
Reset the all relevant internal attributes to 0.
References Ewoms::FvBaseAdLocalLinearizer< TypeTag >::jacobian_, Ewoms::FvBaseAdLocalLinearizer< TypeTag >::jacobianStorage_, Ewoms::FvBaseAdLocalLinearizer< TypeTag >::residual_, and Ewoms::FvBaseAdLocalLinearizer< TypeTag >::residualStorage_.
Referenced by Ewoms::FvBaseAdLocalLinearizer< TypeTag >::linearize().
|
inline |
Returns the local residual of a sub-control volume.
dofIdx | The local index of the sub control volume |
References Ewoms::FvBaseAdLocalLinearizer< TypeTag >::residual_.
|
inline |
Returns the local storage term of a sub-control volume.
dofIdx | The local index of the sub control volume |
References Ewoms::FvBaseAdLocalLinearizer< TypeTag >::residualStorage_.
|
inlineprotected |
Resize all internal attributes to the size of the element.
References Ewoms::FvBaseAdLocalLinearizer< TypeTag >::jacobian_, Ewoms::FvBaseAdLocalLinearizer< TypeTag >::jacobianStorage_, Ewoms::FvBaseAdLocalLinearizer< TypeTag >::residual_, and Ewoms::FvBaseAdLocalLinearizer< TypeTag >::residualStorage_.
Referenced by Ewoms::FvBaseAdLocalLinearizer< TypeTag >::linearize().
|
inlineprotected |
|
inlineprotected |
Updates the current local Jacobian matrix with the partial derivatives of all equations in regard to the primary variable 'pvIdx' at vertex 'dofIdx' .
References Ewoms::FvBaseAdLocalLinearizer< TypeTag >::jacobian_, Ewoms::FvBaseAdLocalLinearizer< TypeTag >::jacobianStorage_, Ewoms::FvBaseAdLocalLinearizer< TypeTag >::localResidual_, Ewoms::FvBaseAdLocalLinearizer< TypeTag >::residual_, and Ewoms::FvBaseAdLocalLinearizer< TypeTag >::residualStorage_.
Referenced by Ewoms::FvBaseAdLocalLinearizer< TypeTag >::linearize().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |