|
|
| GmpRegularGridMesh (GmSimulationData *simulation, QString id, QString description, const GmLogCategory &logger) |
| | Constructor. Creates an invalid mesh that will be filled by loadPrivateData()
|
| |
|
virtual | ~GmpRegularGridMesh () |
| | Destructor.
|
| |
| virtual const char * | pluginName () const |
| |
| virtual const char * | pluginType () const |
| |
| virtual bool | loadPrivateData (LuaTable &table) |
| | Initializes the mesh object by reading data from the given Lua table. Returns false if the grid could not be initialized properly.
|
| |
| virtual bool | hasCapability (QString capabilityName) const |
| |
| virtual bool | useDualVectors () const |
| |
| virtual void | pushProxy (lua_State *L, const GmLogCategory &logger) |
| |
| virtual GmValueInfo * | nodeCoordInfo () const |
| |
| virtual GmValueAccessor * | nodeCoordAccessor (Unit desiredUnit, const GmLogCategory &logger) const |
| |
| virtual int | numNodes () const |
| |
| virtual double | nodeSpacing (int dim) const |
| |
| virtual int | nodeCount (int dim) const |
| |
| virtual bool | nodeWrap (int dim) const |
| |
| virtual int | nodeFromIndex (int x, int y=-1, int z=-1) const |
| |
| virtual void | indexFromNode (int node, int *x, int *y=NULL, int *z=NULL) const |
| |
| virtual int | neighbor (int node, int xoffset, int yoffset=0, int zoffset=0) const |
| |
| virtual const QMap< QString, GmNodeSet * > & | nodeSets () const |
| |
| virtual void | printParameters (const GmLogCategory &logger) |
| | Reimplements the basic GmMesh::printParameters() to add the number of nodes in each mesh dimension.
|
| |
| virtual size_t | nodeMemory () const |
| |
| virtual size_t | nodeSetsMemory () const |
| |
| virtual GmPCR * | pcrObject () const |
| | Returns a default empty PCR object.
|
| |
|
| GmRegularGridMesh (GmSimulationData *simulation, QString id, QString description, const GmLogCategory &logger) |
| |
|
| GmMesh (GmSimulationData *simulation, QString id, QString description, const GmLogCategory &logger) |
| |
| virtual const char * | pluginCategory () const |
| |
|
virtual int | numGhostNodes () const |
| |
|
int | totalNumNodes () const |
| |
|
virtual int | numGlobalNodes () const |
| |
|
virtual int | numGlobalGhostNodes () const |
| |
|
int | totalNumGlobalNodes () const |
| |
|
int | toLinearGhostIndex (int nodeIndex) const |
| |
|
int | toLocalGhostIndex (int nodeIndex) const |
| |
|
QStringList | nodeValueIds (int filter=-1) const |
| |
|
virtual GmValueInfo * | nodeValueInfo (QString id, int filter=-1) const |
| |
|
virtual GmValueAccessor * | nodeValueAccessor (QString id, Unit desiredUnit, const GmLogCategory &logger) const |
| |
|
virtual GmValueAccessor * | nodeValueAccessor (QString id, int snum, bool locked, Unit desiredUnit, const GmLogCategory &logger) const |
| |
|
virtual GmValueAccessor * | nodeStateVarAccessorFromDof (int dof, Unit desiredUnit, GmStateVar **stateVar) const |
| |
|
virtual bool | addNodeValueSet (GmValueInfo *info) |
| |
|
virtual void | removeNodeValueSet (QString id) |
| |
|
virtual bool | initNodeValueSets () |
| |
|
virtual void | beginAddingNodeAttributeSets () |
| |
|
virtual bool | endAddingNodeAttributeSets () |
| |
|
virtual void | clearNodeValueSets () |
| |
|
virtual void | clearNodeValueSetsData () |
| |
| virtual bool | saveState (GmValueSet::SaveStateMode mode, const GmLogCategory &logger) |
| |
|
virtual bool | saveNodeValueState (QString id, GmValueSet::SaveStateMode mode, const GmLogCategory &logger) |
| |
|
virtual int | numNodeValueStates (QString id) const |
| |
|
virtual QString | nodeValueStateTag (QString id, int snum) const |
| |
|
virtual double | nodeValueStateTime (QString id, int snum) const |
| |
|
virtual void | setNodeValueStateTag (QString id, int snum, QString tag) |
| |
|
virtual void | setNodeValueStateTime (QString id, int snum, double time) |
| |
|
virtual int | addNodes (int numNodes) |
| |
|
virtual int | addGhostNodes (int numNodes) |
| |
|
virtual void | clear () |
| |
|
QMap< QString, GmPhysicsUserFunctions * > & | userFunctionsObjMap () const |
| |
| virtual void | printValues (const GmLogCategory &logger, int options=GM_PRINT_DEFAULT) |
| |
|
GmValueSetGroup * | nodeValueSetGroup () const |
| |
|
GmValueSet * | nodeValueSet (QString id) const |
| |
|
GmValueSetGroup * | ghostNodeValueSetGroup () const |
| |
|
GmValueSet * | ghostNodeValueSet (QString id) const |
| |
|
virtual void | emitMeshChanged () |
| |
|
| GmPluginObject (GmSimulationData *simulation, QString id, QString description, const GmLogCategory &logger) |
| |
|
QString | id () const |
| |
|
QString | description () const |
| |
|
QString | pluginTypeName () const |
| |
| virtual bool | stateAboutToBeSaved (GmStateDump *state) |
| |
|
virtual bool | stateSaved (GmStateDump *state) |
| |
|
virtual bool | stateAboutToBeLoaded (GmStateDump *state) |
| |
| virtual bool | stateLoaded (GmStateDump *state) |
| |
Simple class implementing the GmRegularGridMesh interface.
Mesh fields parsed by this plugin (the first 3, id, typeName and description, are parsed by the library and not by this plugin):
id: The mesh name
typeName: Plugin that will be used to load this mesh. Should be equal to 'RegularGridMesh.grid'. description: The mesh description
coordinateDim: The number of dimensions for each node coordinate coordinateUnit: The unit in which node coordinates are expressed coordinateFormat: A format string used when printing node coordinates
nodeOrigin: A table storing the coordinate of the first grid point (lower left back).
If absent, the origin will be equal to (0, 0, 0) nodeCount: A table storing the number of nodes in each grid dimension. Required. nodeSpacing: A table storing the node spacing in each grid dimension. Can also be a single number meaning that the spacing is equal for every dimension. If absent will be equal to 1.0. Spacings can not be equal to 0.0. nodeWrap: An optional table storing a boolean for each grid dimension stating if the last node in each direction is connected to the first one or not. Default is false in every direction.
stateVars: A table with the list of the state var ids that will be stored in each mesh node nodeAttributes: A table with the definition of the attributes associated with a mesh node
nodeSetData: A table storing a set of named collections of nodes. Each table entry is a sub-table that stores an id and a nodeList where each entry is a node id.