AFEPack
|
#include <Geometry.h>
公有类型 | |
enum | { dim = DIM } |
公有成员 | |
TemplateGeometry () | |
TemplateGeometry (const TemplateGeometry< DIM > &) | |
~TemplateGeometry () | |
TemplateGeometry & | operator= (const TemplateGeometry< DIM > &) |
void | loadFunction () |
void | unloadFunction () |
const std::vector < afepack::Point< DIM > > & | vertexArray () const |
const QuadratureInfoAdmin< DIM > & | quadratureInfo () const |
QuadratureInfoAdmin< DIM > & | quadratureInfo () |
const QuadratureInfo< DIM > & | findQuadratureInfo (int) const |
double | volume () const |
void | readData (const std::string &) |
void | writeData (const std::string &) const |
DeclException1 (ExcTemplateGeometryData, char *,<< "Template geometry data error: "<< arg1) | |
DeclException1 (ExcFileOpen, char *,<< "Can't open library "<< arg1) | |
DeclException2 (ExcLoadFunction, char *, char *,<< "Can't load function "<< arg1<< " from library "<< arg2) | |
私有属性 | |
std::string | library_path |
void * | handle |
std::string | library_name |
std::string | volume_function_name |
double(* | volume_function )(const double **) |
QuadratureInfoAdmin< DIM > | quad_info |
友元 | |
filtering_istream & | operator>> (filtering_istream &, TemplateGeometry< DIM > &) |
std::ostream & | operator<< (std::ostream &, const TemplateGeometry< DIM > &) |
Template geometry is the geometry information of a template element. A template geometry is in fact a one-element mesh. A template geometry have the information about how to calculate its volume. Such a function is stored in a shared library. The user should provide such a shared library and tell this class about the file name of the shared library and the function name to calculate the volume.
TemplateGeometry< DIM >::TemplateGeometry | ( | ) |
Default contructor.
TemplateGeometry< DIM >::TemplateGeometry | ( | const TemplateGeometry< DIM > & | t | ) |
Copy constructor.
TemplateGeometry< DIM >::~TemplateGeometry | ( | ) |
TemplateGeometry< DIM >::DeclException1 | ( | ExcTemplateGeometryData | , |
char * | , | ||
<< "Template geometry data error: "<< | arg1 | ||
) |
TemplateGeometry< DIM >::DeclException1 | ( | ExcFileOpen | , |
char * | , | ||
<< "Can't open library "<< | arg1 | ||
) |
TemplateGeometry< DIM >::DeclException2 | ( | ExcLoadFunction | , |
char * | , | ||
char * | , | ||
<< "Can't load function "<< arg1<< " from library "<< | arg2 | ||
) |
const QuadratureInfo< DIM > & TemplateGeometry< DIM >::findQuadratureInfo | ( | int | i | ) | const [inline] |
Retrieve quadrature information.
void TemplateGeometry< DIM >::loadFunction | ( | ) |
Load the function from the shared library.
TemplateGeometry< DIM > & TemplateGeometry< DIM >::operator= | ( | const TemplateGeometry< DIM > & | t | ) |
Destructor. Copy operator.
const QuadratureInfoAdmin< DIM > & TemplateGeometry< DIM >::quadratureInfo | ( | ) | const |
Quadrature information.
QuadratureInfoAdmin< DIM > & TemplateGeometry< DIM >::quadratureInfo | ( | ) |
Quadrature information.
void TemplateGeometry< DIM >::readData | ( | const std::string & | s | ) |
Read in data from a file in certain file format.
void TemplateGeometry< DIM >::unloadFunction | ( | ) |
Close the shared library.
const std::vector< afepack::Point< DIM > > & TemplateGeometry< DIM >::vertexArray | ( | ) | const [inline] |
Vertex array.
double TemplateGeometry< DIM >::volume | ( | ) | const [inline] |
Volume of the template geometry.
void TemplateGeometry< DIM >::writeData | ( | const std::string & | s | ) | const |
Write out data to a file in certain file foramt.
std::ostream& operator<< | ( | std::ostream & | os, |
const TemplateGeometry< DIM > & | t | ||
) | [friend] |
Stream output.
filtering_istream& operator>> | ( | filtering_istream & | is, |
TemplateGeometry< DIM > & | t | ||
) | [friend] |
Stream input.
void* TemplateGeometry< DIM >::handle [private] |
Pointer to object to open the shared library. Internel use only.
std::string TemplateGeometry< DIM >::library_name [private] |
The file name of the shared library.
std::string TemplateGeometry< DIM >::library_path [private] |
QuadratureInfoAdmin<DIM> TemplateGeometry< DIM >::quad_info [private] |
The quadrature information on the geometry.
double(* TemplateGeometry< DIM >::volume_function)(const double **) [private] |
The volume function pointer.
std::string TemplateGeometry< DIM >::volume_function_name [private] |
The name of the function to calculate its volume.