ExportToMOP Class Reference
Last update: 16.07.2025A struct collecting export information for FMOP/F-CoP in optiSLang. More...
Public Member Functions | |
| check (Structure database) | |
| Checks validity of these data. More... | |
| ExportToMOP (string optislang_input, string the_path) | |
| Initialized the object with default values. More... | |
| bool | outputFilesExisting () |
| save (Structure database) | |
| Exports all the data and scripts communicate MOP definitions between SoS and optiSLAng. More... | |
Static Public Member Functions | |
| static | checkSelectedAmplitudes (Structure database, DataObjectContainer selected_scalars) |
| checks if the selected scalar data contain valid amplitudes only More... | |
Public Attributes | |
| bool | copy_results |
| If true, then the result database will also contain all result objects which were computed so far. Default: false. | |
| string | database_file |
| The file name of the database that stores the simulation data (relative to path) | |
| std::vector< string > | element_quantities |
| The element data quantity idents to be exported (all quantities must be associated with random fields for which amplitude samples were generated) | |
| string | import_script_file |
| The file name of the script to be executed to assemble the F-CoP from amplitude CoP (relative to path) | |
| number | min_cop |
| Defines the minimum CoP being required for an input to be announced in the data table. If the total F-CoP is lower than this limit, it will not be created. More... | |
| std::vector< string > | node_quantities |
| The node data quantity idents to be exported (all quantities must be associated with random fields for which amplitude samples were generated) | |
| string | optislang_input_file |
| The name of the optiSLang binary file that is parsed and will serve as a template for the output optiSLang bin file (absolute path) | |
| string | optislang_output_file |
| The name of the optiSLang binary file that will contain the amplitudes (as responses) (relative to path) | |
| string | path |
| The output path. Must be given as an absolute path. | |
| bool | replace_files |
| If true, already existing files are to be replaced. | |
| std::vector< string > | scalar_quantities |
| The scalar data quantity idents to be exported (all quantities must be associated with random fields for which amplitude samples were generated) | |
Detailed Description
A struct collecting export information for FMOP/F-CoP in optiSLang.
Constructor & Destructor Documentation
◆ ExportToMOP()
| ExportToMOP | ( | string | optislang_input, |
| string | the_path | ||
| ) |
Initialized the object with default values.
- Parameters
-
optislang_input The name of the optiSLang binary template file (to be used as a template for the output file) the_path Defines the output path
Member Function Documentation
◆ check()
| check | ( | Structure | database | ) |
Checks validity of these data.
If any of the specified directories or files does not exist, an exception is thrown It further checks if any of the objects to be exported does not exist.
- Parameters
-
database the data base where the data is stored
◆ checkSelectedAmplitudes()
|
static |
checks if the selected scalar data contain valid amplitudes only
- Parameters
-
database the data base where the data is stored selected_scalars the selected scalar quantities that are ALL amplitudes to be used/exported.
- Exceptions
-
exception on error.
◆ outputFilesExisting()
| bool outputFilesExisting | ( | ) |
- Returns
- true if at least one of the output files are existing.
◆ save()
| save | ( | Structure | database | ) |
Exports all the data and scripts communicate MOP definitions between SoS and optiSLAng.
- Parameters
-
database the data base where all data is contained.