Xfem
The Xfem Plugin
Loading...
Searching...
No Matches
xfemPrintUtils.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_PRINT_UTILS_H_
25#define _GEMA_XFEM_PRINT_UTILS_H_
26
27#include <gmPrintUtils.h>
28
29class XfemMesh;
30
39
42{
43public:
45 XfemPrintUtils(const GmLogCategory& logger, GmLogLevel level = GM_EXT_INFO, int opt = GM_PRINT_DEFAULT)
46 : GmPrintUtils(logger, level, opt) {}
47
48 void printSubElementsTable(const XfemMesh* mesh);
49
50 void printSubElementsGaussTable(const XfemMesh* mesh, const QList<GmGaussAccessor* >& dataList, QString title = "",
51 const QList<int>& columnWidths = QList<int>());
52
53 static void parsePrintOptions(lua_State* L, int index, QString fname, int& options, int* state);
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
Extension to GmPrintUtils for printing subelements and data at enriched Gauss points.
Definition xfemPrintUtils.h:42
void printSubElementsTable(const XfemMesh *mesh)
Print subelement information.
Definition xfemPrintUtils.cpp:42
static void parsePrintOptions(lua_State *L, int index, QString fname, int &options, int *state)
Auxilliary function used to parse print options given in a Lua table. Extends GmPrintUtils::parsePrin...
Definition xfemPrintUtils.cpp:426
XfemPrintUtils(const GmLogCategory &logger, GmLogLevel level=GM_EXT_INFO, int opt=GM_PRINT_DEFAULT)
Constructor receiving the logger and level used to print data, along with print options.
Definition xfemPrintUtils.h:45
void printSubElementsGaussTable(const XfemMesh *mesh, const QList< GmGaussAccessor * > &dataList, QString title="", const QList< int > &columnWidths=QList< int >())
Prints a table of values where each Gauss accessor is a table column, using the object configured log...
Definition xfemPrintUtils.cpp:173
GmLogLevel
GM_PRINT_USER
XfemPrintFlags
Enumeration used to extend GmPrintUtilsFlags with options for printing Xfem subelements.
Definition xfemPrintUtils.h:33
@ XFEM_PRINT_NUM_GAUSS
Should we print a column with the number of Gauss points in the subelement? Used by printSubElementsT...
Definition xfemPrintUtils.h:35
@ XFEM_PRINT_CARTESIAN
Do we want to print cartesian coordinates for subelement vertices? Used by printSubElementsTable() on...
Definition xfemPrintUtils.h:34
@ XFEM_PRINT_SUB_ELEM_TYPE
Should we print a column with the subelement type? Used by printSubElementsGaussTable() only.
Definition xfemPrintUtils.h:37
@ XFEM_PRINT_SUB_ELEM_NUM
Should we print a column with the subelement number? Used by printSubElementsGaussTable() only.
Definition xfemPrintUtils.h:36