ParameterSweep Object

Allows to automatically perform several simulations with varying parameters.

Methods

SetSimulationType ( enum type )

Sets the simulation type to the given type.

 

type can have one of  the following values:

"E-Static"

Electrostatic simulation

"M-Static"

Magnetostatic simulation

"PIC"

Particle in cell simulation

"Particle Tracking"

Particle tracking

 

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.

 

AddCapacitanceWatch

Adds a capacitance watch.

 

AddInductanceWatch

Adds an inductance watch.

 

AddEnergyWatch

Adds an energy watch.

 

AddFieldWatch ( double x, double y, double z, enum key, enum type )

Adds a field watch, specifying the position, the component key and the type of the field to be watched.

 

key can have one of  the following values:

"X"

X-component of the defined field.

"Y"

Y-component of the defined field.

"Z"

Z-component of the defined field.

"Abs"

Absolut value of the define field.

"Scalar"

Setting for scalar field types (e.g. potentials in electrostatic calculations).

 

type can have one of  the following values:

"E-Field"

Electric field strength in case of an electrostatic calculation.

"D-Field"

Electric flux density in case of an electrostatic calculation.

"H-Field"

Magnetic field strength in case of a magnetostatic calculation.

"B-Field"

Magnetic flux density in case of a magnetostatic calculation.

"Potential"

Potential field in case of an electrostatic calculation.

 

AddForceWatchEx ( solidname solidname, enum key, double x, double y, double z, double xaxis, double yaxis, double zaxis, bool bAutoExtend)

Adds a force watch, specifying the corresponding solid, the force component ant in case of a torque component, the torque's origin and axis normal.

 

key can have one of  the following values:

"X"

X-component of the force.

"Y"

Y-component of the force.

"Z"

Z-component of the force.

"Abs"

Absolut value of the force.

"Torque"

Torque value.

 

 The setting bAutoExtend concerns only the force computation with tetrahedral solvers and will be ignored otherwise.

The force computation method requires objects which are surrounded completely by the background or by objects that are equivalent to the background. If bAutoExtend is True, all shapes connected to a specified solid or coil will be collected into one group and the force on this group will be computed. If bAutoExtend is False, the force will be computed on the specified object only, and a warning will be printed if this object is not entirely embedded in background or equivalent material.

Please see Force and Torque Calculation for further information.

 

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.

Default Settings

SetSimulationType ("")

UseDistributedComputing (False)

Example

With ParameterSweep

    .SetSimulationType ("E-Static")

    .AddSequence ("Sweep")

    .AddParameter ("Sweep", "l", True, 2.6, 2.8, 5)

    .AddEnergyWatch

    .Start

End With