The common code for the linearizers of non-linear systems of equations. More...
#include <fvbaselinearizer.hh>
Public Member Functions | |
void | init (Simulator &simulator) |
Initialize the linearizer. More... | |
void | eraseMatrix () |
Causes the Jacobian matrix to be recreated from scratch before the next iteration. More... | |
void | linearize () |
Linearize the global non-linear system of equations. More... | |
const Matrix & | matrix () const |
Return constant reference to global Jacobian matrix. | |
Matrix & | matrix () |
const GlobalEqVector & | residual () const |
Return constant reference to global residual vector. | |
GlobalEqVector & | residual () |
const std::map< unsigned, Constraints > & | constraintsMap () const |
Returns the map of constraint degrees of freedom. More... | |
Static Public Member Functions | |
static void | registerParameters () |
Register all run-time parameters for the Jacobian linearizer. | |
The common code for the linearizers of non-linear systems of equations.
This class assumes that these system of equations to be linearized are stemming from models that use an finite volume scheme for spatial discretization and an Euler scheme for time discretization.
|
inline |
Returns the map of constraint degrees of freedom.
(This object is only non-empty if the EnableConstraints property is true.)
|
inline |
Causes the Jacobian matrix to be recreated from scratch before the next iteration.
This method is usally called if the sparsity pattern has changed for some reason. (e.g. by modifications of the grid or changes of the auxiliary equations.)
|
inline |
Initialize the linearizer.
At this point we can assume that all objects in the simulator have been allocated. We cannot assume that they are fully initialized, though.
|
inline |
Linearize the global non-linear system of equations.
That means that the global Jacobian of the residual is assembled and the residual is evaluated for the current solution.
The current state of affairs (esp. the previous and the current solutions) is represented by the model object.