|
|
GalarSolver2d (DomainNet2d* )
| GalarSolver2d |
construct the solution class by giving at a minimum the domain on which to solve the equation
~GalarSolver2d ()
| ~GalarSolver2d |
[virtual]
VEC* solution ()
| solution |
[pure virtual]
solve the problem and return a pointer to the solution. beware : when the problem is deallocated, also the memory where the solution resides is freed
SPMAT* assembleStiffness ()
| assembleStiffness |
construct the global stiffness matrix, by adding the correct local stiffness matrices If done before, init global stiffness first !
VEC* assembleForce ()
| assembleForce |
construct the global force vector, by adding the correct local force vectorterms per node If done before, init global force first !
double stiffnessMatrixIJ (int globalI, int globalJ)
| stiffnessMatrixIJ |
return the present value of the sparse matrix for node I (row) and J (column)
double forceVectorJ (int globalJ )
| forceVectorJ |
return the present value of the force vector
void initStiffness ()
| initStiffness |
init the Stiffness quickly, necessary before you do a second assemble
void initForce ()
| initForce |
init the Force quickly, necessary before you do a second assemble
DomainNet2d* net2d ()
| net2d |
return a pointer to the net on wich we solve a problem
void printSolFile (const char *filename)
| printSolFile |
print solution (unknowns) to a certain file, given by its name, eg /home/me/k2dgrflow/data.u
void printStiffness (const char *filename)
| printStiffness |
print stiffnessmatrix A from A x = f to a certain file, given by its name, eg /home/me/k2dgrflow/data.a
void printForce (const char *filename)
| printForce |
print forcevecor f from A x = f to a certain file, given by its name, eg /home/me/k2dgrflow/data.f
VEC * readVEC (FILE *fp, VEC *vec)
| readVEC |
[static]
a static method to easely read in vectors from files
DomainNet2d * net | net |
[protected]
SPMAT * stiffness | stiffness |
[protected]
VEC * force | force |
[protected]
VEC * unknowns | unknowns |
[protected]
void localStiffness (TopoElement2d* el)
| localStiffness |
[protected pure virtual]
calculate the localstiffness matrix with a specific element
void localForce (TopoElement2d* el)
| localForce |
[protected pure virtual]
calculate the local force vector with a specific element
double diffusion (TopoElement2d* el, unsigned int localI, unsigned int localJ)
| diffusion |
[protected pure virtual]
calculate the diffusion term for local node I,J in an element
double convection (TopoElement2d* el, unsigned int localI, unsigned int localJ)
| convection |
[protected pure virtual]
calculate the convection term for local node I,J in an element
double robin (TopoElement2d* el, unsigned int localI, unsigned int localJ)
| robin |
[protected pure virtual]
calculate the robin term for local node I,J in an element
double headTerm (TopoElement2d* el, unsigned int localI, unsigned int localJ)
| headTerm |
[protected pure virtual]
calculate the head term for local node I,J in an element
double sourceTerm (TopoElement2d* el, unsigned int localJ)
| sourceTerm |
[protected pure virtual]
calculate the source term for local node J in an element, part of the force
double neumannTerm (TopoElement2d* el, unsigned int localJ)
| neumannTerm |
[protected pure virtual]
calculate the neumann term for local node J in an element, part of the force
double gDir (TopoNodeDir2d* nod)
| gDir |
[protected pure virtual]
return the gdir function in a node
double gNeu (TopoNodeNeu2d* nod)
| gNeu |
[protected pure virtual]
return the gNeu function in a node
double gRob (TopoNodeRobin2d* nod)
| gRob |
[protected pure virtual]
return the gRob function in a node
double sp_get_val_dir (SPMAT *A, int i, int j)
| sp_get_val_dir |
[private]
some internal functions to speed things up
double sp_set_val_dir (SPMAT *A, int i, int j, double val)
| sp_set_val_dir |
[private]
some internal functions to speed things up
double sp_set_val_dir_expand (SPMAT *A, int i, int j, double val, SPROW * r, int idx)
| sp_set_val_dir_expand |
[private]
some internal functions to speed things up
inline double sp_get_val_dir (SPMAT *A, int i, int j)
| sp_get_val_dir |
[private]
inline double sp_set_val_dir (SPMAT *A, int i,int j, double val)
| sp_set_val_dir |
[private]
Generated by: benny@okidoki on Thu Jun 21 10:41:51 2001, using kdoc 2.0a53. |