Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples

Package with example models

Information

This package contains examples for the use of models that can be found in Buildings.Electrical.AC.ThreePhasesBalanced.Loads.

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances Impedances Example that illustrates the use of the impedance models
Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ParallelLoads ParallelLoads Example that illustrates the use of the load models
Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases ThreePhases Example that provides a comparison between AC one phase and three-phase balanced

Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances

Example that illustrates the use of the impedance models

Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances

Information

This model illustrates the use of the impedance models. The impedances have unitary values such that the RMS value of the voltage and of the current are the same.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Modelica definition

model Impedances "Example that illustrates the use of the impedance models" extends Modelica.Icons.Example; Sources.FixedVoltage sou(f=60, V=480) "Voltage source"; Impedance Z1( R=0, inductive=true, L=1/(2*Modelica.Constants.pi*60), star=true) "Impedance purely inductive"; Impedance Z2(R=1, star=true) "Impedance purely resistive"; Impedance Z3( R=0, inductive=false, C=1/(2*Modelica.Constants.pi*60), star=true) "Impedance purely capacitive"; Impedance Z4( inductive=false, R=1, C=1/(2*Modelica.Constants.pi*60), star=true) "Impedance capacitive"; Impedance Z5( R=1, inductive=true, L=1/(2*Modelica.Constants.pi*60), star=true) "Impedance inductive"; equation connect(sou.terminal, Z1.terminal); connect(sou.terminal, Z2.terminal); connect(sou.terminal, Z3.terminal); connect(sou.terminal, Z4.terminal); connect(sou.terminal, Z5.terminal); end Impedances;

Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ParallelLoads Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ParallelLoads

Example that illustrates the use of the load models

Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ParallelLoads

Information

This model illustrates the use of the three-phase unbalanced load models.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Modelica definition

model ParallelLoads "Example that illustrates the use of the load models" extends Modelica.Icons.Example; Sources.FixedVoltage E(f=60, V=480) "Voltage source"; Resistive R(P_nominal=-2000, V_nominal=480) "Resistive load"; Inductive RL_pf( pf=0.8, P_nominal=-2000, use_pf_in=true, V_nominal=480) "Inductive load with variable power factor"; Modelica.Blocks.Sources.Ramp load(startTime=0.2, duration=0.3) "Power signal profile"; Inductive varRL_y( P_nominal=-2000, V_nominal=480, mode=Buildings.Electrical.Types.Load.VariableZ_y_input) "Inductive load with y as input"; Capacitive varRC_y( P_nominal=-2000, V_nominal=480, mode=Buildings.Electrical.Types.Load.VariableZ_y_input) "Capacitive load with y as input"; Inductive varRL_P( pf=0.8, V_nominal=480, mode=Buildings.Electrical.Types.Load.VariableZ_P_input) "Inductive load with P as input"; Modelica.Blocks.Sources.Ramp pow( startTime=0.2, duration=0.3, height=4000, offset=-2000) "Power consumption profile"; Modelica.Blocks.Sources.Ramp pf( height=0.2, duration=0.2, offset=0.8, startTime=0.7) "Power factor profile"; equation connect(E.terminal, R.terminal); connect(E.terminal, RL_pf.terminal); connect(E.terminal, varRL_y.terminal); connect(E.terminal, varRC_y.terminal); connect(load.y, varRL_y.y); connect(load.y, varRC_y.y); connect(E.terminal, varRL_P.terminal); connect(pow.y, varRL_P.Pow); connect(pf.y, RL_pf.pf_in); end ParallelLoads;

Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases

Example that provides a comparison between AC one phase and three-phase balanced

Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases

Information

This model illustrates the use of the impedance models and how the three-phase balanced model can reproduce the same results obtained using three separate one phase circuits.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Modelica definition

model ThreePhases "Example that provides a comparison between AC one phase and three-phase balanced" extends Modelica.Icons.Example; Modelica.SIunits.Power errorY=sqrt((sen_Y.S[1] - (sen_a.S[1] + sen_b.S[1] + sen_c.S[1]))^2 + (sen_Y.S[2] - (sen_a.S[2] + sen_b.S[2] + sen_c.S[2]))^2) "Difference of the power consumption in the star (Y) connection"; Modelica.SIunits.Power errorD=sqrt((sen_D.S[1] - (sen_ab.S[1] + sen_bc.S[1] + sen_ca.S[1]))^2 + (sen_D.S[2] - (sen_ab.S[2] + sen_bc.S[2] + sen_ca.S[2])) ^2) "Difference of the power consumption in the triangle (D) connection"; Sources.FixedVoltage sou( definiteReference=true, f=60, V=480) "Three phases balanced voltage source"; Impedance RL_star( R=1, inductive=true, L=1/(2*Modelica.Constants.pi*60)) "Impedance with Y connection"; OnePhase.Sources.FixedVoltage sou_a( V=480/sqrt(3), definiteReference=true, f=60) "Voltage source phase a"; OnePhase.Sources.FixedVoltage sou_b( V=480/sqrt(3), definiteReference=true, phiSou=2.0943951023932, f=60) "Voltage source phase b"; OnePhase.Sources.FixedVoltage sou_c( V=480/sqrt(3), definiteReference=true, phiSou=-2.0943951023932, f=60) "Voltage source phase c"; OnePhase.Loads.Impedance RL_a( R=1, inductive=true, L=1/(2*Modelica.Constants.pi*60)) "Impedance on phase A"; OnePhase.Loads.Impedance RL_b( R=1, inductive=true, L=1/(2*Modelica.Constants.pi*60)) "Impedance on phase B"; OnePhase.Loads.Impedance RL_c( R=1, inductive=true, L=1/(2*Modelica.Constants.pi*60)) "Impedance on phase C"; Impedance RL_tri( R=1, inductive=true, L=1/(2*Modelica.Constants.pi*60), star=false) "Impedance with D connection"; OnePhase.Sources.FixedVoltage sou_ab( V=480, phiSou=-0.5235987755983, definiteReference=true, f=60) "Voltage source line ab"; OnePhase.Sources.FixedVoltage sou_bc( phiSou=1.5707963267949, V=480, definiteReference=true, f=60) "Voltage source line bc"; OnePhase.Sources.FixedVoltage sou_ca( phiSou=-3.6651914291881, V=480, definiteReference=true, f=60) "Voltage source line ca"; OnePhase.Loads.Impedance RL_ab( R=1, inductive=true, L=1/(2*Modelica.Constants.pi*60)) "Impedance on line AB"; OnePhase.Loads.Impedance RL_bc( R=1, inductive=true, L=1/(2*Modelica.Constants.pi*60)) "Impedance on line BC"; OnePhase.Loads.Impedance RL_c1( R=1, inductive=true, L=1/(2*Modelica.Constants.pi*60)) "Impedance on linease CA"; OnePhase.Sensors.GeneralizedSensor sen_a "Sensor located on phase A (Y connection)"; OnePhase.Sensors.GeneralizedSensor sen_ab "Sensor located on line AB (D connection)"; Sensors.GeneralizedSensor sen_Y "Sensor for Y connection (balanced case)"; Sensors.GeneralizedSensor sen_D "Sensor for D connection (balanced case)"; OnePhase.Sensors.GeneralizedSensor sen_b "Sensor located on phase B (Y connection)"; OnePhase.Sensors.GeneralizedSensor sen_c "Sensor located on phase C (Y connection)"; OnePhase.Sensors.GeneralizedSensor sen_bc "Sensor located on line BC (D connection)"; OnePhase.Sensors.GeneralizedSensor sen_ca "Sensor located on line CA (D connection)"; equation connect(sou_a.terminal, sen_a.terminal_n); connect(sen_a.terminal_p, RL_a.terminal); connect(sou_ab.terminal, sen_ab.terminal_n); connect(sen_ab.terminal_p, RL_ab.terminal); connect(sou.terminal, sen_Y.terminal_n); connect(sen_Y.terminal_p, RL_star.terminal); connect(sou.terminal, sen_D.terminal_n); connect(sen_D.terminal_p, RL_tri.terminal); connect(sou_b.terminal, sen_b.terminal_n); connect(sen_b.terminal_p, RL_b.terminal); connect(sou_c.terminal, sen_c.terminal_n); connect(sen_c.terminal_p, RL_c.terminal); connect(sou_bc.terminal, sen_bc.terminal_n); connect(sen_bc.terminal_p, RL_bc.terminal); connect(sou_ca.terminal, sen_ca.terminal_n); connect(sen_ca.terminal_p, RL_c1.terminal); end ThreePhases;