    

 ## On this page

  

 

 # ExportToMOP Class Reference

 Last update: 16.07.2025 

A struct collecting export information for FMOP/F-CoP in optiSLang. [More...](class_export_to_m_o_p.xhtml#details)

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

 [check](class_export_to_m_o_p.xhtml#a47c34ec1e578c2ce27cf1c5fcd0d1704) ([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b)) Checks validity of these data. [More...](#a47c34ec1e578c2ce27cf1c5fcd0d1704)  
  [ExportToMOP](class_export_to_m_o_p.xhtml#a8c9ce3a6bacc3ac24e01814cb01e1fa2) (string optislang\_input, string the\_path) Initialized the object with default values. [More...](#a8c9ce3a6bacc3ac24e01814cb01e1fa2)  
 bool [outputFilesExisting](class_export_to_m_o_p.xhtml#af8ef70826654ecf2af46c75fb83f925a) ()  [save](class_export_to_m_o_p.xhtml#a6a338dc4344270fcbccadf5667ef12f9) ([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b)) Exports all the data and scripts communicate [MOP](class_m_o_p.xhtml "a group of random fields belonging together (either a single random field, or multiple cross-correlat...") definitions between SoS and optiSLAng. [More...](#a6a338dc4344270fcbccadf5667ef12f9)  
 ## <a name="pub-static-methods"></a>Static Public Member Functions

static [checkSelectedAmplitudes](class_export_to_m_o_p.xhtml#ac1d7acce9d248bcaff1bca550f42aa44) ([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b), [DataObjectContainer](class_data_object_container.xhtml) selected\_scalars) checks if the selected scalar data contain valid amplitudes only [More...](#ac1d7acce9d248bcaff1bca550f42aa44)  
 ## <a name="pub-attribs"></a>Public Attributes

<a id="aa2d28e7e85f125f59d27e4fbedbb600b"></a>bool [copy\_results](class_export_to_m_o_p.xhtml#aa2d28e7e85f125f59d27e4fbedbb600b) If true, then the result database will also contain all result objects which were computed so far. Default: false.   
 <a id="a90c11fb8a955197d99f5dfc621bd2856"></a>string [database\_file](class_export_to_m_o_p.xhtml#a90c11fb8a955197d99f5dfc621bd2856) The file name of the database that stores the simulation data (relative to path)   
 <a id="a970a74a4c019ff340a64d03415d87e5e"></a>std::vector&lt; string &gt; [element\_quantities](class_export_to_m_o_p.xhtml#a970a74a4c019ff340a64d03415d87e5e) The element data quantity idents to be exported (all quantities must be associated with random fields for which amplitude samples were generated)   
 <a id="a4d44f4c862c4630598b8007eaef0b411"></a>string [import\_script\_file](class_export_to_m_o_p.xhtml#a4d44f4c862c4630598b8007eaef0b411) The file name of the script to be executed to assemble the F-CoP from amplitude [CoP](struct_co_p.xhtml "Reference implementation for a quality metric for MOP models. ") (relative to path)   
 number [min\_cop](class_export_to_m_o_p.xhtml#a9c4157039d23c5bdda684578b63c50e5) Defines the minimum [CoP](struct_co_p.xhtml "Reference implementation for a quality metric for MOP models. ") 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...](#a9c4157039d23c5bdda684578b63c50e5)  
 <a id="a2ecca64c04b8d43f838b3aa19c191380"></a>std::vector&lt; string &gt; [node\_quantities](class_export_to_m_o_p.xhtml#a2ecca64c04b8d43f838b3aa19c191380) The node data quantity idents to be exported (all quantities must be associated with random fields for which amplitude samples were generated)   
 <a id="aac275a93401ccbf6426cb70296422fe8"></a>string [optislang\_input\_file](class_export_to_m_o_p.xhtml#aac275a93401ccbf6426cb70296422fe8) The name of the optiSLang binary file that is parsed and will serve as a template for the output optiSLang bin file (absolute path)   
 <a id="a09209613b366e22bbeff2c7455c55a40"></a>string [optislang\_output\_file](class_export_to_m_o_p.xhtml#a09209613b366e22bbeff2c7455c55a40) The name of the optiSLang binary file that will contain the amplitudes (as responses) (relative to path)   
 <a id="a46c20eb2a26abeb1e934cd66e1dd6484"></a>string [path](class_export_to_m_o_p.xhtml#a46c20eb2a26abeb1e934cd66e1dd6484) The output path. Must be given as an absolute path.   
 <a id="a2f8b3cba47ad64fb6bda4b6428a032d3"></a>bool [replace\_files](class_export_to_m_o_p.xhtml#a2f8b3cba47ad64fb6bda4b6428a032d3) If true, already existing files are to be replaced.   
 <a id="a289361395c457f67d04eaa1f1e498628"></a>std::vector&lt; string &gt; [scalar\_quantities](class_export_to_m_o_p.xhtml#a289361395c457f67d04eaa1f1e498628) The scalar data quantity idents to be exported (all quantities must be associated with random fields for which amplitude samples were generated)   
 <a id="details" name="details"></a>## Detailed Description

A struct collecting export information for FMOP/F-CoP in optiSLang.



## Constructor &amp; Destructor Documentation

<a id="a8c9ce3a6bacc3ac24e01814cb01e1fa2"></a>## [◆ ](#a8c9ce3a6bacc3ac24e01814cb01e1fa2)ExportToMOP()

 [ExportToMOP](class_export_to_m_o_p.xhtml)  ( string  *optislang\_input*,    string  *the\_path*   ) 

Initialized the object with default values.

Parameters optislang\_inputThe name of the optiSLang binary template file (to be used as a template for the output file) the\_pathDefines the output path 



## Member Function Documentation

<a id="a47c34ec1e578c2ce27cf1c5fcd0d1704"></a>## [◆ ](#a47c34ec1e578c2ce27cf1c5fcd0d1704)check()

 check  ( [Structure](class_structure.xhtml)  *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 databasethe data base where the data is stored 



<a id="ac1d7acce9d248bcaff1bca550f42aa44"></a>## [◆ ](#ac1d7acce9d248bcaff1bca550f42aa44)checkSelectedAmplitudes()

 static checkSelectedAmplitudes  ( [Structure](class_structure.xhtml)  *database*,    [DataObjectContainer](class_data_object_container.xhtml)  *selected\_scalars*   )   static 

checks if the selected scalar data contain valid amplitudes only

Parameters databasethe data base where the data is stored selected\_scalarsthe selected scalar quantities that are ALL amplitudes to be used/exported. Exceptions exceptionon error. 



<a id="af8ef70826654ecf2af46c75fb83f925a"></a>## [◆ ](#af8ef70826654ecf2af46c75fb83f925a)outputFilesExisting()

 bool outputFilesExisting  ( ) 

Returnstrue if at least one of the output files are existing. 



<a id="a6a338dc4344270fcbccadf5667ef12f9"></a>## [◆ ](#a6a338dc4344270fcbccadf5667ef12f9)save()

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

Exports all the data and scripts communicate [MOP](class_m_o_p.xhtml "a group of random fields belonging together (either a single random field, or multiple cross-correlat...") definitions between SoS and optiSLAng.

Parameters databasethe data base where all data is contained. 



## Member Data Documentation

<a id="a9c4157039d23c5bdda684578b63c50e5"></a>## [◆ ](#a9c4157039d23c5bdda684578b63c50e5)min\_cop

 number min\_cop

Defines the minimum [CoP](struct_co_p.xhtml "Reference implementation for a quality metric for MOP models. ") 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.

This value will be exported to the script file that calls [ImportCoP](class_import_co_p.xhtml "imports CoP values of amplitudes from CSV file "). Default: 0.0