|
IFEM 90A354
|
Base class for model generators for FEM simulators. More...
#include <ModelGenerator.h>

Public Member Functions | |
| ModelGenerator (const tinyxml2::XMLElement *elem) | |
| The constructor initializes the common members. | |
| virtual | ~ModelGenerator () |
| Empty destructor. | |
| virtual bool | createGeometry (SIMinput &sim) const |
| Creates geometry for the specified sim object.. | |
| virtual bool | createTopologySets (SIMinput &sim) const =0 |
| Creates topology sets for the specified sim object. | |
| virtual bool | createTopology (SIMinput &) const |
| Creates topology for multi-patch geometries. | |
Protected Member Functions | |
| virtual std::string | createG2 (int nsd, bool rational) const |
| Generates the G2 description of the geometry. | |
| bool | topologySets () const |
| Returns true if topology sets is to be generated. | |
Protected Attributes | |
| const tinyxml2::XMLElement * | geo |
| Pointer to XML element describing geometry. | |
Base class for model generators for FEM simulators.
|
inlineexplicit |
The constructor initializes the common members.
| [in] | elem | XML element containing geometry definition |
|
inlineprotectedvirtual |
Generates the G2 description of the geometry.
| [in] | nsd | Number of spatial dimension |
| [in] | rational | If true, create a NURBS geometry basis |
Reimplemented in MultiPatchModelGenerator1D, MultiPatchModelGenerator2D, DefaultGeometry1D, DefaultGeometry2D, MultiPatchModelGenerator3D, and DefaultGeometry3D.
Referenced by createGeometry().
|
virtual |
Creates geometry for the specified sim object..
Reimplemented in MultiPatchModelGenerator1D, MultiPatchModelGenerator2D, and MultiPatchModelGenerator3D.
References createG2(), geo, utl::getAttribute(), SIMbase::getNoSpaceDim(), and SIMinput::readPatches().
Referenced by SIMgeneric::createDefaultModel(), and SIMinput::parse().
|
inlinevirtual |
Creates topology for multi-patch geometries.
Reimplemented in MultiPatchModelGenerator1D, MultiPatchModelGenerator2D, and MultiPatchModelGenerator3D.
Referenced by SIM1D::parse(), SIM2D::parse(), and SIM3D::parse().
|
pure virtual |
Creates topology sets for the specified sim object.
Implemented in MultiPatchModelGenerator1D, MultiPatchModelGenerator2D, MultiPatchModelGenerator3D, DefaultGeometry1D, DefaultGeometry2D, and DefaultGeometry3D.
Referenced by SIMinput::parse().