stores the information of a timedependent part of a 2D scalar system matrix More...
#include <SystemTCD2D.h>
Public Member Functions | |
TSystemTCD2D (TFESpace2D *fespace, int disctype, int solver) | |
source file for TSystemTCD2D More... | |
~TSystemTCD2D () | |
void | Init (CoeffFct2D *BilinearCoeffs, BoundCondFunct2D *BoundCond, BoundValueFunct2D *BoundValue) |
TSquareMatrix2D * | GetAMatrix () |
void | AssembleMRhs (TAuxParam2D *aux, double *sol, double *rhs) |
void | AssembleARhs (TAuxParam2D *aux, double *sol, double *rhs) |
void | AssembleSystMat (double *oldrhs, double *oldsol, double *rhs, double *sol) |
void | RestoreMassMat () |
void | Solve (double *sol, double *rhs) |
double | GetResidual (double *sol) |
Public Member Functions inherited from TSystemCD2D | |
TSystemCD2D (TFESpace2D *fespace, int disctype, int solver) | |
source file for TSystemCD2D More... | |
~TSystemCD2D () | |
void | Init (CoeffFct2D *BilinearCoeffs, BoundCondFunct2D *BoundCond, BoundValueFunct2D *BoundValue) |
void | Assemble (TAuxParam2D *aux, double *sol, double *rhs) |
void | Solve (double *sol, double *rhs) |
Protected Attributes | |
TSquareMatrix2D * | sqmatrixM |
double * | B |
double * | defect |
double | gamma |
TSquareMatrix2D * | sqmatrixK |
TSquareMatrix2D * | sqmatrixS |
TDiscreteForm2D * | DiscreteFormMRhs |
bool | SystMatAssembled |
TCDSystemTimeDG * | TimeDG |
Protected Attributes inherited from TSystemCD2D | |
TFESpace2D * | FeSpace |
int | N_DOF |
int | N_Active |
int | Disctype |
int | SOLVER |
int | N_Matrices |
TSquareStructure2D * | sqstructure |
TSquareMatrix2D * | sqmatrixA |
TSquareMatrix2D * | SQMATRICES [3] |
TSquareMatrix ** | sqmatrices |
BoundCondFunct2D * | BoundaryConditions [1] |
BoundValueFunct2D * | BoundaryValues [1] |
TDiscreteForm2D * | DiscreteFormARhs |
stores the information of a timedependent part of a 2D scalar system matrix
class for 2D scalar system matrix
TSystemTCD2D::TSystemTCD2D | ( | TFESpace2D * | fespace, |
int | disctype, | ||
int | solver | ||
) |
source file for TSystemTCD2D
constructor
need it for solver
M mass matrix
working rhs, used in AssembleSystMat()
time-consistent part of the SUPG matrix
dG time steppings
TSystemTCD2D::~TSystemTCD2D | ( | ) |
destrcutor
void TSystemTCD2D::AssembleARhs | ( | TAuxParam2D * | aux, |
double * | sol, | ||
double * | rhs | ||
) |
assemble the stifness mat and rhs
void TSystemTCD2D::AssembleMRhs | ( | TAuxParam2D * | aux, |
double * | sol, | ||
double * | rhs | ||
) |
assemble the Mass mat and rhs
void TSystemTCD2D::AssembleSystMat | ( | double * | oldrhs, |
double * | oldsol, | ||
double * | rhs, | ||
double * | sol | ||
) |
M = M + (tau*TDatabase::TimeDB->THETA1)*A B = (tau*TDatabase::TimeDB->THETA1)*rhs +(tau*TDatabase::TimeDB->THETA2)*oldrhs + [ M - (tau*TDatabase::TimeDB->THETA2)A]*oldsol
dG time steppings
|
inline |
return the stiffness matric
double TSystemTCD2D::GetResidual | ( | double * | sol | ) |
return the residual of the system for the given sol
void TSystemTCD2D::Init | ( | CoeffFct2D * | BilinearCoeffs, |
BoundCondFunct2D * | BoundCond, | ||
BoundValueFunct2D * | BoundValue | ||
) |
methods
dG time steppings
void TSystemTCD2D::RestoreMassMat | ( | ) |
restoring the mass matrix
void TSystemTCD2D::Solve | ( | double * | sol, |
double * | rhs | ||
) |
solve the system matrix
|
protected |
working rhs, used in AssembleSystMat()
|
protected |
to store defect
|
protected |
Discrete form of the M and rhs matrics
|
protected |
factor that multplied with Mat A in working rhs
|
protected |
Stiffness part of the SUPG matrix
|
protected |
M mass matrix
|
protected |
time-consistent part of the SUPG matrix
|
protected |
Systmat assemble indicator
|
protected |
dG time steppings