![]() |
Xfem
The Xfem Plugin
|
Extension to GmPrintUtils for printing subelements and data at enriched Gauss points. More...
#include <xfemPrintUtils.h>


Public Member Functions | |
| 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. | |
| void | printSubElementsTable (const XfemMesh *mesh) |
| Print subelement information. | |
| 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 logger and options. Tailored to print values stored in Gauss points for mesh subelements. More... | |
Public Member Functions inherited from GmPrintUtils | |
| GmPrintUtils (const GmLogCategory &logger, GmLogLevel level=GM_EXT_INFO, int opt=GM_PRINT_DEFAULT) | |
| void | setOption (GmPrintUtilsFlags opt, bool mode) |
| void | setOptions (int options) |
| void | setFirstGhostIndex (int index) |
| GmValueAccessor * | valueAccessorForStringColumn (QString title, const QStringList &data, int width) |
| void | printValueTable (const QList< GmValueAccessor * > &dataList, QString title="", const QList< int > &columnWidths=QList< int >()) |
| void | printCellTable (const GmCellMesh *mesh, const QList< GmCellAccessor * > &dataList, QString title="", const QList< int > &columnWidths=QList< int >(), int ip=-1) |
| void | printGaussTable (const GmElementMesh *mesh, const QList< GmGaussAccessor * > &dataList, QString title="", const QList< int > &columnWidths=QList< int >()) |
| void | addDataColumnSizes (const QList< A * > &dataList, const QList< int > &colWidths, QList< int > &sizes) |
| int | printColumnHeaders (QString title, const QStringList &extraCols, const QList< A * > &dataList, const QList< int > &colWidths) |
| void | buildReverseConstMaps (const QList< A * > &dataList, QList< QMap< double, QString > > &revConstMapList) |
Static Public Member Functions | |
| 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::parsePrintOptions() to read aditional options. More... | |
Static Public Member Functions inherited from GmPrintUtils | |
| static bool | parseValueIds (lua_State *L, int index, QString fname, QStringList &valueList, QList< Unit > &unitList) |
| static QList< int > | parseColumnWidths (lua_State *L, int index, QString fname, int ncol) |
| static void | parsePrintOptions (lua_State *L, int index, QString fname, int &options, int *state) |
| static void | progressBar (int i, int size, int &mark, const GmLogCategory &logger, int freq=10) |
Additional Inherited Members | |
Protected Member Functions inherited from GmPrintUtils | |
| QString | center (QString val, int size) |
Static Protected Member Functions inherited from GmPrintUtils | |
| static void | checkOption (LuaTable &table, const char *field, int &options, int flag) |
Protected Attributes inherited from GmPrintUtils | |
| const GmLogCategory & | _logger |
| GmLogLevel | _level |
| int | _options |
| int | _firstGhostIndex |
Extension to GmPrintUtils for printing subelements and data at enriched Gauss points.
|
static |
Auxilliary function used to parse print options given in a Lua table. Extends GmPrintUtils::parsePrintOptions() to read aditional options.
The following fields are parsed in adition to those found in GmPrintUtils::parsePrintOptions():
'cartesian' – Should we print cartesian coordinates for sub-element vertixes instead of natural coordinates? Default = false. 'num_gauss' – Should we print a column with the number of Gauss points in the sub-element? Default = false.
| void XfemPrintUtils::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 logger and options. Tailored to print values stored in Gauss points for mesh subelements.
When requesting that integration points be printed (by setting GM_PRINT_CELL_EVAL_POINT in the options object), if the data columns do NOT share the seme set of integration rules, the point will not be printed and "Multi rule sets" will be printed instead
| mesh | The mesh. |
| dataList | List with accessors giving column values. |
| title | An optional title for the table. Will be printed only if the object options contain GM_PRINT_HEADER_TITLE. |
| columnWidths | Optional list containing column widths for the columns in dataList. If empty, each column will have its size defined by its info object. A value of 0 also means that the size should be calculated by the function. |
The dataList list stores GmGaussAccessor values instead of XfemGaussAccessor values to enable calling the inherited template methods addDataColumnSizes() and printColumnHeaders() which are not instanced for XfemGaussAccessor values in the base class.
1.8.15