Skip to main content

optiSLang 3D Postprocessing Script API 2025 R1

ImportCoP Class Reference

Last update: 16.07.2025

imports CoP values of amplitudes from CSV file More...

Public Member Functions

 check (Structure database)
 checks the settings More...
 
bool checkOverwriteExisting (Structure database)
 checks if any CoP values are already existing in the database More...
 
 import (Structure database)
 imports the CoP values and inserts them into the database More...
 
 ImportCoP (string filename)
 Parses and imports a given file. More...
 

Public Attributes

string file_name
 destructor More...
 
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 or equal to this limit, it will not be created. Default: 0%
 
bool overwrite_existing
 is true if already existing output data objects will be replaced. In this case, also all depending objects of the already existing one will be deleted.
 

Detailed Description

imports CoP values of amplitudes from CSV file

The CSV file is to be:

  • separated by tabs
  • header row must contain: #\tinput-ident-1\t...\tinput-ident-N\tTotal
  • the other rows contain the respective CoP values. An input parameter being not "important" is associated with a CoP=0
  • the first column contains the names of the amplitudes (responses). The response names will be associated with the amplitudes.

Constructor & Destructor Documentation

◆ ImportCoP()

ImportCoP ( string  filename)

Parses and imports a given file.

Parameters
filenamefilename of the CSV file.

Member Function Documentation

◆ check()

check ( Structure  database)

checks the settings

Parameters
databasethe database where the imported data is supposed to be saved into

◆ checkOverwriteExisting()

bool checkOverwriteExisting ( Structure  database)

checks if any CoP values are already existing in the database

Parameters
databasethe database to be tested
Returns
true if any CoP values were already imported.

◆ import()

import ( Structure  database)

imports the CoP values and inserts them into the database

Parameters
databasethe database where the imported data are saved to.

Member Data Documentation

◆ file_name

string file_name

destructor

the file to be imported

Connect with Ansys