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.
 
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.
 

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 MultiPatchModelGenerator1D, MultiPatchModelGenerator2D, DefaultGeometry1D, DefaultGeometry2D, MultiPatchModelGenerator3D, and DefaultGeometry3D.

Referenced by createGeometry().

◆ createGeometry()

bool ModelGenerator::createGeometry ( SIMinput sim) const
virtual

◆ createTopology()

virtual bool ModelGenerator::createTopology ( SIMinput ) const
inlinevirtual

Creates topology for multi-patch geometries.

Reimplemented in MultiPatchModelGenerator1D, MultiPatchModelGenerator2D, and MultiPatchModelGenerator3D.

Referenced by SIM1D::parse(), SIM2D::parse(), and SIM3D::parse().

◆ createTopologySets()

virtual bool ModelGenerator::createTopologySets ( SIMinput sim) const
pure virtual

Creates topology sets for the specified sim object.

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

Referenced by SIMinput::parse().


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