class GridFunction : public Vector

Class for grid function - Vector with asociated FE space.

Inheritance:


Public Methods

GridFunction(FiniteElementSpace * f)
Creates grid function associated with *f.
void GetNodalValues(int i, Array<double> &nval, int vdim = 1) const
Returns the values in the vertices of i'th element for dimension vdim.
void GetNodalValues(Vector &nval, int vdim = 1) const
Return the values as a vector on mesh vertices for dimension vdim.
inline void PrintMesh(ostream & out = cout) const
Prints the mesh associated with the given FE space.
inline void PrintFES(ostream & out = cout) const
Prints the FE space on which grid function lives.
inline void PrintData(ostream & out = cout)
Prints the entries of the Vector in dofs of FE space.
inline void Print(ostream & outMesh = cout, ostream & outFES = cout, ostream & out = cout)
Prints the mesh, FE space and entries of the Vector in dofs.
GridFunction& operator= (double value)
Redefine '=' for GridFunction = constant.
~GridFunction()
Destroys grid function.

Inherited from Vector:

Public Methods

void Load(istream ** in, int np, int * dim)
void Load(istream &in, int Size)
void Load(istream &in)
void SetSize(int s)
inline int Size() const
double& Elem(int i)
const double& Elem(int i) const
inline double& operator) (int i)
inline const double& operator) (int i) const
double operator*(const Vector & v) const
Vector& operator=(const Vector &v)
Vector& operator=(double value)
Vector& Add(double a, Vector &Va)
void Neg()
friend void subtract(const Vector &v1, const Vector &v2, Vector &v)
friend void add(const Vector &v1, const Vector &v2, Vector &v)
friend void add(const Vector &v1, double alpha, const Vector &v2, Vector &v)
void AddElementVector(const Array<int> & dofs, const Vector & elemvect)
void Print_HYPRE(ostream &out)

Documentation

Class for grid function - Vector with asociated FE space.
GridFunction(FiniteElementSpace * f)
Creates grid function associated with *f.

void GetNodalValues(int i, Array<double> &nval, int vdim = 1) const
Returns the values in the vertices of i'th element for dimension vdim.

void GetNodalValues(Vector &nval, int vdim = 1) const
Return the values as a vector on mesh vertices for dimension vdim.

inline void PrintMesh(ostream & out = cout) const
Prints the mesh associated with the given FE space.

inline void PrintFES(ostream & out = cout) const
Prints the FE space on which grid function lives.

inline void PrintData(ostream & out = cout)
Prints the entries of the Vector in dofs of FE space.

inline void Print(ostream & outMesh = cout, ostream & outFES = cout, ostream & out = cout)
Prints the mesh, FE space and entries of the Vector in dofs.

GridFunction& operator= (double value)
Redefine '=' for GridFunction = constant.

~GridFunction()
Destroys grid function.


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de