ImportSRBProject Class Reference
Last update: 16.07.2025Import a Twin Builder Static ROM Builder (SRB) project. Expects a valid SRB project directory as input. More...
Public Member Functions | |
| import (Structure database) | |
| import the project data More... | |
| ImportSRBProject (string project_directory) | |
| default constructor More... | |
| setMeshMapper (MeshMapperBase mapper) | |
| The mesh mapper used if an already existing reference mesh is incompatible with the imported data. This setting is ignored if no reference mesh has been set already. | |
Public Attributes | |
| string | first_design_ident |
| The design identifier of the first imported design. All designs are continuously appended after the first. | |
Detailed Description
Import a Twin Builder Static ROM Builder (SRB) project. Expects a valid SRB project directory as input.
An SRB Project contains the following files:
- doe.csv: fiel design ('snapshot') file names and associated scalar input parameters.
- snapshots/*.bin: field design files in SRB binary format.
- points.bin (optional): mesh point cloud in SRB binary format.
- settings.json (optional): Metadata. SoS parses the field quantity identifier and the named selections from this file.
If the database is empty, import(database) sets the reference mesh, imports named selections, node field designs and scalar input parameters. If the database already contains a reference mesh, the existing reference mesh and the SRB mesh point cloud are compared. In case they differ, and the existing reference mesh contains FEM elements, a point to volume mesh mapping is performed. Field/scalar designs are appended to the database starting with first_design_ident.
Constructor & Destructor Documentation
◆ ImportSRBProject()
| ImportSRBProject | ( | string | project_directory | ) |
default constructor
- Parameters
-
project_directory SRB project directory. Contains doe.csv and optional settings.json and points.bin
Member Function Documentation
◆ import()
| import | ( | Structure | database | ) |
import the project data
- Parameters
-
database The database where the project data is saved to.