24 #ifndef _GEMA_XFEM_LUA_MESH_H_ 25 #define _GEMA_XFEM_LUA_MESH_H_ 38 virtual const char* typeName()
const {
return "xfemMesh"; }
int clearSubElements(lua_State *L)
If an element is given as parameter, removes all sub-elements from that element. Otherwise,...
Definition: xfemLuaMesh.cpp:183
virtual void fillMetatable(lua_State *L, int index)
Prepares the object metatable for calling methods.
Definition: xfemLuaMesh.cpp:52
int numNaturalFractures(lua_State *L)
Returns the number of natural fractures associated with this mesh.
Definition: xfemLuaMesh.cpp:384
int enrichedElementFractureIntegrationRule(lua_State *L)
Returns the enriched element fracture integration rule for the given sub-element.
Definition: xfemLuaMesh.cpp:321
Basic class for a XFEM mesh. This is the basic mesh interface for xfem problems adding enrichment cap...
Definition: xfemMesh.h:49
int addNaturalFracture(lua_State *L)
Given a table or a vector with a list of point coordinates, creates a new fracture and adds it to the...
Definition: xfemLuaMesh.cpp:414
int fractureSubElement(lua_State *L)
Returns an xfem fracture sub-element object given its father element and its index inside the father ...
Definition: xfemLuaMesh.cpp:158
int removeSubElement(lua_State *L)
Removes an existing sub-element from the enriched element given its father element and index.
Definition: xfemLuaMesh.cpp:238
int enrichedGaussAttributeAccessor(lua_State *L)
Returns an accessor object for querying enriched Gauss attributes or nil on error.
Definition: xfemLuaMesh.cpp:348
int numFractureSubElements(lua_State *L)
Returns the number of fracture sub-elements of the given xfem element.
Definition: xfemLuaMesh.cpp:116
int element(lua_State *L)
Returns an xfem element object given the element index inside the mesh.
Definition: xfemLuaMesh.cpp:90
int addSubElement(lua_State *L)
Adds a new subelement to the xfem element. Receives as parameters in the Lua stack the father element...
Definition: xfemLuaMesh.cpp:206
int enrichedElementRegularIntegrationRule(lua_State *L)
Returns the enriched element regular integration rule for the given element.
Definition: xfemLuaMesh.cpp:296
int naturalFracture(lua_State *L)
Returns a fracture object given its index in the mesh.
Definition: xfemLuaMesh.cpp:396
A proxy class to export XfemMesh methods to the Lua environment.
Definition: xfemLuaMesh.h:32
virtual void * getClassMetatableID()
Returns an unique identifier to identify an user object as a XfemLuaMesh object.
Definition: xfemLuaMesh.h:43
int updateSubElementCoordinates(lua_State *L)
Updates the set of coordinates from a subelement (keeping its type). Receives as parameters the fathe...
Definition: xfemLuaMesh.cpp:261
int subElement(lua_State *L)
Returns an xfem sub-element object given its father element and its index inside the father.
Definition: xfemLuaMesh.cpp:132
XfemLuaMesh(XfemMesh *mesh, const GmLogCategory &logger)
Constructor.
Definition: xfemLuaMesh.cpp:46
int numRegularSubElements(lua_State *L)
Returns the number of regular sub-elements of the given xfem element.
Definition: xfemLuaMesh.cpp:104