> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Import

Parse files and import data.

## Classes

| Type | Name |
| - | - |
| class | [CreateSimulationArchive](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_create_simulation_archive.md) A struct collecting export information for random field simulation data. |
| class | [ImportCoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_import_co_p.md) imports [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) values of amplitudes from CSV file |
| class | [ImportCSV](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_import_c_s_v.md) A class collecting import information for a csv file. |
| class | [ImportDesigns](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_import_designs.md) A class collecting import information for various design directories. |
| struct | [ImportItemInfo](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_import_item_info.md) defines a data item which was found in an input file |
| struct | [ImportOMDB](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_import_o_m_d_b.md) Stores settings for loading optiSLang omdb files. Limited to scalar parameters and responses. |
| struct | [ImportOptiSLangBinary](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_import_opti_s_lang_binary.md) stores settings for loading optiSLang binary files |
| class | [ImportOptiSLangSignal](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_import_opti_s_lang_signal.md) Sets up an SoS project for a single user defined optiSLang 3 signal identifier. |
| class | [ImportSRBProject](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_import_s_r_b_project.md) Import a Twin Builder Static ROM Builder (SRB) project. Expects a valid SRB project directory as input. |
| struct | [LoadDataBaseSettings](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_load_data_base_settings.md) stores settings for [loadDataBase()](#ga70a2e69b4c13a55f2ce33aa4c3b2d4d7) |
| class | [ModifyMeshBase](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_modify_mesh_base.md) Base settings that are provided for all modifier classes that change mesh coorsinates. |
| class | [PrepareRandomFieldSimulation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_prepare_random_field_simulation.md) A struct collecting export information for random field simulation data. |
| class | [ReferenceDesign](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_reference_design.md) defines information on imported data and files given a reference design |

## Functions

| Type | Name |
| - | - |
| [MetaStructure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_meta_structure.md) | [createSimpleStructuredGrid](#gad28feb79a0fc788de320a476a0d7cb7b) (number num\_x, number min\_x, number max\_x, number num\_y=1, number min\_y=0.0, number max\_y=0.0, number num\_z=1, number min\_z=0.0, number max\_z=0.0) creates a structured grid in 1d/2d/3d using equal node spacing along each axis direction |
| | [importElementSet\_CSV](#ga66ceb34a6bc68c6993953ffd67ce97a6) ([MetaStructure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_meta_structure.md) meta, string ident, string filename) Imports an element set from a CSV file. |
| | [importElementSet\_CSV](#gafdbef8d8935b5de6bd9377dccb7be86b) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string part\_ident, string ident, string filename) Imports a element set from a CSV file. |
| | [importElementSet\_Indices](#gabf01fed99ffd7261b2027a3ae856c530) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string part\_ident, string ident, [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) indices) Imports a element set from a given index vector. |
| [MetaStructure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_meta_structure.md) | [importMesh\_2dGrid](#gad78c8096f803a0008c9e4b4d3b330f1f) (string filename) Imports the 2D mesh from a single CSV-Grid file. |
| [MetaStructure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_meta_structure.md) | [importMesh\_3dGrid](#ga0cc4f14b2aaa45983256eb28f0ed3c16) (string filename) Imports the 3D mesh from a single CSV-Grid file. |
| [MetaStructure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_meta_structure.md) | [importMesh\_Abaqus](#ga40fccd0835da19ea4dd0d995608be09f) (string filename) Imports the mesh from a single Abaqus file. |
| [MetaStructure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_meta_structure.md) | [importMesh\_ANSYS\_APDL](#ga40963f4f654afc7ae4906dce1f40d185) (string filename) Imports the mesh from a single ANSYS APDL input file. |
| [MetaStructure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_meta_structure.md) | [importMesh\_ANSYS\_RST](#ga32b4fc9148e08b68c4c9274915504e44) (string filename) Imports the mesh from a single ANSYS RST file. |
| [MetaStructure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_meta_structure.md) | [importMesh\_Fluent\_CSV](#ga16be129594b837ef9be8be31935578ee) (string filename) Imports the mesh from a single FLUENT CSV point cloud file. |
| [MetaStructure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_meta_structure.md) | [importMesh\_Image](#gada330b78853aa13ca6ceb329344d6f34) (string filename) imports the mesh from a single pixel-image file |
| [MetaStructure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_meta_structure.md) | [importMesh\_LSDynaK](#ga1b3d4d7a9aa07b994d5788f64dce55a3) (string filename) imports the mesh from a single LS-DYNA K file |
| [MetaStructure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_meta_structure.md) | [importMesh\_Nastran](#gaa36ee87ffdbd091817b26c2dc035a9b8) (string filename) imports the mesh from a single Nastran file |
| [MetaStructure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_meta_structure.md) | [importMesh\_PERMAS](#gaef57434c059ee8e1b9072d2edf8be248) (string filename) Imports the mesh from a single PERMAS file. |
| [MetaStructure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_meta_structure.md) | [importMesh\_Signal](#gaeb71fd0d6c0d94526ddf10f296d8c44f) (string filename) Imports the mesh from a single CSV-Signal file. |
| [MetaStructure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_meta_structure.md) | [importMesh\_SRB](#gaea678feba221b77bf7ccde1ae3f4fcaa) (string filename) Imports the mesh from a Static ROM Builder points.bin file. |
| [MetaStructure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_meta_structure.md) | [importMesh\_STL](#gab1c0c8bcc655f87c7493d19de8b3aa0d) (string filename, bool merge\_nodes=true, number relative\_node\_distance=1e-4) imports the mesh from a single STL file (either ASCII or binary) |
| [MetaStructure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_meta_structure.md) | [importMesh\_VTK](#ga70974560197a992fc4d14f8e48794833) (string filename) Imports the mesh from a single VTK file. |
| | [importNodeSet\_CSV](#gac974302ab2a7cfee453d7336553b9feb) ([MetaStructure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_meta_structure.md) meta, string ident, string filename) Imports a node set from a CSV file. |
| | [importNodeSet\_CSV](#ga7eec79f2e97c458c456e8dedeb5f33ce) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string part\_ident, string ident, string filename) Imports a node set from a CSV file. |
| | [importNodeSet\_Indices](#ga2bb1834a5c2918fb740e7a08b4b39162) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string part\_ident, string ident, [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) indices) Imports a node set from a given index vector. |
| | [loadDataBase](#ga70a2e69b4c13a55f2ce33aa4c3b2d4d7) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), [LoadDataBaseSettings](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_load_data_base_settings.md) settings) loads data into database from file. The data will be replaced |
| [ReferenceDesign](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_reference_design.md) | [referenceDesign](#gaeebdfe2e2b08f67a2a3e5c9873171679) () gives access to the reference design information |
| | [setReferenceMesh](#ga380830b2ab7587d1c03c5ea245d0d139) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), [MetaStructure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_meta_structure.md) mesh, bool do\_create\_mesh=true) sets the reference mesh It throws an exception if this is somehow not possible. |

## Detailed Description

Parse files and import data.

## Function Documentation

### createSimpleStructuredGrid()

```cpp theme={null}
MetaStructure createSimpleStructuredGrid(
    number num_x,
    number min_x,
    number max_x,
    number num_y = 1,
    number min_y = 0.0,
    number max_y = 0.0,
    number num_z = 1,
    number min_z = 0.0,
    number max_z = 0.0
)
```

creates a structured grid in 1d/2d/3d using equal node spacing along each axis direction

**Parameters**

| Name | Description |
| - | - |
| num\_x | number of grid points along x axis |
| min\_x | smallest coordinate along x axis |
| max\_x | largest coordinate along x axis |
| num\_y | number of grid points along y axis |
| min\_y | smallest coordinate along y axis |
| max\_y | largest coordinate along y axis |
| num\_z | number of grid points along z axis |
| min\_z | smallest coordinate along z axis |
| max\_z | largest coordinate along z axis |

**Returns**

a meta structure containing the grid

### importElementSet\_CSV() \[1/2]

```cpp theme={null}
importElementSet_CSV(
    MetaStructure meta,
    string ident,
    string filename
)
```

Imports an element set from a CSV file.

**Parameters**

| Name | Description |
| - | - |
| meta | The meta structure to which the set definition shall be added to |
| ident | The ident string that shall be used for the imported set definition |
| filename | The absolute CSV file path where the set definition can be found |

### importElementSet\_CSV() \[2/2]

```cpp theme={null}
importElementSet_CSV(
    Structure database,
    string part_ident,
    string ident,
    string filename
)
```

Imports a element set from a CSV file.

**Parameters**

| Name | Description |
| - | - |
| database | The database to which the set definition shall be added to |
| part\_ident | The part\_ident string that shall be used for the imported set definition |
| ident | The ident string that shall be used for the imported set definition |
| filename | The absolute CSV file path where the set definition can be found |

### importElementSet\_Indices()

```cpp theme={null}
importElementSet_Indices(
    Structure database,
    string part_ident,
    string ident,
    Matrix indices
)
```

Imports a element set from a given index vector.

**Parameters**

| Name | Description |
| - | - |
| database | The database to which the set definition shall be added to |
| part\_ident | The part\_ident string that shall be used for the imported set definition |
| ident | The ident string that shall be used for the imported set definition |
| indices | The global indices (with respect to the current reference element set) |

### importMesh\_2dGrid()

```cpp theme={null}
MetaStructure importMesh_2dGrid(string filename)
```

Imports the 2D mesh from a single CSV-Grid file.

**Parameters**

| Name | Description |
| - | - |
| filename | Defines the input file |

**Returns**

A meta structure containing the mesh

### importMesh\_3dGrid()

```cpp theme={null}
MetaStructure importMesh_3dGrid(string filename)
```

Imports the 3D mesh from a single CSV-Grid file.

**Parameters**

| Name | Description |
| - | - |
| filename | Defines the input file |

**Returns**

A meta structure containing the mesh

### importMesh\_Abaqus()

```cpp theme={null}
MetaStructure importMesh_Abaqus(string filename)
```

Imports the mesh from a single Abaqus file.

**Parameters**

| Name | Description |
| - | - |
| filename | Defines the input file |

**Returns**

A meta structure containing the mesh

### importMesh\_ANSYS\_APDL()

```cpp theme={null}
MetaStructure importMesh_ANSYS_APDL(string filename)
```

Imports the mesh from a single ANSYS APDL input file.

**Parameters**

| Name | Description |
| - | - |
| filename | Defines the result file path |

**Returns**

A meta structure containing the mesh

### importMesh\_ANSYS\_RST()

```cpp theme={null}
MetaStructure importMesh_ANSYS_RST(string filename)
```

Imports the mesh from a single ANSYS RST file.

**Parameters**

| Name | Description |
| - | - |
| filename | Defines the result file path |

**Returns**

A meta structure containing the mesh

### importMesh\_Fluent\_CSV()

```cpp theme={null}
MetaStructure importMesh_Fluent_CSV(string filename)
```

Imports the mesh from a single FLUENT CSV point cloud file.

**Parameters**

| Name | Description |
| - | - |
| filename | Defines the input file |

**Returns**

A meta structure containing the mesh

### importMesh\_Image()

```cpp theme={null}
MetaStructure importMesh_Image(string filename)
```

imports the mesh from a single pixel-image file

**Parameters**

| Name | Description |
| - | - |
| filename | defines the input file |

**Returns**

a meta structure containing the mesh

### importMesh\_LSDynaK()

```cpp theme={null}
MetaStructure importMesh_LSDynaK(string filename)
```

imports the mesh from a single LS-DYNA K file

**Parameters**

| Name | Description |
| - | - |
| filename | defines the input file |

**Returns**

a meta structure containing the mesh

### importMesh\_Nastran()

```cpp theme={null}
MetaStructure importMesh_Nastran(string filename)
```

imports the mesh from a single Nastran file

**Parameters**

| Name | Description |
| - | - |
| filename | defines the input file |

**Returns**

a meta structure containing the mesh

### importMesh\_PERMAS()

```cpp theme={null}
MetaStructure importMesh_PERMAS(string filename)
```

Imports the mesh from a single PERMAS file.

**Parameters**

| Name | Description |
| - | - |
| filename | defines the input file |

**Returns**

A meta structure containing the mesh

### importMesh\_Signal()

```cpp theme={null}
MetaStructure importMesh_Signal(string filename)
```

Imports the mesh from a single CSV-Signal file.

**Parameters**

| Name | Description |
| - | - |
| filename | Defines the input file |

**Returns**

A meta structure containing the mesh

### importMesh\_SRB()

```cpp theme={null}
MetaStructure importMesh_SRB(string filename)
```

Imports the mesh from a Static ROM Builder points.bin file.

**Parameters**

| Name | Description |
| - | - |
| filename | Defines the input file |

**Returns**

A meta structure containing the mesh

### importMesh\_STL()

```cpp theme={null}
MetaStructure importMesh_STL(
    string filename,
    bool merge_nodes = true,
    number relative_node_distance = 1e-4
)
```

imports the mesh from a single STL file (either ASCII or binary)

**Parameters**

| Name | Description |
| - | - |
| filename | defines the input file |

**Returns**

a meta structure containing the mesh

**Parameters**

| Name | Description |
| - | - |
| merge\_nodes | Defines if nodes with nearly identrical coordinates are merged. If false, each node belongs to eactly one element. If true, one may erroneously merge nodes which do not belong together (eg. if two separate bodies are very close to each other) |
| relative\_node\_distance | The minimum relative distance between two nodes. If a distance between two nodes is below the tolerance, the nodes will be merged. The distance is defined by this factor multiplied with the largest triangle edge length in the model. |

### importMesh\_VTK()

```cpp theme={null}
MetaStructure importMesh_VTK(string filename)
```

Imports the mesh from a single VTK file.

**Parameters**

| Name | Description |
| - | - |
| filename | Defines the input file |

**Returns**

A meta structure containing the mesh

### importNodeSet\_CSV() \[1/2]

```cpp theme={null}
importNodeSet_CSV(
    MetaStructure meta,
    string ident,
    string filename
)
```

Imports a node set from a CSV file.

**Parameters**

| Name | Description |
| - | - |
| meta | The meta structure to which the set definition shall be added to |
| ident | The ident string that shall be used for the imported set definition |
| filename | The absolute CSV file path where the set definition can be found |

### importNodeSet\_CSV() \[2/2]

```cpp theme={null}
importNodeSet_CSV(
    Structure database,
    string part_ident,
    string ident,
    string filename
)
```

Imports a node set from a CSV file.

**Parameters**

| Name | Description |
| - | - |
| database | The database to which the set definition shall be added to |
| part\_ident | The part\_ident string that shall be used for the imported set definition |
| ident | The ident string that shall be used for the imported set definition |
| filename | The absolute CSV file path where the set definition can be found |

### importNodeSet\_Indices()

```cpp theme={null}
importNodeSet_Indices(
    Structure database,
    string part_ident,
    string ident,
    Matrix indices
)
```

Imports a node set from a given index vector.

**Parameters**

| Name | Description |
| - | - |
| database | The database to which the set definition shall be added to |
| part\_ident | The part\_ident string that shall be used for the imported set definition |
| ident | The ident string that shall be used for the imported set definition |
| indices | The global indices (with respect to the current reference node set) |

### loadDataBase()

```cpp theme={null}
loadDataBase(
    Structure database,
    LoadDataBaseSettings settings
)
```

loads data into database from file. The data will be replaced

**Parameters**

| Name | Description |
| - | - |
| settings | contains the settings |
| database | the database where all objects are to be stored |

### referenceDesign()

```cpp theme={null}
ReferenceDesign referenceDesign()
```

gives access to the reference design information

**Returns**

a reference to the object stored in

**See also**

application\_data

### setReferenceMesh()

```cpp theme={null}
setReferenceMesh(
    Structure database,
    MetaStructure mesh,
    bool do_create_mesh = true
)
```

sets the reference mesh It throws an exception if this is somehow not possible.

**Parameters**

| Name | Description |
| - | - |
| mesh | the reference mesh as a meta structure |
| database | the database to be modified |
| do\_create\_mesh | If this is false, then no FEM mesh is built up from the meta structure. Use this mode carefully, since SoS GUI, visualization and algorithms may not work properly. This mode is used for fast simulation of random field designs. |
