Modelica.Electrical.QuasiStationary.SinglePhase.Sensors

AC singlephase sensors

Information


This package hosts sensors for quasi stationary single phase circuits. Quasi stationary theory for single phase circuits can be found in the references.

See also

MultiPhase.Sensors

Extends from Modelica.Icons.SensorsPackage (Icon for packages containing sensors).

Package Content

NameDescription
Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.FrequencySensor FrequencySensor Frequency sensor
Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.PotentialSensor PotentialSensor Potential sensor
Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.VoltageSensor VoltageSensor Voltage sensor
Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.CurrentSensor CurrentSensor Current sensor
Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.PowerSensor PowerSensor Power sensor


Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.FrequencySensor Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.FrequencySensor

Frequency sensor

Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.FrequencySensor

Information



This sensor can be used to measure the frequency of the reference system.

See also

PotentialSensor, VoltageSensor, CurrentSensor, PowerSensor

Extends from Interfaces.AbsoluteSensor (Partial potential sensor).

Connectors

TypeNameDescription
PositivePinpinPin
output RealOutputy 

Modelica definition

model FrequencySensor "Frequency sensor"
  extends Interfaces.AbsoluteSensor;
  import Modelica.Constants.pi;
  Blocks.Interfaces.RealOutput y;
equation 
  2*pi*y = omega;
end FrequencySensor;

Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.PotentialSensor Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.PotentialSensor

Potential sensor

Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.PotentialSensor

Information



This sensor can be used to measure the complex potential.

See also

VoltageSensor, CurrentSensor, PowerSensor

Extends from Interfaces.AbsoluteSensor (Partial potential sensor).

Connectors

TypeNameDescription
PositivePinpinPin
output ComplexOutputy 

Modelica definition

model PotentialSensor "Potential sensor"
  extends Interfaces.AbsoluteSensor;
  ComplexBlocks.Interfaces.ComplexOutput y;
equation 
  y = pin.v;
end PotentialSensor;

Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.VoltageSensor Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.VoltageSensor

Voltage sensor

Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.VoltageSensor

Information


This sensor can be used to measure the complex voltage.

See also

PotentialSensor, CurrentSensor, PowerSensor

Extends from Interfaces.RelativeSensor (Partial voltage / current sensor).

Connectors

TypeNameDescription
PositivePinpin_pPositive pin
NegativePinpin_nNegative pin
output ComplexOutputy 

Modelica definition

model VoltageSensor "Voltage sensor"
  extends Interfaces.RelativeSensor;
equation 
  i = Complex(0);
  y = v;
end VoltageSensor;

Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.CurrentSensor Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.CurrentSensor

Current sensor

Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.CurrentSensor

Information


This sensor can be used to measure the complex current.

See also

PotentialSensor, VoltageSensor, PowerSensor

Extends from Interfaces.RelativeSensor (Partial voltage / current sensor).

Connectors

TypeNameDescription
PositivePinpin_pPositive pin
NegativePinpin_nNegative pin
output ComplexOutputy 

Modelica definition

model CurrentSensor "Current sensor"
  extends Interfaces.RelativeSensor;
equation 
  v = Complex(0);
  y = i;
end CurrentSensor;

Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.PowerSensor Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.PowerSensor

Power sensor

Modelica.Electrical.QuasiStationary.SinglePhase.Sensors.PowerSensor

Information



This sensor can be used to measure the complex apparent power.

See also

PotentialSensor, VoltageSensor, CurrentSensor,

Connectors

TypeNameDescription
PositivePincurrentP 
NegativePincurrentN 
PositivePinvoltageP 
NegativePinvoltageN 
output ComplexOutputy 

Modelica definition

model PowerSensor "Power sensor"
  import Modelica.ComplexMath.conj;
  Interfaces.PositivePin currentP;
  Interfaces.NegativePin currentN;
  Interfaces.PositivePin voltageP;
  Interfaces.NegativePin voltageN;
  output Modelica.SIunits.ComplexCurrent  i;
  output Modelica.SIunits.ComplexVoltage  v;
  Modelica.ComplexBlocks.Interfaces.ComplexOutput y;
equation 
  Connections.branch(currentP.reference, currentN.reference);
  currentP.reference.gamma = currentN.reference.gamma;
  Connections.branch(voltageP.reference, voltageN.reference);
  voltageP.reference.gamma = voltageN.reference.gamma;
  Connections.branch(currentP.reference, voltageP.reference);
  currentP.reference.gamma = voltageP.reference.gamma;
  currentP.i + currentN.i = Complex(0);
  currentP.v - currentN.v = Complex(0);
  i = currentP.i;
  voltageP.i + voltageN.i = Complex(0);
  voltageP.i = Complex(0);
  v = voltageP.v - voltageN.v;
//P + j*Q = v * conj(i);
  y = v*conj(i);
end PowerSensor;

Automatically generated Fri Nov 12 16:29:24 2010.