IFEM 90A354
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
MultiPatchModelGenerator2D Class Reference

2D multi-patch model generator for FEM simulators. More...

#include <MultiPatchModelGenerator.h>

Inheritance diagram for MultiPatchModelGenerator2D:
Inheritance graph
[legend]
Collaboration diagram for MultiPatchModelGenerator2D:
Collaboration graph
[legend]

Public Member Functions

 MultiPatchModelGenerator2D (const tinyxml2::XMLElement *elem)
 The constructor initializes common members. \ param[in] elem XML element to parse.
 
virtual ~MultiPatchModelGenerator2D ()
 Empty destructor.
 
virtual bool createGeometry (SIMinput &sim) const
 Creates a geometry.
 
virtual bool createTopology (SIMinput &sim) const
 Creates topology for geometry.
 
virtual bool createTopologySets (SIMinput &sim) const
 Creates topology sets for geometry.
 
- Public Member Functions inherited from ModelGenerator
 ModelGenerator (const tinyxml2::XMLElement *elem)
 The constructor initializes the common members.
 
virtual ~ModelGenerator ()
 Empty destructor.
 

Protected Member Functions

virtual std::string createG2 (int nsd, bool rational=false) const
 Generates the G2 description of the geometry.
 
- Protected Member Functions inherited from ModelGenerator
bool topologySets () const
 Returns true if topology sets is to be generated.
 

Private Attributes

size_t nx
 Number of blocks in x.
 
size_t ny
 Number of blocks in y.
 
int periodic_x
 If non-zero, make model periodic in x for given bases.
 
int periodic_y
 If non-zero, make model periodic in y for given bases.
 

Additional Inherited Members

- Protected Attributes inherited from ModelGenerator
const tinyxml2::XMLElement * geo
 Pointer to XML element describing geometry.
 

Detailed Description

2D multi-patch model generator for FEM simulators.

Generate a rectangle split in a given number of blocks.

Member Function Documentation

◆ createG2()

std::string MultiPatchModelGenerator2D::createG2 ( int  nsd,
bool  rational = false 
) const
protectedvirtual

Generates the G2 description of the geometry.

Reimplemented from ModelGenerator.

References IFEM::cout, ModelGenerator::geo, utl::getAttribute(), nx, ny, Vec3::x, and Vec3::y.

Referenced by createGeometry().

◆ createGeometry()

bool MultiPatchModelGenerator2D::createGeometry ( SIMinput sim) const
virtual

◆ createTopology()

bool MultiPatchModelGenerator2D::createTopology ( SIMinput sim) const
virtual

◆ createTopologySets()

bool MultiPatchModelGenerator2D::createTopologySets ( SIMinput sim) const
virtual

Creates topology sets for geometry.

Implements ModelGenerator.

References SIMbase::getLocalPatchIndex(), nx, ny, SIMinput::topology(), and ModelGenerator::topologySets().


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