Xfem
The Xfem Plugin
xfemMeshLoader.h
Go to the documentation of this file.
1 /************************************************************************
2 **
3 ** Copyright (C) 2014 by Carlos Augusto Teixera Mendes
4 ** All rights reserved.
5 **
6 ** This file is part of the "GeMA" software. It's use should respect
7 ** the terms in the license agreement that can be found together
8 ** with this source code.
9 ** It is provided AS IS, with NO WARRANTY OF ANY KIND,
10 ** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR
11 ** A PARTICULAR PURPOSE.
12 **
13 ************************************************************************/
14 
24 #ifndef _GEMA_XFEM_MESHLOADER_H_
25 #define _GEMA_XFEM_MESHLOADER_H_
26 
27 #include "xfemConfig.h"
28 #include <gmpMeshLoader.h>
29 
30 class XfemMesh;
31 
37 class XfemMeshLoader : public GmpMeshLoader<XfemVector>
38 {
39 public:
40 
42  XfemMeshLoader(GmSimulationData* simulation, const GmLogCategory& logger) : GmpMeshLoader<XfemVector>(simulation, logger) {}
43 
45  virtual ~XfemMeshLoader() {}
46 
48  GmpMeshLoaderCellAllocator cellAllocator);
49 
50 private:
51  bool loadSubElements(LuaTable& table, XfemMesh* mesh);
52  bool loadFractures (LuaTable& table, XfemMesh* mesh);
53  bool loadFractureData(LuaTable& table, LuaTable& table2, XfemMesh* mesh);
54 };
55 
56 
57 #endif
58 
virtual ~XfemMeshLoader()
Destructor.
Definition: xfemMeshLoader.h:45
bool loadFractures(LuaTable &table, XfemMesh *mesh)
Loads fracture data, returning false on errors.
Definition: xfemMeshLoader.cpp:292
Basic class for a XFEM mesh. This is the basic mesh interface for xfem problems adding enrichment cap...
Definition: xfemMesh.h:49
bool loadFractureData(LuaTable &table, LuaTable &table2, XfemMesh *mesh)
Loads fracture data, returning false on errors.
Definition: xfemMeshLoader.cpp:379
#define XfemVector
XfemVector is a define and not an "using" clause to avoid linking errors arising from instancing Gema...
Definition: xfemConfig.h:43
virtual bool loadMeshData(LuaTable &table, GmMesh *mesh, GmpMeshData< XfemVector > *nd, GmpCellMeshData< XfemVector > *cd, GmpMeshLoaderCellAllocator cellAllocator)
Overrides the standard GmpMeshLoader::loadMeshData() implementation to also load XFem subelement data...
Definition: xfemMeshLoader.cpp:45
Class responsible for loading mesh data for an XFem mesh.
Definition: xfemMeshLoader.h:37
bool loadSubElements(LuaTable &table, XfemMesh *mesh)
Loads subelement data, returning false on errors.
Definition: xfemMeshLoader.cpp:122
Declaration of usefull configuration definitions for the plugin library.
XfemMeshLoader(GmSimulationData *simulation, const GmLogCategory &logger)
Constructor.
Definition: xfemMeshLoader.h:42