Skip to main content

optiSLang 3D Postprocessing Script API 2025 R1

RandomFieldContainer Class Reference

Last update: 16.07.2025

a container storing all random field decompositions More...

Public Types

typedef std::list< RandomFieldGroupTRandomFieldGroupContainer
 a container type for random fields groups
 

Public Member Functions

std::vector< string > elementQuantities ()
 Get ELEMENT_DATA quantities with an existing random field. More...
 
 eraseElementModel (string quantity, Structure *database)
 deletes the respective random field model (group) More...
 
 eraseNodeModel (string quantity, Structure *database)
 deletes the respective random field model (group) More...
 
 eraseScalarModel (string quantity, Structure *database)
 deletes the respective random field model (group) More...
 
RandomFieldGroup findGroup (string group)
 
RandomFieldGroup findGroup (string quantity, dataobject_types type)
 
RandomFieldGroup findGroupRef (string group)
 
RandomFieldGroup findGroupRef (string quantity, dataobject_types type)
 
std::vector< string > nodeQuantities ()
 Get NODE_DATA quantities with an existing random field. More...
 

Detailed Description

a container storing all random field decompositions

Member Function Documentation

◆ elementQuantities()

std::vector<string> elementQuantities ( )

Get ELEMENT_DATA quantities with an existing random field.

Returns
a vector of strings containing all ELEMENT_DATA quantities with an existing random field

◆ eraseElementModel()

eraseElementModel ( string  quantity,
Structure database 
)

deletes the respective random field model (group)

Parameters
quanitythe field quantity of type ELEMENT_DATA for which the random field model is to be deleted
databaseif this pointer is not zero, it is used to invoke listeners informing them that this container was changed
Exceptions
std::Exceptionin case the quantity has no random field model.

◆ eraseNodeModel()

eraseNodeModel ( string  quantity,
Structure database 
)

deletes the respective random field model (group)

Parameters
quanitythe field quantity of type NODE_DATA for which the random field model is to be deleted
databaseif this pointer is not zero, it is used to invoke listeners informing them that this container was changed
Exceptions
std::Exceptionin case the quantity has no random field model.

◆ eraseScalarModel()

eraseScalarModel ( string  quantity,
Structure database 
)

deletes the respective random field model (group)

Parameters
quanitythe field quantity of type SCALAR_DATA for which the random field model is to be deleted
databaseif this pointer is not zero, it is used to invoke listeners informing them that this container was changed
Exceptions
std::Exceptionin case the quantity has no random field model.

◆ findGroup() [1/2]

RandomFieldGroup findGroup ( string  group)
Returns
a reference to the group with given ident
Parameters
groupthe group ident

◆ findGroup() [2/2]

RandomFieldGroup findGroup ( string  quantity,
dataobject_types  type 
)
Returns
a reference to the group to which of the given quantity belongs
Parameters
quantitythe quantity ident
typethe data type of the quantity

◆ findGroupRef() [1/2]

RandomFieldGroup findGroupRef ( string  group)
Returns
a non- reference to the group with given ident
Parameters
groupthe group ident

◆ findGroupRef() [2/2]

RandomFieldGroup findGroupRef ( string  quantity,
dataobject_types  type 
)
Returns
a non- reference to the group to which of the given quantity belongs
Parameters
quantitythe quantity ident

◆ nodeQuantities()

std::vector<string> nodeQuantities ( )

Get NODE_DATA quantities with an existing random field.

Returns
a vector of strings containing all NODE_DATA quantities with an existing random field

Connect with Ansys