    

 ## On this page

  

 

 # Export

 Last update: 16.07.2025 

Export data to various file formats. [More...](#details)

## <a name="nested-classes"></a>Classes

struct [ANSYS\_Mechanical\_DSDAT\_Settings](struct_a_n_s_y_s___mechanical___d_s_d_a_t___settings.xhtml) contains settings for ANSYS DS.DAT exporter [More...](struct_a_n_s_y_s___mechanical___d_s_d_a_t___settings.xhtml#details)  
 struct [DynainFileParser](struct_dynain_file_parser.xhtml) Settings for the Dynain exporter. [More...](struct_dynain_file_parser.xhtml#details)  
 class [ExportCSV](class_export_c_s_v.xhtml) Exports scalar data to a CSV file. [More...](class_export_c_s_v.xhtml#details)  
 class [ExportCSVField&lt; TYPE &gt;](class_export_c_s_v_field.xhtml) Exports SoS field data to a CSV text file. [More...](class_export_c_s_v_field.xhtml#details)  
 class [ExportCSVScalar](class_export_c_s_v_scalar.xhtml) Exports scalar data to a CSV file. [More...](class_export_c_s_v_scalar.xhtml#details)  
 class [ExportDesigns](class_export_designs.xhtml) A struct collecting export information for various design directories. [More...](class_export_designs.xhtml#details)  
 struct [ExportGeometry](struct_export_geometry.xhtml) Defines the interface for exporting a deformed geometry to a file The coordinates to be exported are either: [More...](struct_export_geometry.xhtml#details)  
 struct [ExportItemInfo](struct_export_item_info.xhtml) defines a single data item which was may be exported to a single existing output file. It encapsulates information being found on this data item in the specific file. It can further be configured to be exported. [More...](struct_export_item_info.xhtml#details)  
 struct [ExportOptiSLangBinaryScalars](struct_export_opti_s_lang_binary_scalars.xhtml) stores settings for export to optiSLang bin file [More...](struct_export_opti_s_lang_binary_scalars.xhtml#details)  
 class [ExportReferenceDesign](class_export_reference_design.xhtml) defines information on imported data and files given a reference design This class contains settings for an example design directory (the base\_path). These settings include file formats, data items to be imported etc. [More...](class_export_reference_design.xhtml#details)  
 struct [ExportScriptForComputingAmplitudesFromField](struct_export_script_for_computing_amplitudes_from_field.xhtml) A struct collecting import information for generating a script that converts field data into random field amplitudes. [More...](struct_export_script_for_computing_amplitudes_from_field.xhtml#details)  
 class [ExportSignalsSettings](class_export_signals_settings.xhtml) Stores settings for export signals to a couple of CSV files. [More...](class_export_signals_settings.xhtml#details)  
 class [ExportToMOP](class_export_to_m_o_p.xhtml) A struct collecting export information for FMOP/F-CoP in optiSLang. [More...](class_export_to_m_o_p.xhtml#details)  
 struct [SaveDataBaseSettings](struct_save_data_base_settings.xhtml) stores settings for [saveDataBase()](group__export.xhtml#ga5c0d54fd5913c33c895ffae6be1b079c "saves all data of database to file ") [More...](struct_save_data_base_settings.xhtml#details)  
 ## <a name="func-members"></a>Functions

<a id="ga1caa71bb95e94bd18a6288d5e1b86003"></a> **checkExportLSDynaK** (string filename, string filename\_on\_output, [Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b), [DynainFileParser::ItemSet](struct_dynain_file_parser.xhtml#a359f18d1575aafa537983b824c465b7b) modified\_items)  [exportLSDynaK](group__export.xhtml#ga4da1dd8f029f998bddafafbc50d50756) (string filename, [DynainFileParser](struct_dynain_file_parser.xhtml) settings, [Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b)) exports selected field data objects to a Dynain file [More...](#ga4da1dd8f029f998bddafafbc50d50756)  
 template&lt;dataobject\_types TYPE&gt; std::ostream [operator&lt;&lt;](group__export.xhtml#ga87e1513fbe18a1622b984306c3127356) (std::ostream os, [ExportCSVField](class_export_c_s_v_field.xhtml)&lt; TYPE &gt; field) Writes a string representation of an [ExportCSV](class_export_c_s_v.xhtml "Exports scalar data to a CSV file. ") object to the stream object given. [More...](#ga87e1513fbe18a1622b984306c3127356)  
  [saveDataBase](group__export.xhtml#ga5c0d54fd5913c33c895ffae6be1b079c) ([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b), [SaveDataBaseSettings](struct_save_data_base_settings.xhtml) settings) saves all data of database to file [More...](#ga5c0d54fd5913c33c895ffae6be1b079c)  
 <a id="ga2b63e3be67c6b2f0a7fe672f587053a6"></a> **template** (ExportCSVFieldNode) [ExportCSVField](class_export_c_s_v_field.xhtml)&lt; [NODE\_DATA](group__data.xhtml#gga1bebf1e22deb3cd41d7d99ddcdb15379a2bccb499db6de63e558b75b39da3d482) &gt; <a id="gabf1202e7673e0200bbff795fabc03100"></a> **template** (ExportCSVFieldElement) [ExportCSVField](class_export_c_s_v_field.xhtml)&lt; [ELEMENT\_DATA](group__data.xhtml#gga1bebf1e22deb3cd41d7d99ddcdb15379ae9445a58a2c3cd515f2058cbd3117174) &gt; <a id="details" name="details"></a>## Detailed Description

Export data to various file formats.

//!

## Function Documentation

<a id="ga4da1dd8f029f998bddafafbc50d50756"></a>## [◆ ](#ga4da1dd8f029f998bddafafbc50d50756)exportLSDynaK()

 exportLSDynaK  ( string  *filename*,    [DynainFileParser](struct_dynain_file_parser.xhtml)  *settings*,    [Structure](class_structure.xhtml)  *database*   ) 

exports selected field data objects to a Dynain file

Parameters filenamethe output file name. The file must exist and be a Dynain format which is compatible with the reference structure. On output the filename contains modified data. settingsdefines which objects are to be modified databasecontains the FEM structure to which this method refers 



<a id="ga87e1513fbe18a1622b984306c3127356"></a>## [◆ ](#ga87e1513fbe18a1622b984306c3127356)operator&lt;&lt;()

 std::ostream operator&lt;&lt;  ( std::ostream  *os*,    [ExportCSVField](class_export_c_s_v_field.xhtml)&lt; TYPE &gt;  *field*   ) 

Writes a string representation of an [ExportCSV](class_export_c_s_v.xhtml "Exports scalar data to a CSV file. ") object to the stream object given.

Parameters osThe output stream object to be modified outThe object which settings should be summarized to os ReturnsThe modified output stream 



<a id="ga5c0d54fd5913c33c895ffae6be1b079c"></a>## [◆ ](#ga5c0d54fd5913c33c895ffae6be1b079c)saveDataBase()

 saveDataBase  ( [Structure](class_structure.xhtml)  *database*,    [SaveDataBaseSettings](struct_save_data_base_settings.xhtml)  *settings*   ) 

saves all data of database to file

Parameters settingscontains the settings databasethe database where all objects are to read from