NeoPZ
Functions
checkconv.h File Reference

Contains the implementation of the CheckConvergence function. More...

#include <stdio.h>
#include <stdlib.h>
#include <fstream>
#include <pzfmatrix.h>
Include dependency graph for checkconv.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class TConv >
void CheckConvergence (TConv &obj, TPZFMatrix< STATE > &state, TPZFMatrix< STATE > &range, TPZVec< REAL > &coefs)
 Implements a general procedure to check whether the class TConv implements a consistente tangent matrix for the object obj. More...
 
template<class TConv >
void TPZCheckConvergence (TConv &obj, TPZFMatrix< STATE > &state, TPZFMatrix< STATE > &range, bool direction_range=false)
 

Detailed Description

Contains the implementation of the CheckConvergence function.

Definition in file checkconv.h.

Function Documentation

◆ CheckConvergence()

template<class TConv >
void CheckConvergence ( TConv &  obj,
TPZFMatrix< STATE > &  state,
TPZFMatrix< STATE > &  range,
TPZVec< REAL > &  coefs 
)

Implements a general procedure to check whether the class TConv implements a consistente tangent matrix for the object obj.

The following methods need to be implemented for TConv

  • LoadState : to load the state variables in local storage
  • ComputeTangent : which will compute a tangent matrix
  • Residual : which will compute a residual vector

Definition at line 23 of file checkconv.h.

References TPZMatrix< TVar >::Cols(), fabs, log, log10, TPZMatrix< TVar >::Multiply(), TPZVec< T >::NElements(), Norm(), TPZFMatrix< TVar >::Redim(), TPZMatrix< TVar >::Residual(), and TPZMatrix< TVar >::Rows().

Referenced by TPZElastoPlasticAnalysis::CheckConv(), TPZLadeKimThermoForceA::CheckConv(), TPZLadeNelsonElasticResponse::CheckConv(), TPZYCLadeKim::CheckConv(), TPZLadeKim::CheckConv(), TPZYCSandlerDimaggio::CheckConv(), TPZSwelling::ContributeBC(), TPZNonLinearAnalysis::IterativeProcess(), TPZElastoPlasticAnalysis::IterativeProcess(), and TPZTransientAnalysis< TRANSIENTCLASS >::RunTransient().

◆ TPZCheckConvergence()

template<class TConv >
void TPZCheckConvergence ( TConv &  obj,
TPZFMatrix< STATE > &  state,
TPZFMatrix< STATE > &  range,
bool  direction_range = false 
)

The following methods need to be implemented for TConv

  • LoadStateCheckConv : to load the state variables in local storage
  • TangentCheckConv : which will compute a tangent matrix
  • ResidualCheckConv : which will compute a residual vector
  • NumCasesCheckConv() : number of test cases implemented

Definition at line 128 of file checkconv.h.

References TPZMatrix< TVar >::Cols(), fabs, log, log10, TPZMatrix< TVar >::Multiply(), Norm(), TPZFMatrix< TVar >::Redim(), and TPZMatrix< TVar >::Rows().