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

#include <FEVectFunct2D.h>

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

Public Member Functions

 TFEVectFunct2D (TFESpace2D *fespace2D, char *name, char *description, double *values, int length, int n_components)
 
int GetN_Components ()
 
TFEFunction2DGetComponent (int i)
 
void GridToData ()
 
void DataToGrid ()
 
void GetDeformationTensorErrors (DoubleFunct2D *Exact, DoubleFunct2D *Exact1, int N_Derivatives, MultiIndex2D *NeededDerivatives, int N_Errors, ErrorMethod2D *ErrorMeth, CoeffFct2D *Coeff, TAuxParam2D *Aux, int n_fespaces, TFESpace2D **fespaces, double *errors)
 
double GetL2NormDivergence ()
 
void WriteSol (double t)
 
void ReadSol (char *BaseName)
 
void FindVectGradient (double x, double y, double *val1, double *val2)
 
void Interpolate (TFEVectFunct2D *OldVectFunct)
 
TFEVectFunct2Doperator*= (double alpha)
 multiply function with a scalar alpha. Only non-Dirichlet dofs are multiplied!
 
TFEVectFunct2Doperator+= (const TFEVectFunct2D &rhs)
 add one TFEVectFunct2D to another one. Both have to be defined on the same space. Only non-Dirichlet dofs are added!
 
TFEVectFunct2Doperator= (const TFEVectFunct2D &rhs)
 copy one TFEVectFunct2D to another one. Both have to be defined on the same space
 
- Public Member Functions inherited from TFEFunction2D
 TFEFunction2D (TFESpace2D *fespace2D, char *name, char *description, double *values, int length)
 
 ~TFEFunction2D ()
 
char * GetName ()
 
char * GetDescription ()
 
TFESpace2DGetFESpace2D ()
 
int GetLength ()
 
double * GetValues ()
 
void GetErrors (DoubleFunct2D *Exact, int N_Derivatives, MultiIndex2D *NeededDerivatives, int N_Errors, ErrorMethod2D *ErrorMeth, CoeffFct2D *Coeff, TAuxParam2D *Aux, int n_fespaces, TFESpace2D **fespaces, double *errors)
 
void GetErrorsForVectorValuedFunction (DoubleFunct2D *const *const Exact, ErrorMethod2D *const ErrorMeth, double *const errors)
 use this for vector valued basis functions (Raviart-Thomas (RT) or Brezzi-Douglas-Marini (BDM) elements)
 
void GetErrorsAdapt (DoubleFunct2D *Exact, int N_Derivatives, MultiIndex2D *NeededDerivatives, int N_Errors, ErrorMethod2D *ErrorMeth, CoeffFct2D *Coeff, TAuxParam2D *Aux, int n_fespaces, TFESpace2D **fespaces, double *errors)
 
void GetErrorsOPTPDE (DoubleFunct2D *Exact, int N_Derivatives, MultiIndex2D *NeededDerivatives, int N_Errors, ErrorMethod2D *ErrorMeth, CoeffFct2D *Coeff, TAuxParam2D *Aux, int n_fespaces, TFESpace2D **fespaces, int &kink, double upper, double lower, double *errors)
 
void GetErrorsAdaptOPTPDE (DoubleFunct2D *Exact, int N_Derivatives, MultiIndex2D *NeededDerivatives, int N_Errors, ErrorMethod2D *ErrorMeth, CoeffFct2D *Coeff, TAuxParam2D *Aux, int n_fespaces, TFESpace2D **fespaces, double radius, double upper, double lower, double *errors)
 
void FindGradient (double x, double y, double *values)
 
void FindGradientLocal (TBaseCell *cell, int cell_no, double x, double y, double *values)
 
void FindValueLocal (TBaseCell *cell, int cell_no, double x, double y, double *values)
 
void Interpolate (DoubleFunct2D *Exact)
 
void Interpolate (TFEFunction2D *F)
 
void project_into_L20 (double a=0.0)
 project this functions into the space L20 (having zero mean value) More...
 
void compute_integral_and_measure (double &integral, double &measure) const
 find the integral of this function and the measure of its domain More...
 
double compute_mean () const
 compute the mean value of this TFEFunction2D More...
 
void GetMeshCellParams (DoubleFunct2D *Exact, int N_Derivatives, MultiIndex2D *NeededDerivatives, int N_Errors, ErrorMethod2D *ErrorMeth, CoeffFct2D *Coeff, TAuxParam2D *Aux, int n_fespaces, TFESpace2D **fespaces, double *errors, double *parameters)
 
void InterpolateSuper (DoubleFunct2D *Exact)
 
void SetDirichletBC (BoundCondFunct2D *BoundaryCondition, BoundValueFunct2D *BoundaryValue)
 
void WriteSol ()
 
void ReadSol (char *BaseName)
 
void CorrectMass (double OldMass)
 
void GetMassAndMean (double *OutVal)
 
TFEFunction2Doperator*= (double alpha)
 
TFEFunction2Doperator+= (const TFEFunction2D &rhs)
 
TFEFunction2Doperator= (const TFEFunction2D &rhs)
 
void MinMax (double &min, double &max)
 
void PrintMinMax ()
 

Protected Attributes

int N_Components
 
- Protected Attributes inherited from TFEFunction2D
char * Name
 
char * Description
 
TFESpace2DFESpace2D
 
double * Values
 
int Length
 

Detailed Description

a function from a finite element space

Constructor & Destructor Documentation

TFEVectFunct2D::TFEVectFunct2D ( TFESpace2D fespace2D,
char *  name,
char *  description,
double *  values,
int  length,
int  n_components 
)

constructor with vector initialization

Member Function Documentation

void TFEVectFunct2D::DataToGrid ( )

use current data for grid replacement

Here is the call graph for this function:

Here is the caller graph for this function:

void TFEVectFunct2D::FindVectGradient ( double  x,
double  y,
double *  val1,
double *  val2 
)

determine the value of a vect function and its first derivatives at the given point

Here is the call graph for this function:

Here is the caller graph for this function:

TFEFunction2D* TFEVectFunct2D::GetComponent ( int  i)
inline

return i-th component as FEFunction2D

Here is the call graph for this function:

Here is the caller graph for this function:

void TFEVectFunct2D::GetDeformationTensorErrors ( DoubleFunct2D *  Exact,
DoubleFunct2D *  Exact1,
int  N_Derivatives,
MultiIndex2D *  NeededDerivatives,
int  N_Errors,
ErrorMethod2D *  ErrorMeth,
CoeffFct2D *  Coeff,
TAuxParam2D Aux,
int  n_fespaces,
TFESpace2D **  fespaces,
double *  errors 
)

calculate errors to given vector function

Here is the call graph for this function:

double TFEVectFunct2D::GetL2NormDivergence ( )

calculate L2-nrom of divergence

Here is the call graph for this function:

int TFEVectFunct2D::GetN_Components ( )
inline

return number of components

Here is the caller graph for this function:

void TFEVectFunct2D::GridToData ( )

convert current grid to vector-values FE function

Here is the call graph for this function:

Here is the caller graph for this function:

void TFEVectFunct2D::Interpolate ( TFEVectFunct2D OldVectFunct)

interpolate the old vect value to the new function

Here is the call graph for this function:

void TFEVectFunct2D::ReadSol ( char *  BaseName)

Read the solution from a given data file - written by Sashi

Here is the call graph for this function:

void TFEVectFunct2D::WriteSol ( double  t)

write the solution into a data file

write the solution into a data file - written by Sashi

Here is the call graph for this function:

Member Data Documentation

int TFEVectFunct2D::N_Components
protected

number of components


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