ParameterSweep Object
Allows to automatically perform several simulations with varying parameters.
SetSimulationType ( enum type )
Sets the simulation type to the given type.
type can have one of the following values:
"Thermal" |
Stationary thermal simulation |
"Transient Thermal" |
Transient thermal simulation |
"Structural Mechanics" |
Structural mechanics simulation |
AddSequence ( name name )
Defines a new simulation sequence. In a sequence several different sets of parameters with different values can be defined. These sets are then taken by the parameter sweep to recreate the structure and automatically simulate it for each set.
DeleteSequence ( name name )
Deletes a sequence.
DeleteAllSequences
Deletes all previously defined sequences.
RenameSequence ( name oldname, name newname )
Renames a sequence.
AddParameter ( name sequencename, name parametername, bool sweep, double from, double to, int steps )
Adds a parameter to a sequence.
DeleteParameter ( name sequencename, name parametername )
Deletes a parameter from a sequence.
GetNumberOfVaryingParameters long
Get the number of varying parameters.
GetNameOfVaryingParameter ( long index ) string
Returns the name of the specified parameter.
GetValueOfVaryingParameter ( long index ) double
Returns the value of the specified parameter.
AddVolumeWatch ( solidname name )
This method adds the volume of a previously defined solid to the watch list, i.e. the volume of the selected solid is stored for every simulation of the parameter sweep. After the sweep has finished, the results are collected under a ”Tables” Folder in the tree view.
AddUserdefinedWatch
This method offers the possibility to define a userdefined watch. Only one user defined goal can be added and its results are collected under a ”Tables” Folder in the tree view.
DeleteWatch ( name name )
Deletes a previously defined watch.
Start
Starts the parameter sweep.
UseDistributedComputing ( bool switch )
Enables/disables the distributed calculation of different solver runs across the network.
SetSimulationType ("")
UseDistributedComputing (False)
With ParameterSweep
.AddSequence ("Sweep")
.AddParameter ("Sweep", "l", True, 2.6, 2.8, 5)
.Start
End With