|
|
| GmpCellMeshBase (GmSimulationData *simulation, QString id, QString description, const GmLogCategory &logger) |
| | Constructor. Will be called by the plugin loading code.
|
| |
|
virtual | ~GmpCellMeshBase () |
| | Destructor.
|
| |
| virtual bool | hasCapability (QString capabilityName) const |
| |
|
virtual int | numCells () const |
| |
|
virtual int | numActiveCells () const |
| |
|
virtual const GmCell * | cell (int cellIndex) const |
| |
|
virtual GmCell * | cell (int cellIndex) |
| |
|
virtual const GmCellMeshTopology * | topology (bool create=true) const |
| |
|
virtual void | clearTopology () |
| |
|
virtual bool | hasSolidElements () const |
| |
|
virtual const int * | numCellTypes () const |
| |
|
virtual const int * | numActiveCellTypes () const |
| |
|
virtual int | maxNumCellNodes () const |
| |
|
virtual int | maxNumCellGhostNodes () const |
| |
|
virtual int | maxTotalNumCellNodes () const |
| |
|
virtual void | ghostNodesUpdated (int nghost, int ntotal) |
| |
|
virtual void | activeCellUpdated (GmCellType type, bool active) |
| |
|
virtual QStringList | cellGroupIds () const |
| |
|
virtual int | numCellsInGroup (int groupIndex) const |
| |
|
virtual const GmCell * | cellInGroup (int groupIndex, int cellIndex) const |
| |
|
virtual GmCell * | cellInGroup (int groupIndex, int cellIndex) |
| |
|
virtual int | addCellGroup (QString groupName) |
| |
|
virtual bool | addCellsToGroup (int groupId, const QVector< int > &cellIds) |
| |
|
virtual bool | addCellsToGroup (int groupId, const QVector< QPair< int, int > > &cellIds) |
| |
|
virtual const QMap< QString, GmCellBoundary * > & | cellBoundaryGroups () const |
| |
|
virtual const QList< GmPropertySet * > & | propertySets () const |
| |
|
virtual int | propertySetIndex (QString id) const |
| |
|
virtual int | addCells (int *numCellTypes) |
| |
|
virtual QList< int > | addedCells () const |
| |
|
virtual void | clearAddedCells () |
| |
|
virtual void | emitMeshChanged () |
| |
| virtual void | clear () |
| |
|
virtual GmpCellMeshData< Vector > * | cellData () |
| |
|
virtual size_t | cellMemory () const |
| |
|
virtual size_t | cellGroupsMemory () const |
| |
|
virtual size_t | cellBoundariesMemory () const |
| |
|
| GmpNodeMesh (GmSimulationData *simulation, QString id, QString description, const GmLogCategory &logger) |
| | Constructor. Will be called by the plugin loading code.
|
| |
|
virtual | ~GmpNodeMesh () |
| | Destructor.
|
| |
|
virtual const char * | pluginName () const |
| |
|
virtual const char * | pluginType () const |
| |
|
virtual bool | useDualVectors () const |
| |
|
virtual void | pushProxy (lua_State *L, const GmLogCategory &logger) |
| |
|
virtual bool | loadPrivateData (LuaTable &table) |
| | See behaviour comments on the base class. When inheriting from this class, the idea is that this function does not need to be overridden. Only initCellData(), should be extended. If inheriting from GmpCellMeshBase, its initCellData() implementation requires that cellSize() and cellAllocator() be provided as well.
|
| |
|
virtual GmValueInfo * | nodeCoordInfo () const |
| |
|
virtual GmValueAccessor * | nodeCoordAccessor (Unit desiredUnit, const GmLogCategory &logger) const |
| |
|
virtual int | numNodes () const |
| |
|
virtual int | numGhostNodes () const |
| |
|
virtual const QMap< QString, GmNodeSet * > & | nodeSets () const |
| |
|
virtual int | addNodes (int numNodes) |
| |
|
virtual int | addGhostNodes (int numNodes) |
| |
|
virtual size_t | nodeMemory () const |
| |
|
virtual size_t | nodeSetsMemory () const |
| |
|
virtual GmPCR * | pcrObject () const |
| |
|
| virtual GmpCellMeshData< Vector > * | initCellData (LuaTable &table, bool *ghostSupport, bool *ok) |
| | Method called by gmpNodeMesh::loadPrivateData() to initialize the cell data object. See the parameter description on the base class (GmpNodeMesh).
|
| |
| virtual GmpCellAllocator | cellAllocator (bool ghostSupport, bool hSupport) const =0 |
| | Virtual function that should be overridden by derived classes. The ghostSupport parameter defines if ghost nodes support is desired or not. The hSupport is used for specifying if support for hierarchical elements is required (meshes must have eithar "normal" elements or hierarchical elements). If set to true, ghostSupport must also be set to true.
|
| |
| virtual int | cellSize (bool ghostSupport, bool hSupport) const =0 |
| | Virtual function that should be overridden by derived classes to specify the concrete "sizeof" of the structure returned by the cellAllocator.
|
| |
| virtual bool | addStateGeometryData (GmStateDump *state, int groupId) |
| |
| virtual bool | fillDumpControlMapData (QVariantMap *map, const GmLogCategory &logger) |
| |
| virtual bool | dumpControlMapDataLoaded (QVariantMap *map, const GmLogCategory &logger) |
| |
|
virtual GmpMeshLoader< Vector > * | meshLoader () |
| | Returns the mesh loader used to load mesh data. This function should be replaced for using a custom mesh loader.
|
| |
|
virtual int | controlMapStateItemType () |
| |
template<class Mesh, template< class > class Vector>
class GmpCellMeshBase< Mesh, Vector >
Basic class for implementing a mesh with support for cells.
See comments on GmpNodeMesh for a basic rational for why this is a template class. The Mesh parameter should be a mesh class while Vector can be either GmSingleVector or GmDualVector.
Does not implement the needed virtual functions that are specific for a CellMesh / ElementMesh / XfemMesh. Those are delegated to subclasses of GmpCellMeshBase.
template<class Mesh , template< class > class Vector>
Virtual function that should be overridden by derived classes. The ghostSupport parameter defines if ghost nodes support is desired or not. The hSupport is used for specifying if support for hierarchical elements is required (meshes must have eithar "normal" elements or hierarchical elements). If set to true, ghostSupport must also be set to true.
Implemented in GmpCellMesh< Vector >, and GmpElementMesh< Vector >.