Skip to main content
Part of Import defines information on imported data and files given a reference design

Public Types

Public Member Functions

Modify file list

Modify file item properties

Modify mesh mapper

Public Attributes

Detailed Description

defines information on imported data and files given a reference design This class contains settings for an example design directory (the base_path). These settings include file formats, data items to be imported etc. Note, the currently stored data must be kept “functional” at all times. If you add a new file using the appropriate function, this will take care for you. If you change the data items from outside (GUI etc.) you must use the function check() in order to approve the changes. If the changes are erroneous, the next addFIle-method call may lead to undefined behaviour.

Constructor & Destructor Documentation

ReferenceDesign()

Initializes the object with the base path given and sets further defaults. Parameters

Member Function Documentation

addFile_2dGrid()

Adds information from a CSV file with Grid information. Multiple data items per file are supported. If the file consists geometric information, it is checked on validity (with a warning and being added inactive). If the data items are already existing, their names will be changed. The vector is reordered. Parameters

addFile_3dGrid()

Adds information from a CSV file with Grid information. Multiple data items per file are supported. If the file consists geometric information, it is checked on validity (with a warning and being added inactive). If the data items are already existing, their names will be changed. The vector is reordered. Parameters

addFile_Abaqus()

Adds information from a file in Abaqus format. Multiple data items per file are supported. If the file consists geometric information, it is checked on validity (with a warning and being added inactive). If the data items are already existing, their names will be changed. The vector is reordered. Parameters

addFile_ANSYS_APDL()

Adds information from an ANSYS Mechanical APDL file either in APDL-style format, or in cdb blocked as well as unblocked format. Parameters

addFile_ANSYS_RST()

Adds information from an ANSYS binary structural or coupled-field analysis file. Parameters

addFile_ElementDataCSV()

Adds element data information from a file in CSV format. Only element data items are supported. If the data items are already existing, their names will be changed. The vector is reordered. Parameters

addFile_FLUENT_CSV()

adds information from a file in FLUENT result CSV format. Parameters

addFile_Image()

Adds information from a file in a pixel image format. Multiple data items per file are supported. It is checked on validity using the pixel dimensions (with a warning and being added inactive). If the data items are already existing, their names will be changed. The vector is reordered. Parameters

addFile_LSDyna_Dynain()

adds information from a file in LS-DYNA Dynain format. Multiple data items per file are supported. If the file consists geometric information, it is checked on validity (with a warning and being added inactive). If the data items are already existing, their names will be changed. The vector is reordered. Parameters

addFile_LSPrePost()

adds information from a file in LS-PrePost (LS-DYNA) format. Multiple data items per file are supported. If the file consists geometric information, it is checked on validity (with a warning and being added inactive). If the data items are already existing, their names will be changed. The vector is reordered. Parameters

addFile_NastranInput()

Adds information from a file in NASTRAN format. The file will be read and interpreted as input file (*.dat, *bdf) with a clearly and reliable defined data structure described in MSC Nastran Quick Reference Guide Multiple data items per file are supported. If the file consists geometric information, it is checked on validity (with a warning and being added inactive). Parameters

addFile_NodeDataCSV()

Adds node data information from a file in CSV format. Only node data items are supported. If the data items are already existing, their names will be changed. The vector is reordered. Parameters

addFile_PamstampDataAsc()

Adds information from a file in NASTRAN format. The file will be read and interpreted as data file. At this time we don’t know any standard or at least a common format for Nastran output data. In fact, we don’t know where the data format comes from… Multiple data items per file are supported. If the file consists geometric information, it is checked on validity (with a warning and being added inactive). If the data items are already existing, their names will be changed. The vector is reordered. Parameters

addFile_PERMAS()

Adds information from a file in PERMAS format. Multiple data items per file are supported. If the file consists geometric information, it is checked on validity (with a warning and being added inactive). If the data items are already existing, their names will be changed. The vector is reordered. Parameters

addFile_SignalDataCSV()

Adds node data information from a signal file in CSV format. Only node data items are supported. If the data items are already existing, their names will be changed. The vector is reordered. Only the data and not the mesh will be imported. Parameters

addFile_SignalMeshCSV()

Adds node data information from a signal file in CSV format. Only node data items are supported. If the data items are already existing, their names will be changed. The vector is reordered. Both data and mesh will be imported. Parameters

addFile_STL()

Adds information from a file in STL format. Only geometric information can be imported. STL import makes only sense in combination with incompatible mesh mappers. Parameters

addFile_VTK()

Adds information from a file in VTK format. Multiple data items per file are supported. If the file consists geometric information, it is checked on validity (with a warning and being added inactive). If the data items are already existing, their names will be changed. The vector is reordered. Parameters

addItem()

adds a single item to trhe list of import data Parameters
This method is used for directly modifying the data. It is not intended to be used by the user/GUI, but by generateScriptOfSettingsDefinition().

check()

checks if the settings are valid and produces an error. Parameters

generateScriptOfSettingsDefinition()

Generates a Lua script that is used to build up this object. Returns The script code. Ends with a newline.
This script works only for the global reference design (due to restrictions in itself and other classes)

getFiles()

assembles the complete list of files being known to this class This is a compact view onto the contained data, since multiple items may be imported from a single file. Returns a list of filenames. The file names are relative to the base path.

getFilesToImport()

Assembles a list of files which are to be imported (only the files for which one selected “import” are exported here) This is a compact view onto the contained data, since multiple items may be imported from a single file and some files may be inactive. Returns a list of filenames. The file names are relative to the base path.

getItemIndex()

gets the index of the respective item if existing Parameters Returns index to the item in the vector items. Throws an exception if not existing

getItemsForFile()

assembles a list of items which are to be imported from a specific file Parameters Returns a list of integer indices in ascending order. Each index refers to an Item in the vector items. If no data is to be imported from the requested file, an empty list is returned.

import()

imports a design from disk Parameters Returns Returns an projection error report for each imported quantity. If no projection error occured during import, an empty quantity report will be returned. See DesignProjectionErrorReport for further details If an error appears during import, an exception is thrown. Nevertheless, the method tries to import as much data as possible before quit.

meshMapper()

Returns a reference to the (in)compatible mesh mapper object

meshMapperRef()

Returns a modifyable reference to the (in)compatible mesh mapper object

removeFileFromList()

removes all import data from item list which is associated with the sepcified file Parameters Exceptions

setBasePath()

sets a new base path. This includes changing the relative path definition of the already parsed files. Parameters

setImportIdent()

Sets the new ident used for import The ident is automatically modified to be unique and allowed. Further, the list of items is resorted! Parameters

setImportItem()

Sets if the item is to be imported There is no error checking! Parameters

setMeshMapper()

sets the (in)compatible mesh mapper object Parameters

Member Data Documentation

base_path

Specifies the base path. Must be changed only via setBasePath()! base_path should always point to an existing absolute filesystem directory otherwise an exception may occour during program execution.