stores the information of a 2D TNSE system matrix More...
#include <SystemTNSE2D.h>
Public Member Functions | |
TSystemTNSE2D (TFESpace2D *velocity_fespace, TFESpace2D *presssure_fespace, TFEVectFunct2D *Velocity, TFEFunction2D *p, double *sol, double *rhs, int disctype, int nsetype, int solver#ifdef __PRIVATE__, TFESpace2D *Projection_space, TFESpace2D *Stress_FeSpace, TFESpace2D *Deformation_FeSpace#endif) | |
source file for TSystemTNSE2D More... | |
~TSystemTNSE2D () | |
void | Init (CoeffFct2D *lincoeffs, BoundCondFunct2D *BoundCond, BoundValueFunct2D *U1BoundValue, BoundValueFunct2D *U2BoundValue, TAuxParam2D *aux, TAuxParam2D *nseaux_error) |
void | Assemble (double *sol, double *rhs) |
void | AssembleRhs (double *sol, double *rhs) |
void | AssembleSystMat (double scale, double *oldrhs, double *rhs, double *sol) |
void | AssembleSystMatNonLinear () |
void | RestoreMassMat () |
void | AssembleANonLinear (double *sol, double *rhs) |
void | Solve (double *sol) |
void | GetTNSEResidual (double *sol, double *res) |
void | MeasureTNSEErrors (DoubleFunct2D *ExactU1, DoubleFunct2D *ExactU2, DoubleFunct2D *ExactP, double *AllErrors) |
Public Member Functions inherited from TSystemNSE2D | |
TSystemNSE2D (TFESpace2D *velocity_fespace, TFESpace2D *presssure_fespace, TFEVectFunct2D *Velocity, TFEFunction2D *p, double *sol, double *rhs, int disctype, int nsetype, int solver#ifdef __PRIVATE__, TFESpace2D *Projection_space, TFESpace2D *Stress_FeSpace, TFESpace2D *Deformation_FeSpace#endif) | |
source file for TSystemNSE2D More... | |
~TSystemNSE2D () | |
void | Init (CoeffFct2D *lincoeffs, BoundCondFunct2D *BoundCond, BoundValueFunct2D *U1BoundValue, BoundValueFunct2D *U2BoundValue, TAuxParam2D *aux, TAuxParam2D *auxerror) |
void | Assemble (double *sol, double *rhs) |
void | AssembleNonLinear (double *sol, double *rhs) |
void | AssembleRhsOnly (double *sol, double *rhs) |
void | GetResidual (double *sol, double *rhs, double *res) |
void | Solve (double *sol, double *rhs) |
void | MeasureErrors (DoubleFunct2D *ExactU1, DoubleFunct2D *ExactU2, DoubleFunct2D *ExactP, double *u_error, double *p_error) |
stores the information of a 2D TNSE system matrix
class for 2D TNSE system matrix
TSystemTNSE2D::TSystemTNSE2D | ( | TFESpace2D * | velocity_fespace, |
TFESpace2D * | presssure_fespace, | ||
TFEVectFunct2D * | Velocity, | ||
TFEFunction2D * | p, | ||
double * | sol, | ||
double * | rhs, | ||
int | disctype, | ||
int | nsetype, | ||
int solver#ifdef | __PRIVATE__, | ||
TFESpace2D * | Projection_space, | ||
TFESpace2D * | Stress_FeSpace, | ||
TFESpace2D *Deformation_FeSpace# | endif | ||
) |
TSystemTNSE2D::~TSystemTNSE2D | ( | ) |
destrcutor
void TSystemTNSE2D::Assemble | ( | double * | sol, |
double * | rhs | ||
) |
return the stiffness matrix assemble the M, A and rhs
void TSystemTNSE2D::AssembleANonLinear | ( | double * | sol, |
double * | rhs | ||
) |
assemble the nonlinear part of the NSE system
void TSystemTNSE2D::AssembleRhs | ( | double * | sol, |
double * | rhs | ||
) |
assemble only the rhs of NSE system
void TSystemTNSE2D::AssembleSystMat | ( | double | scale, |
double * | oldrhs, | ||
double * | rhs, | ||
double * | sol | ||
) |
scale B matices and assemble rhs based on the scheme
void TSystemTNSE2D::AssembleSystMatNonLinear | ( | ) |
scale B matices and assemble rhs based on the scheme
void TSystemTNSE2D::GetTNSEResidual | ( | double * | sol, |
double * | res | ||
) |
get the resudual of the NSE system
void TSystemTNSE2D::Init | ( | CoeffFct2D * | lincoeffs, |
BoundCondFunct2D * | BoundCond, | ||
BoundValueFunct2D * | U1BoundValue, | ||
BoundValueFunct2D * | U2BoundValue, | ||
TAuxParam2D * | aux, | ||
TAuxParam2D * | nseaux_error | ||
) |
methods Initilize the discrete forms and the matrices
void TSystemTNSE2D::MeasureTNSEErrors | ( | DoubleFunct2D * | ExactU1, |
DoubleFunct2D * | ExactU2, | ||
DoubleFunct2D * | ExactP, | ||
double * | AllErrors | ||
) |
measure the error in the NSE
void TSystemTNSE2D::RestoreMassMat | ( | ) |
restoring the mass matrix
void TSystemTNSE2D::Solve | ( | double * | sol | ) |
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 |
NSE_Rhsaux is used to for assembling rhs only
|
protected |
needed for error calculation in time
|
protected |
M - mass/system mat for TNSE velocity component
|
protected |
Systmat assemble indicator