ParMooN
 All Classes Functions Variables Friends Pages
FEFunction1D.h
1 // =======================================================================
2 // @(#)FEFunction1D.h
3 //
4 // Class: TFEFunction1D
5 // Purpose: a function from a finite element space in 1D
6 //
7 // Author: Sashikumaar Ganesan (17.05.2007)
8 //
9 // History: start of implementation 17.05.2007
10 //
11 // =======================================================================
12 
13 #ifndef __FEFUNCTION1D__
14 #define __FEFUNCTION1D__
15 
16 #include <AllClasses.h>
17 #include <FESpace1D.h>
18 #include <Constants.h>
19 
22 {
23  protected:
25  char *Name;
26 
28  char *Description;
29 
32 
34  double *Values;
35 
37  int Length;
38 
39  public:
41  TFEFunction1D(TFESpace1D *fespace1D, char *name, char *description,
42  double *values, int length);
43 
46 
48  char *GetName()
49  { return Name; }
50 
53  { return Description; }
54 
57  { return FESpace1D; }
58 
60  int GetLength()
61  { return Length; }
62 
64  double *GetValues()
65  { return Values; }
66 
67 
69  void Interpolate(DoubleFunct2D *Exact);
70 
72  void Interpolate(int ConstCoord, double x, DoubleFunct2D *Exact);
73 
75  void Interpolate(double x, double y, DoubleFunct3D *Exact);
76 
77  void InterpolateNodalPts(int N_Coord, double *Coords, DoubleFunctND *Exact, double *val);
78 
80  void GridToData();
81 
82 };
83 
84 #endif
TFEFunction1D(TFESpace1D *fespace1D, char *name, char *description, double *values, int length)
Definition: FEFunction1D.C:24
~TFEFunction1D()
Definition: FEFunction1D.C:414
double * Values
Definition: FEFunction1D.h:34
Definition: FESpace1D.h:48
TFESpace1D * GetFESpace1D()
Definition: FEFunction1D.h:56
char * Description
Definition: FEFunction1D.h:28
int Length
Definition: FEFunction1D.h:37
char * GetDescription()
Definition: FEFunction1D.h:52
char * Name
Definition: FEFunction1D.h:25
TFESpace1D * FESpace1D
Definition: FEFunction1D.h:31
void InterpolateNodalPts(int N_Coord, double *Coords, DoubleFunctND *Exact, double *val)
Definition: FEFunction1D.C:260
char * GetName()
Definition: FEFunction1D.h:48
void Interpolate(DoubleFunct2D *Exact)
Definition: FEFunction1D.C:39
double * GetValues()
Definition: FEFunction1D.h:64
int GetLength()
Definition: FEFunction1D.h:60
Definition: FEFunction1D.h:21
void GridToData()
Definition: FEFunction1D.C:350