Potential sensor
This block is used to measure the voltage with respect to the
reference voltage (Ground block) in an electircal circuit. The
voltage is given to the explicit part of the model via an explicit
output port.
- always active: no
- direct-feedthrough: yes
- zero-crossing: no
- mode: no
- number/sizes of inputs: 1 / 1
- number/sizes of outputs: 1 / 1
- number/sizes of activation inputs: 0 /
- number/sizes of activation outputs: 0 /
- continuous-time state: no
- discrete-time state: no
- name of modelica function: PotentialSensor
PotentialSensor.sci
class PotentialSensor
Pin p;
Real v;
equation
p.i = 0;
v = p.v;
end PotentialSensor;