calculate voltage command

Purpose

This command calculates the voltage difference between two meshes.

Warning

GPU support for this command has not been tested and may not work as expected.

Syntax

calculate voltage keyword keyword/value pairs

Keywords

Description

id

user-assigned name for the calculate voltage command

probes

obligatory, brace-enclosed list of mesh ids
available options: {mesh1,mesh2, ...}

ground

id of the mesh that is used as ground
if not provided, a ground with 0.0 V is used

Examples

calculate voltage id Voltmeter probes {lower_battery, upper_battery} ground other_battery
calculate voltage id Voltmeter probes {lower_battery, upper_battery}

Access the calculated values above via:

id_Voltmeter.lower_battery or id_Voltmeter[1]
id_Voltmeter.upper_battery or id_Voltmeter[2]

Description

This command evaluates the differences between the voltages of the meshes specified by the probes keyword and the mesh specified by the ground keyword. If the ground keyword is not used, a voltage with a default value of 0.0 V is used. Thus, this command emulates the behavior of an voltmeter device. It should be used together with the enable_electrical_conductivity command.

Output information

Two different options are available for getting the output of this command: see the example above. The output of this command is automatically written to the file simulation_data_aspherix.csv.