Public Member Functions |
Static Public Member Functions |
Protected Member Functions |
Protected Attributes |
List of all members
Opm::FvBaseAdLocalLinearizer< TypeTag > Class Template Reference Calculates the local residual and its Jacobian for a single element of the grid. More...
Detailed Descriptiontemplate<class TypeTag> class Opm::FvBaseAdLocalLinearizer< TypeTag > Calculates the local residual and its Jacobian for a single element of the grid. This class uses automatic differentiation to calculate the partial derivatives (the alternative is finite differences). Constructor & Destructor Documentation◆ FvBaseAdLocalLinearizer() [1/2]
template<class TypeTag >
◆ FvBaseAdLocalLinearizer() [2/2]
template<class TypeTag >
◆ ~FvBaseAdLocalLinearizer()
template<class TypeTag >
Member Function Documentation◆ asImp_() [1/2]
template<class TypeTag >
◆ asImp_() [2/2]
template<class TypeTag >
◆ init()
template<class TypeTag >
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.
References Opm::FvBaseAdLocalLinearizer< TypeTag >::internalElemContext_, and Opm::FvBaseAdLocalLinearizer< TypeTag >::simulatorPtr_. ◆ jacobian()
template<class TypeTag >
Returns the local Jacobian matrix of the residual of a sub-control volume.
References Opm::FvBaseAdLocalLinearizer< TypeTag >::jacobian_. ◆ linearize() [1/2]
template<class TypeTag >
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)'.
References Opm::FvBaseAdLocalLinearizer< TypeTag >::internalElemContext_, and Opm::FvBaseAdLocalLinearizer< TypeTag >::linearize(). Referenced by Opm::FvBaseAdLocalLinearizer< TypeTag >::linearize(). ◆ linearize() [2/2]
template<class TypeTag >
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!
References Opm::FvBaseAdLocalLinearizer< TypeTag >::localResidual_, Opm::FvBaseAdLocalLinearizer< TypeTag >::model_(), Opm::FvBaseAdLocalLinearizer< TypeTag >::resize_(), and Opm::FvBaseAdLocalLinearizer< TypeTag >::updateLocalLinearization_(). ◆ localResidual() [1/2]
template<class TypeTag >
Return reference to the local residual. References Opm::FvBaseAdLocalLinearizer< TypeTag >::localResidual_. ◆ localResidual() [2/2]
template<class TypeTag >
Return reference to the local residual. References Opm::FvBaseAdLocalLinearizer< TypeTag >::localResidual_. ◆ model_()
template<class TypeTag >
References Opm::FvBaseAdLocalLinearizer< TypeTag >::simulatorPtr_. Referenced by Opm::FvBaseAdLocalLinearizer< TypeTag >::linearize(). ◆ problem_()
template<class TypeTag >
◆ registerParameters()
template<class TypeTag >
Register all run-time parameters for the local jacobian. ◆ reset_()
template<class TypeTag >
Reset the all relevant internal attributes to 0. References Opm::FvBaseAdLocalLinearizer< TypeTag >::jacobian_, and Opm::FvBaseAdLocalLinearizer< TypeTag >::residual_. ◆ residual()
template<class TypeTag >
Returns the local residual of a sub-control volume.
References Opm::FvBaseAdLocalLinearizer< TypeTag >::residual_. ◆ resize_()
template<class TypeTag >
Resize all internal attributes to the size of the element. References Opm::FvBaseAdLocalLinearizer< TypeTag >::jacobian_, and Opm::FvBaseAdLocalLinearizer< TypeTag >::residual_. Referenced by Opm::FvBaseAdLocalLinearizer< TypeTag >::linearize(). ◆ simulator_()
template<class TypeTag >
◆ updateLocalLinearization_()
template<class TypeTag >
Updates the current local Jacobian matrix with the partial derivatives of all equations for the degree of freedom associated with 'focusDofIdx'. References Opm::FvBaseAdLocalLinearizer< TypeTag >::jacobian_, Opm::FvBaseAdLocalLinearizer< TypeTag >::localResidual_, and Opm::FvBaseAdLocalLinearizer< TypeTag >::residual_. Referenced by Opm::FvBaseAdLocalLinearizer< TypeTag >::linearize(). Member Data Documentation◆ internalElemContext_
template<class TypeTag >
◆ jacobian_
template<class TypeTag >
◆ localResidual_
template<class TypeTag >
◆ modelPtr_
template<class TypeTag >
◆ residual_
template<class TypeTag >
◆ simulatorPtr_
template<class TypeTag >
The documentation for this class was generated from the following file: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||