Description: "Package with example models"

- Home > Modelica

## Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples

Package with example models

### Information

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

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

### Package Content

Name | Description
--- | ---
Converter | Test for the AC/AC converter model
Transformer | Test for the AC/AC transformer model
TransformerDD | Test for the AC/AC transformer model with Delta-Delta configuration
TransformerFull | Test for the AC/AC transformer full model
TransformerStepDownDY | Test for the AC/AC transformer model with Delta-Wye configuration (step-down voltage)
TransformerStepDownYD | Test for the AC/AC transformer model with Wye-Delta configuration (step-down voltage)
TransformerStepUpDY | Test for the AC/AC transformer model with Delta-Wye configuration (step-up voltage)
TransformerStepUpYD | Test for the AC/AC transformer model with Wye-Delta configuration (step-up voltage)
BaseClasses | This package contains base classes inherited by the examples

## Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.Converter

Test for the AC/AC converter model

### Information

This example model tests the Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.ACACConverter model.

Extends from BaseClasses.TransformerExample (This example represents the basic test for a transformer model).

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
Voltage | V_primary | 480 | RMS Voltage on the primary side of the transformer [V]
Voltage | V_secondary | 240 | RMS Voltage on the secondary side of the transformer [V]

### Modelica definition

model Converter "Test for the AC/AC converter model" extends BaseClasses.TransformerExample( V_primary = 480, V_secondary = 240, redeclare Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.ProbeWye probe_2, redeclare Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.ACACConverter tra(conversionFactor=0.5,eta=0.9)); equation connect(probe_2.term, tra.terminal_p); end Converter;

## Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.Transformer

Test for the AC/AC transformer model

### Information

This example model tests the Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.ACACTransformer model.

Extends from BaseClasses.TransformerExample (This example represents the basic test for a transformer model).

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
Voltage | V_primary | 12470 | RMS Voltage on the primary side of the transformer [V]
Voltage | V_secondary | 4160 | RMS Voltage on the secondary side of the transformer [V]

### Modelica definition

model Transformer "Test for the AC/AC transformer model" extends BaseClasses.TransformerExample( redeclare Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.ProbeWye probe_2, redeclare Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.ACACTransformer tra(VHigh=V_primary, VLow=V_secondary, XoverR=6, Zperc=sqrt(0.01^2 + 0.06^2), VABase=6000000)); equation connect(probe_2.term, load.terminal); end Transformer;

## Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerDD

Test for the AC/AC transformer model with Delta-Delta configuration

### Information

This example model tests the Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.ACACTransformerDD model.

#### Note:

When the secondary side of the transformer is in the Delta (D) configuration, measuring the voltage with a Wye (Y) is not possible because the voltage vectors in the connector do not have a neutral reference.

Extends from BaseClasses.TransformerExample (This example represents the basic test for a transformer model).

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
Voltage | V_primary | 12470 | RMS Voltage on the primary side of the transformer [V]
Voltage | V_secondary | 4160 | RMS Voltage on the secondary side of the transformer [V]

### Modelica definition

model TransformerDD "Test for the AC/AC transformer model with Delta-Delta configuration" extends BaseClasses.TransformerExample( redeclare Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.ProbeDelta probe_2, redeclare Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.ACACTransformerDD tra(VHigh=V_primary, VLow=V_secondary, XoverR=6, Zperc=sqrt(0.01^2 + 0.06^2), VABase=6000000)); equation connect(probe_2.term, load.terminal); end TransformerDD;

## Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerFull

Test for the AC/AC transformer full model

### Information

This example model tests the Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.ACACTransformerFull model.

Extends from BaseClasses.TransformerExample (This example represents the basic test for a transformer model).

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
Voltage | V_primary | 12470 | RMS Voltage on the primary side of the transformer [V]
Voltage | V_secondary | 4160 | RMS Voltage on the secondary side of the transformer [V]

### Modelica definition

model TransformerFull "Test for the AC/AC transformer full model" extends BaseClasses.TransformerExample( redeclare Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.ProbeWye probe_2, redeclare Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.ACACTransformerFull tra(VHigh=V_primary, VLow=V_secondary, VABase=6000000, f=60, R1=0.005, L1=0.005*6, R2=0.005, L2=0.005*6, magEffects=true, Rm=10, Lm=10), load(initMode=Buildings.Electrical.Types.InitMode.linearized)); equation connect(probe_2.term, load.terminal); end TransformerFull;

## Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownDY

Test for the AC/AC transformer model with Delta-Wye configuration (step-down voltage)

### Information

This example model tests the Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.ACACTransformerStepDownDY model.

Extends from BaseClasses.TransformerExample (This example represents the basic test for a transformer model).

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
Voltage | V_primary | 12470 | RMS Voltage on the primary side of the transformer [V]
Voltage | V_secondary | 4160 | RMS Voltage on the secondary side of the transformer [V]

### Modelica definition

model TransformerStepDownDY "Test for the AC/AC transformer model with Delta-Wye configuration (step-down voltage)" extends BaseClasses.TransformerExample( redeclare Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.ProbeWye probe_2, redeclare Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.ACACTransformerStepDownDY tra(VHigh=V_primary, VLow=V_secondary, XoverR=6, Zperc=sqrt(0.01^2 + 0.06^2), VABase=6000000)); equation connect(probe_2.term, load.terminal); end TransformerStepDownDY;

## Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownYD

Test for the AC/AC transformer model with Wye-Delta configuration (step-down voltage)

### Information

This example model tests the Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.ACACTransformerStepDownYD model.

#### Note:

When the secondary side of the transformer is in the Delta (D) configuration, measuring the voltage with a Wye (Y) is not possible because the voltage vectors in the connector do not have a neutral reference.

Extends from BaseClasses.TransformerExample (This example represents the basic test for a transformer model).

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
Voltage | V_primary | 12470 | RMS Voltage on the primary side of the transformer [V]
Voltage | V_secondary | 4160 | RMS Voltage on the secondary side of the transformer [V]

### Modelica definition

model TransformerStepDownYD "Test for the AC/AC transformer model with Wye-Delta configuration (step-down voltage)" extends BaseClasses.TransformerExample( redeclare Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.ProbeDelta probe_2, redeclare Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.ACACTransformerStepDownYD tra(VHigh=V_primary, VLow=V_secondary, XoverR=6, Zperc=sqrt(0.01^2 + 0.06^2), VABase=6000000)); equation connect(probe_2.term, load.terminal); end TransformerStepDownYD;

## Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepUpDY

Test for the AC/AC transformer model with Delta-Wye configuration (step-up voltage)

### Information

This example model tests the Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.ACACTransformerStepUpDY model.

Extends from BaseClasses.TransformerExample (This example represents the basic test for a transformer model).

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
Voltage | V_primary | 4160 | RMS Voltage on the primary side of the transformer [V]
Voltage | V_secondary | 12470 | RMS Voltage on the secondary side of the transformer [V]

### Modelica definition

model TransformerStepUpDY "Test for the AC/AC transformer model with Delta-Wye configuration (step-up voltage)" extends BaseClasses.TransformerExample( V_primary = 4160, V_secondary = 12470, redeclare Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.ProbeWye probe_2, redeclare Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.ACACTransformerStepUpDY tra(VHigh=V_primary, VLow=V_secondary, XoverR=6, Zperc=sqrt(0.01^2 + 0.06^2), VABase=6000000)); equation connect(probe_2.term, load.terminal); end TransformerStepUpDY;

## Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepUpYD

Test for the AC/AC transformer model with Wye-Delta configuration (step-up voltage)

### Information

This example model tests the Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.ACACTransformerStepUpYD model.

#### Note:

When the secondary side of the transformer is in the Delta (D) configuration, measuring the voltage with a Wye (Y) is not possible because the voltage vectors in the connector do not have a neutral reference.

Extends from BaseClasses.TransformerExample (This example represents the basic test for a transformer model).

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
Voltage | V_primary | 4160 | RMS Voltage on the primary side of the transformer [V]
Voltage | V_secondary | 12470 | RMS Voltage on the secondary side of the transformer [V]

### Modelica definition

model TransformerStepUpYD "Test for the AC/AC transformer model with Wye-Delta configuration (step-up voltage)" extends BaseClasses.TransformerExample( V_primary = 4160, V_secondary = 12470, redeclare Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.ProbeDelta probe_2, redeclare Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.ACACTransformerStepUpYD tra(VHigh=V_primary, VLow=V_secondary, XoverR=6, Zperc=sqrt(0.01^2 + 0.06^2), VABase=6000000)); equation connect(probe_2.term, load.terminal); end TransformerStepUpYD;