Skip to main content

optiSLang 3D Postprocessing Script API 2025 R1

Export

Last update: 16.07.2025

Export data to various file formats. More...

Classes

struct  ANSYS_Mechanical_DSDAT_Settings
 contains settings for ANSYS DS.DAT exporter More...
 
struct  DynainFileParser
 Settings for the Dynain exporter. More...
 
class  ExportCSV
 Exports scalar data to a CSV file. More...
 
class  ExportCSVField< TYPE >
 Exports SoS field data to a CSV text file. More...
 
class  ExportCSVScalar
 Exports scalar data to a CSV file. More...
 
class  ExportDesigns
 A struct collecting export information for various design directories. More...
 
struct  ExportGeometry
 Defines the interface for exporting a deformed geometry to a file The coordinates to be exported are either: More...
 
struct  ExportItemInfo
 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  ExportOptiSLangBinaryScalars
 stores settings for export to optiSLang bin file More...
 
class  ExportReferenceDesign
 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...
 
struct  ExportScriptForComputingAmplitudesFromField
 A struct collecting import information for generating a script that converts field data into random field amplitudes. More...
 
class  ExportSignalsSettings
 Stores settings for export signals to a couple of CSV files. More...
 
class  ExportToMOP
 A struct collecting export information for FMOP/F-CoP in optiSLang. More...
 
struct  SaveDataBaseSettings
 stores settings for saveDataBase() More...
 

Functions

 checkExportLSDynaK (string filename, string filename_on_output, Structure database, DynainFileParser::ItemSet modified_items)
 
 exportLSDynaK (string filename, DynainFileParser settings, Structure database)
 exports selected field data objects to a Dynain file More...
 
template<dataobject_types TYPE>
std::ostream operator<< (std::ostream os, ExportCSVField< TYPE > field)
 Writes a string representation of an ExportCSV object to the stream object given. More...
 
 saveDataBase (Structure database, SaveDataBaseSettings settings)
 saves all data of database to file More...
 
 template (ExportCSVFieldNode) ExportCSVField< NODE_DATA >
 
 template (ExportCSVFieldElement) ExportCSVField< ELEMENT_DATA >
 

Detailed Description

Export data to various file formats.

//!

Function Documentation

◆ exportLSDynaK()

exportLSDynaK ( string  filename,
DynainFileParser  settings,
Structure  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

◆ operator<<()

std::ostream operator<< ( std::ostream  os,
ExportCSVField< TYPE >  field 
)

Writes a string representation of an ExportCSV object to the stream object given.

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

◆ saveDataBase()

saveDataBase ( Structure  database,
SaveDataBaseSettings  settings 
)

saves all data of database to file

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

Connect with Ansys