Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples

Package with example models

Information

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

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

Package Content

Name Description
Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACACConverter ACACConverter This example illustrates how to use the AC/AC converter model
Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACACTransformer ACACTransformer This example illustrates how to use the AC/AC simplified transformer model
Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACACTransformerFull ACACTransformerFull This example illustrates how to use the AC/AC transformer model
Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACDCConverter ACDCConverter This example illustrates how to use the AC/DC converter model

Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACACConverter Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACACConverter

This example illustrates how to use the AC/AC converter model

Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACACConverter

Information

This example illustrates the use of a model that converts AC voltage to AC voltage. The transformer model assumes a linear loss when transmitting the power.

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

Modelica definition

model ACACConverter "This example illustrates how to use the AC/AC converter model" extends Modelica.Icons.Example; Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.ACACConverter conACAC(eta=0.9, conversionFactor=120/480) "ACAC transformer"; Buildings.Electrical.AC.ThreePhasesBalanced.Sources.FixedVoltage sou( definiteReference=true, f=60, V=480) "Voltage source"; Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Inductive load( mode=Buildings.Electrical.Types.Load.VariableZ_P_input, V_nominal=120) "Load model"; Modelica.Blocks.Sources.Ramp ramp( duration=0.5, startTime=0.3, height=2000, offset=-1000) "Power consumed by the model"; equation connect(sou.terminal, conACAC.terminal_n); connect(conACAC.terminal_p, load.terminal); connect(ramp.y, load.Pow); end ACACConverter;

Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACACTransformer Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACACTransformer

This example illustrates how to use the AC/AC simplified transformer model

Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACACTransformer

Information

This example illustrates the use of the AC/AC transformer model. The example shows three different configurations:

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

Modelica definition

model ACACTransformer "This example illustrates how to use the AC/AC simplified transformer model" extends Modelica.Icons.Example; Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.ACACTransformer tra_load( Zperc=0.03, VABase=4000, XoverR=8, VHigh=480, VLow=120) "Transformer with load"; Buildings.Electrical.AC.ThreePhasesBalanced.Sources.FixedVoltage sou( definiteReference=true, f=60, V=480) "Voltage source"; Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Inductive load( mode=Buildings.Electrical.Types.Load.VariableZ_P_input, pf=0.8, V_nominal=120) "Load model"; Modelica.Blocks.Sources.Ramp ramp( duration=0.5, startTime=0.3, offset=0, height=-4000*0.8) "Load power consumption profile"; Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.ACACTransformer tra_cc( XoverR=8, Zperc=0.03, VABase=4000, VHigh=480, VLow=120) "Transformer with short circuit"; Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Impedance shortCircuit(R=1e-8) "Short circuit"; Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.ACACTransformer tra_void( XoverR=8, Zperc=0.03, VABase=4000, VHigh=480, VLow=120) "Transformer with secondary not connected"; Buildings.Electrical.AC.ThreePhasesBalanced.Sources.FixedVoltage sou1( definiteReference=true, f=60, V=480) "Voltage source for open and short circuit tests"; equation connect(sou.terminal, tra_load.terminal_n); connect(tra_load.terminal_p, load.terminal); connect(ramp.y, load.Pow); connect(tra_cc.terminal_p, shortCircuit.terminal); connect(sou1.terminal, tra_cc.terminal_n); connect(sou1.terminal, tra_void.terminal_n); end ACACTransformer;

Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACACTransformerFull Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACACTransformerFull

This example illustrates how to use the AC/AC transformer model

Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACACTransformerFull

Information

This example illustrates the use of the AC/AC transformer model that includes losses at the primary and secondary side and magnetization effects. The example shows three different configurations:

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

Modelica definition

model ACACTransformerFull "This example illustrates how to use the AC/AC transformer model" extends Modelica.Icons.Example; Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.ACACTransformerFull tra_load( R1=0.0001, L1=0.0001, R2=0.0001, L2=0.0001, VABase=4000, magEffects=true, Rm=10, Lm=10, VHigh=480, VLow=120, f=60) "Transformer with load"; Buildings.Electrical.AC.ThreePhasesBalanced.Sources.FixedVoltage sou( definiteReference=true, f=60, V=480) "Voltage source"; Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Inductive load( mode=Buildings.Electrical.Types.Load.VariableZ_P_input, pf=0.8, V_nominal=120) "Load"; Modelica.Blocks.Sources.Ramp ramp( duration=0.5, startTime=0.3, offset=0, height=-4000*0.8) "Load power consumption profile"; Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.ACACTransformerFull tra_cc( VABase=4000, R1=0.01, L1=0.01, R2=0.01, L2=0.01, magEffects=false, Rm=100, Lm=100, VHigh=480, VLow=120, f=60) "Transformer with short circuit connection"; Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Impedance shortCircuit(R=1e-8) "Short circuit"; Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.ACACTransformerFull tra_void( VABase=4000, R1=0.01, L1=0.01, R2=0.01, L2=0.01, magEffects=false, Rm=100, Lm=100, VHigh=480, VLow=120, f=60) "Transformer with open connection"; Buildings.Electrical.AC.ThreePhasesBalanced.Sources.FixedVoltage sou1( definiteReference=true, f=60, V=480) "Voltage source for short circuit and open tests"; equation connect(sou.terminal, tra_load.terminal_n); connect(tra_load.terminal_p, load.terminal); connect(ramp.y, load.Pow); connect(tra_cc.terminal_p, shortCircuit.terminal); connect(sou1.terminal, tra_cc.terminal_n); connect(sou1.terminal, tra_void.terminal_n); end ACACTransformerFull;

Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACDCConverter Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACDCConverter

This example illustrates how to use the AC/DC converter model

Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACDCConverter

Information

This example illustrates the use of a model that converts AC voltage to DC voltage. The transformer model assumes a linear loss when transmitting the power.

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

Modelica definition

model ACDCConverter "This example illustrates how to use the AC/DC converter model" extends Modelica.Icons.Example; Buildings.Electrical.DC.Loads.Resistor res( R=1, V_nominal=120, i(each start=0)) "Resistive load"; Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.ACDCConverter conversion( eta=0.9, ground_AC=false, ground_DC=true, conversionFactor=120/480) "AC/DC transformer"; Buildings.Electrical.AC.ThreePhasesBalanced.Sources.FixedVoltage sou( definiteReference=true, f=60, V=480) "Voltage source"; Buildings.Electrical.DC.Loads.Conductor load( mode=Buildings.Electrical.Types.Load.VariableZ_P_input, V_nominal=120) "Variable resistive load"; Modelica.Blocks.Sources.Ramp pow( duration=0.5, startTime=0.2, offset=-200, height=5200) "Variable load profile"; equation connect(sou.terminal, conversion.terminal_n); connect(conversion.terminal_p, res.terminal); connect(conversion.terminal_p, load.terminal); connect(pow.y, load.Pow); end ACDCConverter;