Xfem
The Xfem Plugin
Loading...
Searching...
No Matches
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
30class XfemMesh;
31
37class XfemMeshLoader : public GmpMeshLoader<XfemVector>
38{
39public:
40
42 XfemMeshLoader(GmSimulationData* simulation, const GmLogCategory& logger) : GmpMeshLoader<XfemVector>(simulation, logger) {}
43
45 virtual ~XfemMeshLoader() {}
46
47 virtual bool loadMeshData(LuaTable& table, GmMesh* mesh, GmpNodeMeshData<XfemVector>* nd,
48 GmpCellMeshData<XfemVector>* cd, GmPCR** meshPcr, bool* newPcr);
49
50private:
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
Basic class for a XFEM mesh. This is the basic mesh interface for xfem problems adding enrichment cap...
Definition xfemMesh.h:50
Class responsible for loading mesh data for an XFem mesh.
Definition xfemMeshLoader.h:38
virtual bool loadMeshData(LuaTable &table, GmMesh *mesh, GmpNodeMeshData< XfemVector > *nd, GmpCellMeshData< XfemVector > *cd, GmPCR **meshPcr, bool *newPcr)
Overrides the standard GmpMeshLoader::loadMeshData() implementation to also load XFem subelement data...
Definition xfemMeshLoader.cpp:46
bool loadSubElements(LuaTable &table, XfemMesh *mesh)
Loads subelement data, returning false on errors.
Definition xfemMeshLoader.cpp:123
bool loadFractureData(LuaTable &table, LuaTable &table2, XfemMesh *mesh)
Loads fracture data, returning false on errors.
Definition xfemMeshLoader.cpp:364
virtual ~XfemMeshLoader()
Destructor.
Definition xfemMeshLoader.h:45
XfemMeshLoader(GmSimulationData *simulation, const GmLogCategory &logger)
Constructor.
Definition xfemMeshLoader.h:42
bool loadFractures(LuaTable &table, XfemMesh *mesh)
Loads fracture data, returning false on errors.
Definition xfemMeshLoader.cpp:277
Declaration of useful configuration definitions for the plugin library.
#define XfemVector
XfemVector is a define and not an "using" clause to avoid linking errors arising from instancing Gema...
Definition xfemConfig.h:43