Skip to main content

ZOS-API interface 2025 R2 SP02

ZOSAPI.Editors.LDE.ISTAR_StressFEAData Interface Reference

Last update: 19.09.2025

Classes which implement this interface allow to handle stress FEA datasets. More...

Public Member Functions

void ImportStress (string filename)
 
int ImportStress_1 (string filename)
 Import Stress Tensor FEA data from a file.
 
void UnloadData ()
 
void UnloadDataAndKeepFiles ()
 
ISTAR_PointWithStress[] GetFEAPointsSafe ()
 
ICoordinateTransform GetTransformValues (int transformType)
 Transform types are 0 - User coordinate adapter transform, 1 - GRSO to Local transform, 2 - Total transform (matrix product of 0 and 1)
 
ISTAR_PointWithStress[] GetTransformedFEAPointsSafe (int coordinateOption)
 Returns points after applying the selected transform. Option 0 returns local OpticStudio coordinates (surface-specific) and option 1 returns global OpticStudio coordinates referenced to the GRSO.
 
ISTAR_PointWithStress[] GetTransformedFEAPointsNoImportRequired (String filename, int adaptCase, double[,] adapterR, double[] adapterO, int coordinateOption)
 Returns points after applying the selected transform. This version does not require a prior call to ImportStress and thus no lens update is issued. Option 0 returns local OpticStudio coordinates (surface-specific) and option 1 returns global OpticStudio coordinates referenced to the GRSO. adaptCase usage to indicate FEA data coord system in the file: 0-InOSLocal, 1-InOSGlobal, 2-ToOSLocalViaTransform, 3-ToOSGlobalViaTransform.
 
bool IsStressTensorApplied ()
 

Properties

int SurfaceNumber [get]
 
int NumberOfDataPoints [get]
 
string Filename [get]
 
string Name [get, set]
 
bool IsStressImported [get]
 

Detailed Description

Classes which implement this interface allow to handle stress FEA datasets.

Member Function Documentation

◆ GetFEAPointsSafe()

ISTAR_PointWithStress[] ZOSAPI.Editors.LDE.ISTAR_StressFEAData.GetFEAPointsSafe ( )

◆ GetTransformedFEAPointsNoImportRequired()

ISTAR_PointWithStress[] ZOSAPI.Editors.LDE.ISTAR_StressFEAData.GetTransformedFEAPointsNoImportRequired ( String  filename,
int  adaptCase,
double  adapterR[,],
double[]  adapterO,
int  coordinateOption 
)

Returns points after applying the selected transform. This version does not require a prior call to ImportStress and thus no lens update is issued. Option 0 returns local OpticStudio coordinates (surface-specific) and option 1 returns global OpticStudio coordinates referenced to the GRSO. adaptCase usage to indicate FEA data coord system in the file: 0-InOSLocal, 1-InOSGlobal, 2-ToOSLocalViaTransform, 3-ToOSGlobalViaTransform.

◆ GetTransformedFEAPointsSafe()

ISTAR_PointWithStress[] ZOSAPI.Editors.LDE.ISTAR_StressFEAData.GetTransformedFEAPointsSafe ( int  coordinateOption)

Returns points after applying the selected transform. Option 0 returns local OpticStudio coordinates (surface-specific) and option 1 returns global OpticStudio coordinates referenced to the GRSO.

◆ GetTransformValues()

ICoordinateTransform ZOSAPI.Editors.LDE.ISTAR_StressFEAData.GetTransformValues ( int  transformType)

Transform types are 0 - User coordinate adapter transform, 1 - GRSO to Local transform, 2 - Total transform (matrix product of 0 and 1)

◆ ImportStress()

void ZOSAPI.Editors.LDE.ISTAR_StressFEAData.ImportStress ( string  filename)

◆ ImportStress_1()

int ZOSAPI.Editors.LDE.ISTAR_StressFEAData.ImportStress_1 ( string  filename)

Import Stress Tensor FEA data from a file.

Parameters
filenameFull path of the file containing the FEA data
Returns
Returns an integer signalling the status of the operation according to the following:
Value Meaning
0 The file has no header, or the file contains the correct type of data according to its header.
1 OpticStudio was unable to open the file.
2 The file has a malformed header.
3 The file contains the wrong type of data according to its header.

◆ IsStressTensorApplied()

bool ZOSAPI.Editors.LDE.ISTAR_StressFEAData.IsStressTensorApplied ( )

◆ UnloadData()

void ZOSAPI.Editors.LDE.ISTAR_StressFEAData.UnloadData ( )

◆ UnloadDataAndKeepFiles()

void ZOSAPI.Editors.LDE.ISTAR_StressFEAData.UnloadDataAndKeepFiles ( )

Property Documentation

◆ Filename

string ZOSAPI.Editors.LDE.ISTAR_StressFEAData.Filename
get

◆ IsStressImported

bool ZOSAPI.Editors.LDE.ISTAR_StressFEAData.IsStressImported
get

◆ Name

string ZOSAPI.Editors.LDE.ISTAR_StressFEAData.Name
getset

◆ NumberOfDataPoints

int ZOSAPI.Editors.LDE.ISTAR_StressFEAData.NumberOfDataPoints
get

◆ SurfaceNumber

int ZOSAPI.Editors.LDE.ISTAR_StressFEAData.SurfaceNumber
get

Connect with Ansys