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 |
ACACConverter
|
This example illustrates how to use the AC/AC converter model |
ACACTransformer
|
This example illustrates how to use the AC/AC simplified transformer model |
ACACTransformerFull
|
This example illustrates how to use the AC/AC transformer model |
ACDCConverter
|
This example illustrates how to use the AC/DC converter model |
This example illustrates how to use the AC/AC converter model
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
extends Modelica.Icons.Example;
Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.ACACConverter conACAC(
eta=0.9, conversionFactor=120/480) ;
Buildings.Electrical.AC.ThreePhasesBalanced.Sources.FixedVoltage sou(
definiteReference=true,
f=60,
V=480) ;
Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Inductive load(mode=
Buildings.Electrical.Types.Load.VariableZ_P_input, V_nominal=120) ;
Modelica.Blocks.Sources.Ramp ramp(
duration=0.5,
startTime=0.3,
height=2000,
offset=-1000) ;
equation
connect(sou.terminal, conACAC.terminal_n);
connect(conACAC.terminal_p, load.terminal);
connect(ramp.y, load.Pow);
end ACACConverter;
This example illustrates how to use the AC/AC simplified transformer model
Information
This example illustrates the use of the AC/AC transformer model.
The example shows three different configurations:
- With a load connected,
- without a load connected, and
- with a short circuit connection.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Modelica definition
model ACACTransformer
extends Modelica.Icons.Example;
Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.ACACTransformer
tra_load(
Zperc=0.03,
VABase=4000,
XoverR=8,
VHigh=480,
VLow=120) ;
Buildings.Electrical.AC.ThreePhasesBalanced.Sources.FixedVoltage sou(
definiteReference=true,
f=60,
V=480) ;
Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Inductive load(
mode=Buildings.Electrical.Types.Load.VariableZ_P_input,
pf=0.8,
V_nominal=120) ;
Modelica.Blocks.Sources.Ramp ramp(
duration=0.5,
startTime=0.3,
offset=0,
height=-4000*0.8) ;
Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.ACACTransformer tra_cc(
XoverR=8,
Zperc=0.03,
VABase=4000,
VHigh=480,
VLow=120) ;
Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Impedance shortCircuit(R=1e-8)
;
Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.ACACTransformer
tra_void(
XoverR=8,
Zperc=0.03,
VABase=4000,
VHigh=480,
VLow=120) ;
Buildings.Electrical.AC.ThreePhasesBalanced.Sources.FixedVoltage sou1(
definiteReference=true,
f=60,
V=480) ;
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;
This example illustrates how to use the AC/AC transformer model
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:
- With a load connected,
- without a load connected, and
- with a short circuit connection.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Modelica definition
model ACACTransformerFull
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) ;
Buildings.Electrical.AC.ThreePhasesBalanced.Sources.FixedVoltage sou(
definiteReference=true,
f=60,
V=480) ;
Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Inductive load(
mode=Buildings.Electrical.Types.Load.VariableZ_P_input,
pf=0.8,
V_nominal=120) ;
Modelica.Blocks.Sources.Ramp ramp(
duration=0.5,
startTime=0.3,
offset=0,
height=-4000*0.8) ;
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) ;
Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Impedance shortCircuit(R=1e-8)
;
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) ;
Buildings.Electrical.AC.ThreePhasesBalanced.Sources.FixedVoltage sou1(
definiteReference=true,
f=60,
V=480) ;
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;
This example illustrates how to use the AC/DC converter model
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
extends Modelica.Icons.Example;
Buildings.Electrical.DC.Loads.Resistor res(R=1, V_nominal=120) ;
Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.ACDCConverter
conversion(
eta=0.9,
ground_AC=false,
ground_DC=true,
conversionFactor=120/480) ;
Buildings.Electrical.AC.ThreePhasesBalanced.Sources.FixedVoltage sou(
definiteReference=true,
f=60,
V=480) ;
Buildings.Electrical.DC.Loads.Conductor load(mode=Buildings.Electrical.Types.Load.VariableZ_P_input,
V_nominal=120) ;
Modelica.Blocks.Sources.Ramp pow(
duration=0.5,
startTime=0.2,
offset=-200,
height=5200) ;
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;