To store and treat finite element geometric information. More...
#include <Domain.h>
Public Member Functions | |
| Domain () | |
| Constructor of a null domain. | |
| Domain (const string &file) | |
| Constructor with an input file. | |
| ~Domain () | |
| Destructor. | |
| void | setFile (string file) |
| Set file containing Domain data. | |
| void | setDim (size_t d) |
| Set space dimension. | |
| size_t | getDim () const |
| Return space dimension. | |
| void | setNbDOF (size_t n) |
| Set number of degrees of freedom. | |
| size_t | getNbDOF () const |
| Return number of degrees of freedom. | |
| size_t | getNbVertices () const |
| Return number of vertices. | |
| size_t | getNbLines () const |
| Return number of lines. | |
| size_t | getNbContours () const |
| Return number of contours. | |
| size_t | getNbHoles () const |
| Return number of holes. | |
| size_t | getNbSubDomains () const |
| Return number of sub-domains. | |
| int | get () |
| Read domain data interactively. | |
| void | get (const string &file) |
| Read domain data from a data file. | |
| Mesh & | getMesh () const |
| Return reference to generated Mesh instance. | |
| void | genGeo (string file) |
| Generate geometry file. | |
| void | genMesh () |
| Generate 2-D mesh. | |
| void | genMesh (const string &file) |
| Generate 2-D mesh and save in file (OFELI format) | |
| void | genMesh (string geo_file, string bamg_file, string mesh_file) |
| Generate 2-D mesh and save geo, bamg and mesh file (OFELI format) | |
| void | generateMesh () |
| Generate 2-D mesh using the BAMG mesh generator. | |
| Domain & | operator*= (real_t a) |
Operator *= | |
| void | insertVertex (real_t x, real_t y, real_t h, int code) |
| Insert a vertex. | |
| void | insertVertex (real_t x, real_t y, real_t z, real_t h, int code) |
| Insert a vertex (3-D case) | |
| void | insertLine (size_t n1, size_t n2, int c) |
| Insert a straight line. | |
| void | insertLine (size_t n1, size_t n2, int dc, int nc) |
| Insert a straight line. | |
| void | insertCircle (size_t n1, size_t n2, size_t n3, int c) |
| Insert a circluar arc. | |
| void | insertCircle (size_t n1, size_t n2, size_t n3, int dc, int nc) |
| Insert a circluar arc. | |
| void | insertRequiredVertex (size_t v) |
| Insert a required (imposed) vertex. | |
| void | insertRequiredEdge (size_t e) |
| Insert a required (imposed) edge (or line) | |
| void | insertSubDomain (size_t n, int code) |
| Insert subdomain. | |
| void | insertSubDomain (size_t ln, int orient, int code) |
| Insert subdomain. | |
| void | setNbDOF (int nb_dof) |
| Set Number of degrees of freedom per node. | |
| Point< real_t > | getMinCoord () const |
| Return minimum coordinates of vertices. | |
| Point< real_t > | getMaxCoord () const |
| Return maximum coordinates of vertices. | |
| real_t | getMinh () const |
| Return minimal value of mesh size. | |
| void | setOutputFile (string file) |
| Define output mesh file. | |
To store and treat finite element geometric information.
This class is essentially useful to construct data for mesh generators.
| Domain | ( | ) |
Constructor of a null domain.
This constructor assigns maximal values of parameters.
| Domain | ( | const string & | file | ) |
Constructor with an input file.
| [in] | file | Input file in the XML format defining the domain |
| void genMesh | ( | const string & | file | ) |
Generate 2-D mesh and save in file (OFELI format)
| [in] | file | File where the generated mesh is saved |
| void genMesh | ( | string | geo_file, |
| string | bamg_file, | ||
| string | mesh_file ) |
Generate 2-D mesh and save geo, bamg and mesh file (OFELI format)
| [in] | geo_file | Geo file |
| [in] | bamg_file | Bamg file |
| [in] | mesh_file | File where the generated mesh is saved |
| void get | ( | const string & | file | ) |
Read domain data from a data file.
| [in] | file | Input file in Domain XML format |
| void insertCircle | ( | size_t | n1, |
| size_t | n2, | ||
| size_t | n3, | ||
| int | c ) |
Insert a circluar arc.
| [in] | n1 | Label of vertex defining the first end of the arc |
| [in] | n2 | Label of vertex defining the second end of the arc |
| [in] | n3 | Label of vertex defining the center of the arc |
| [in] | c | Code to associate to created nodes (Dirichlet) or sides (Neumann) if < 0 |
| void insertCircle | ( | size_t | n1, |
| size_t | n2, | ||
| size_t | n3, | ||
| int | dc, | ||
| int | nc ) |
Insert a circluar arc.
| [in] | n1 | Label of vertex defining the first end of the arc |
| [in] | n2 | Label of vertex defining the second end of the arc |
| [in] | n3 | Label of vertex defining the center of the arc |
| [in] | dc | Code to associate to created nodes (Dirichlet) |
| [in] | nc | Code to associate to created sides (Neumann) |
| void insertLine | ( | size_t | n1, |
| size_t | n2, | ||
| int | c ) |
Insert a straight line.
| [in] | n1 | Label of the first vertex of line |
| [in] | n2 | Label of the second vertex of line |
| [in] | c | Code to associate to created nodes (Dirichlet) or sides (Neumann) if < 0 |
| void insertLine | ( | size_t | n1, |
| size_t | n2, | ||
| int | dc, | ||
| int | nc ) |
Insert a straight line.
| [in] | n1 | Label of the first vertex of line |
| [in] | n2 | Label of the second vertex of line |
| [in] | dc | Code to associate to created nodes (Dirichlet) |
| [in] | nc | Code to associate to created sides (Neumann) |
| void insertRequiredEdge | ( | size_t | e | ) |
Insert a required (imposed) edge (or line)
| [in] | e | Label of line |
| void insertRequiredVertex | ( | size_t | v | ) |
Insert a required (imposed) vertex.
| [in] | v | Label of vertex |
| void insertSubDomain | ( | size_t | ln, |
| int | orient, | ||
| int | code ) |
Insert subdomain.
| [in] | ln | Line label |
| [in] | orient | Orientation (1 or -1) |
| [in] | code | Subdomain code or reference |
| void insertSubDomain | ( | size_t | n, |
| int | code ) |
Insert subdomain.
| [in] | n | |
| [in] | code |
| void insertVertex | ( | real_t | x, |
| real_t | y, | ||
| real_t | h, | ||
| int | code ) |
Insert a vertex.
| [in] | x | x-coordinate of vertex |
| [in] | y | y-coordinate of vertex |
| [in] | h | mesh size around vertex |
| [in] | code | code of coordinate |
| void insertVertex | ( | real_t | x, |
| real_t | y, | ||
| real_t | z, | ||
| real_t | h, | ||
| int | code ) |
Insert a vertex (3-D case)
| [in] | x | x-coordinate of vertex |
| [in] | y | y-coordinate of vertex |
| [in] | z | z-coordinate of vertex |
| [in] | h | mesh size around vertex |
| [in] | code | code of coordinate |
| Domain & operator*= | ( | real_t | a | ) |
Operator *=
Rescale domain coordinates by myltiplying by a factor
| [in] | a | Value to multiply by |
| void setOutputFile | ( | string | file | ) |
Define output mesh file.
| [in] | file | String defining output mesh file |