IFEM  90A354
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ModelGenerator Class Referenceabstract

Base class for model generators for FEM simulators. More...

#include <ModelGenerator.h>

Inheritance diagram for ModelGenerator:
Inheritance graph
[legend]

Public Member Functions

 ModelGenerator (const tinyxml2::XMLElement *elem)
 The constructor initializes the common members. More...
 
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. More...
 
bool topologySets () const
 Returns true if topology sets is to be generated.
 

Protected Attributes

const tinyxml2::XMLElement * geo
 Pointer to XML element describing geometry.
 

Detailed Description

Base class for model generators for FEM simulators.

Constructor & Destructor Documentation

◆ ModelGenerator()

ModelGenerator::ModelGenerator ( const tinyxml2::XMLElement *  elem)
inlineexplicit

The constructor initializes the common members.

Parameters
[in]elemXML element containing geometry definition

Member Function Documentation

◆ createG2()

virtual std::string ModelGenerator::createG2 ( int  nsd,
bool  rational 
) const
inlineprotectedvirtual

Generates the G2 description of the geometry.

Parameters
[in]nsdNumber of spatial dimension
[in]rationalIf true, create a NURBS geometry basis

Reimplemented in DefaultGeometry3D, MultiPatchModelGenerator3D, DefaultGeometry2D, DefaultGeometry1D, MultiPatchModelGenerator2D, and MultiPatchModelGenerator1D.

Referenced by createGeometry().


The documentation for this class was generated from the following files: