## Modelica.Electrical.Analog.Sensors

### Information

This package contains potential, voltage, and current sensors.

Main Authors:
  Christoph Clauß <clauss@eas.iis.fhg.de>
  André Schneider <schneider@eas.iis.fhg.de>
  Fraunhofer Institute for Integrated Circuits
  Design Automation Department
  Zeunerstraße 38
  D-01069 Dresden

Version:
  $Id$

Copyright:
  Copyright © 1998-2002, Modelica Association and Fraunhofer-Gesellschaft.
  The Modelica package is free software; it can be redistributed and/or modified under the terms of the Modelica license, see the license conditions and the accompanying disclaimer in the documentation of package Modelica in file "Modelica/package.mo".

## Modelica.Electrical.Analog.Sensors.PotentialSensor

Sensor to measure the potential

### Modelica definition

    model PotentialSensor "Sensor to measure the potential"
      extends Interfaces.AbsoluteSensor;
      SI.ElectricPotential phi "Absolute voltage potential";
    equation
      p.i = 0;
      phi = p.v;
      phi = outPort.signal[1];
    end PotentialSensor;

## Modelica.Electrical.Analog.Sensors.VoltageSensor

Sensor to measure the voltage between two pins

### Modelica definition

    model VoltageSensor "Sensor to measure the voltage between two pins"
      extends Interfaces.RelativeSensor;
      SI.Voltage v "Voltage between pin p and n (= p.v - n.v)";
    equation
      p.i = 0;
      n.i = 0;
      v = p.v - n.v;
      v = outPort.signal[1];
    end VoltageSensor;

## Modelica.Electrical.Analog.Sensors.CurrentSensor

Sensor to measure the current in a branch

### Modelica definition

    model CurrentSensor "Sensor to measure the current in a branch"
      extends Interfaces.RelativeSensor;
      SI.Current i "current in the branch from p to n";
    equation
      p.v = n.v;
      p.i = i;
      n.i = -i;
      i = outPort.signal[1];
    end CurrentSensor;