24 #ifndef _GEMA_XFEM_LUA_FRACTURE_H_ 25 #define _GEMA_XFEM_LUA_FRACTURE_H_ 39 virtual const char* typeName()
const {
return "xfemFracture"; }
A proxy class to export XfemFracture methods to the Lua environment.
Definition: xfemLuaFracture.h:33
XfemMesh * _mesh
The mesh that this fracture belongs to.
Definition: xfemLuaFracture.h:62
int crackPath(lua_State *L)
Returns three values with information about the element and the nodes of the given crack path.
Definition: xfemLuaFracture.cpp:111
int pointCoordinate(lua_State *L)
Returns a vector with the coordinate of the given point index.
Definition: xfemLuaFracture.cpp:85
virtual void * getClassMetatableID()
Returns an unique identifier to identify an user object as a XfemLuaFracture object.
Definition: xfemLuaFracture.h:44
int elemCutPos(lua_State *L)
Returns three values with information about the element and the edges of the given crack path.
Definition: xfemLuaFracture.cpp:212
int numElemCutPos(lua_State *L)
Returns the number of 'element cut positions' in the fracture.
Definition: xfemLuaFracture.cpp:203
virtual void fillMetatable(lua_State *L, int index)
Prepares the object metatable for calling methods.
Definition: xfemLuaFracture.cpp:50
Basic class for a XFEM mesh. This is the basic mesh interface for xfem problems adding enrichment cap...
Definition: xfemMesh.h:49
XfemLuaFracture(XfemFracture *f, XfemMesh *m, const GmLogCategory &logger)
Constructor.
Definition: xfemLuaFracture.cpp:41
XfemFracture * _fracture
The fracture 'wrapped' by this proxy object.
Definition: xfemLuaFracture.h:61
A simple class to represent a natural fracture.
Definition: xfemFracture.h:34
int numPoints(lua_State *L)
Returns the number of points of the fracture.
Definition: xfemLuaFracture.cpp:76
int appendElemCutPos(lua_State *L)
Given an element and two edge indices plus a boolean, appends (boolean = true) or prepends (false) th...
Definition: xfemLuaFracture.cpp:233
int splitElemCutPos(lua_State *L)
Given a crack path index, splits it in two on the given edge.
Definition: xfemLuaFracture.cpp:264
int splitCrackPath(lua_State *L)
Given a crack path index, splits it in two on the given vertex.
Definition: xfemLuaFracture.cpp:172
int numCrackPaths(lua_State *L)
Returns the number of 'crack paths' in the fracture.
Definition: xfemLuaFracture.cpp:102
int appendCrackPath(lua_State *L)
Given an element and two node indices plus a boolean, appends (boolean = true) or prepends (false) th...
Definition: xfemLuaFracture.cpp:132