    

 ## On this page

  

 

 # ImportSRBProject Class Reference

 Last update: 16.07.2025 

Import a Twin Builder Static ROM Builder (SRB) project. Expects a valid SRB project directory as input. [More...](class_import_s_r_b_project.xhtml#details)

## <a name="pub-methods"></a>Public Member Functions

 [import](class_import_s_r_b_project.xhtml#a73dd3f56399568385400db0c3fc08295) ([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b)) import the project data [More...](#a73dd3f56399568385400db0c3fc08295)  
  [ImportSRBProject](class_import_s_r_b_project.xhtml#add040c08f4345804c16209c10c14d011) (string project\_directory) default constructor [More...](#add040c08f4345804c16209c10c14d011)  
 <a id="a74b36e749ed3b693b484d81e53d1f711"></a> [setMeshMapper](class_import_s_r_b_project.xhtml#a74b36e749ed3b693b484d81e53d1f711) ([MeshMapperBase](class_mesh_mapper_base.xhtml) 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.   
 ## <a name="pub-attribs"></a>Public Attributes

<a id="ac174d37c7c014db3159b53ddfe625479"></a>string [first\_design\_ident](class_import_s_r_b_project.xhtml#ac174d37c7c014db3159b53ddfe625479) The design identifier of the first imported design. All designs are continuously appended after the first.   
 <a id="details" name="details"></a>## 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 &amp; Destructor Documentation

<a id="add040c08f4345804c16209c10c14d011"></a>## [◆ ](#add040c08f4345804c16209c10c14d011)ImportSRBProject()

 [ImportSRBProject](class_import_s_r_b_project.xhtml)  ( string  *project\_directory*) 

default constructor

Parameters project\_directorySRB project directory. Contains doe.csv and optional settings.json and points.bin 



## Member Function Documentation

<a id="a73dd3f56399568385400db0c3fc08295"></a>## [◆ ](#a73dd3f56399568385400db0c3fc08295)import()

 import  ( [Structure](class_structure.xhtml)  *database*) 

import the project data

Parameters databaseThe database where the project data is saved to.