ParMooN
 All Classes Functions Variables Friends Pages
Public Member Functions | Protected Attributes | List of all members
TSystemTCD2D Class Reference

stores the information of a timedependent part of a 2D scalar system matrix More...

#include <SystemTCD2D.h>

Inheritance diagram for TSystemTCD2D:
Inheritance graph
[legend]
Collaboration diagram for TSystemTCD2D:
Collaboration graph
[legend]

Public Member Functions

 TSystemTCD2D (TFESpace2D *fespace, int disctype, int solver)
 source file for TSystemTCD2D More...
 
 ~TSystemTCD2D ()
 
void Init (CoeffFct2D *BilinearCoeffs, BoundCondFunct2D *BoundCond, BoundValueFunct2D *BoundValue)
 
TSquareMatrix2DGetAMatrix ()
 
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

TSquareMatrix2DsqmatrixM
 
double * B
 
double * defect
 
double gamma
 
TSquareMatrix2DsqmatrixK
 
TSquareMatrix2DsqmatrixS
 
TDiscreteForm2DDiscreteFormMRhs
 
bool SystMatAssembled
 
TCDSystemTimeDGTimeDG
 
- Protected Attributes inherited from TSystemCD2D
TFESpace2DFeSpace
 
int N_DOF
 
int N_Active
 
int Disctype
 
int SOLVER
 
int N_Matrices
 
TSquareStructure2Dsqstructure
 
TSquareMatrix2DsqmatrixA
 
TSquareMatrix2DSQMATRICES [3]
 
TSquareMatrix ** sqmatrices
 
BoundCondFunct2D * BoundaryConditions [1]
 
BoundValueFunct2D * BoundaryValues [1]
 
TDiscreteForm2DDiscreteFormARhs
 

Detailed Description

stores the information of a timedependent part of a 2D scalar system matrix

class for 2D scalar system matrix


Author
Sashikumaar Ganesan
Date
08.08.14

Constructor & Destructor Documentation

TSystemTCD2D::TSystemTCD2D ( TFESpace2D fespace,
int  disctype,
int  solver 
)

source file for TSystemTCD2D

constructor


Author
Sashikumaar Ganesan
Date
08.08.14

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

Member Function Documentation

void TSystemTCD2D::AssembleARhs ( TAuxParam2D aux,
double *  sol,
double *  rhs 
)

assemble the stifness mat and rhs

Here is the call graph for this function:

void TSystemTCD2D::AssembleMRhs ( TAuxParam2D aux,
double *  sol,
double *  rhs 
)

assemble the Mass mat and rhs

Here is the call graph for this function:

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

Here is the call graph for this function:

TSquareMatrix2D* TSystemTCD2D::GetAMatrix ( )
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

Here is the call graph for this function:

void TSystemTCD2D::Solve ( double *  sol,
double *  rhs 
)

solve the system matrix

Here is the call graph for this function:

Member Data Documentation

double* TSystemTCD2D::B
protected

working rhs, used in AssembleSystMat()

double* TSystemTCD2D::defect
protected

to store defect

TDiscreteForm2D* TSystemTCD2D::DiscreteFormMRhs
protected

Discrete form of the M and rhs matrics

double TSystemTCD2D::gamma
protected

factor that multplied with Mat A in working rhs

TSquareMatrix2D* TSystemTCD2D::sqmatrixK
protected

Stiffness part of the SUPG matrix

TSquareMatrix2D* TSystemTCD2D::sqmatrixM
protected

M mass matrix

TSquareMatrix2D* TSystemTCD2D::sqmatrixS
protected

time-consistent part of the SUPG matrix

bool TSystemTCD2D::SystMatAssembled
protected

Systmat assemble indicator

TCDSystemTimeDG* TSystemTCD2D::TimeDG
protected

dG time steppings


The documentation for this class was generated from the following files: