24#ifndef _GEMA_XFEM_LUA_FRACTURE_H_
25#define _GEMA_XFEM_LUA_FRACTURE_H_
39 virtual const char* typeName()
const {
return "xfemFracture"; }
A simple class to represent a natural fracture.
Definition xfemFracture.h:35
A proxy class to export XfemFracture methods to the Lua environment.
Definition xfemLuaFracture.h:34
int numPoints(lua_State *L)
Returns the number of points of the fracture.
Definition xfemLuaFracture.cpp:77
XfemFracture * _fracture
The fracture 'wrapped' by this proxy object.
Definition xfemLuaFracture.h:61
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:241
int splitElemCutPos(lua_State *L)
Given a crack path index, splits it in two on the given edge.
Definition xfemLuaFracture.cpp:274
int splitCrackPath(lua_State *L)
Given a crack path index, splits it in two on the given vertex.
Definition xfemLuaFracture.cpp:180
int pointCoordinate(lua_State *L)
Returns a vector with the coordinate of the given point index.
Definition xfemLuaFracture.cpp:86
int numElemCutPos(lua_State *L)
Returns the number of 'element cut positions' in the fracture.
Definition xfemLuaFracture.cpp:211
int numCrackPaths(lua_State *L)
Returns the number of 'crack paths' in the fracture.
Definition xfemLuaFracture.cpp:103
XfemLuaFracture(XfemFracture *f, XfemMesh *m, const GmLogCategory &logger)
Constructor.
Definition xfemLuaFracture.cpp:42
virtual void fillMetatable(lua_State *L, int index)
Prepares the object metatable for calling methods.
Definition xfemLuaFracture.cpp:51
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:220
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:136
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:112
Basic class for a XFEM mesh. This is the basic mesh interface for xfem problems adding enrichment cap...
Definition xfemMesh.h:50