LBL logo

Buildings.Electrical.AC.OnePhase.Examples

Package with example models

Information

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

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

Package Content

Name Description
Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid GeneratorLoadGrid Generator with a load and grid connection
Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad GridDCLoad Model of a DC load connected to the grid

Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid

Generator with a load and grid connection

Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid

Information

This model illustrates a generator, an inductive load and a grid connection. The power output of the generator is equal to its input signal, which is a ramp function. The output grid.P shows the actual and apparent power, the power factor and the phase angle.

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

Modelica definition

model GeneratorLoadGrid "Generator with a load and grid connection" extends Modelica.Icons.Example; Sources.Grid grid( f=60, V=120, phiSou=0.5235987755983) "Electrical grid"; Sources.Generator sou(f=60, phiGen(displayUnit="rad")) "Gas turbine"; Buildings.Electrical.AC.OnePhase.Loads.Inductive res( mode=Buildings.Electrical.Types.Load.FixedZ_steady_state, P_nominal=-5e3, V_nominal=120, pf=1) "Inductive load"; Modelica.Blocks.Sources.Ramp ramp( height=1e4, duration=0.6, startTime=0.1, offset=0); equation connect(ramp.y, sou.P); connect(sou.terminal, grid.terminal); connect(res.terminal, grid.terminal); end GeneratorLoadGrid;

Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad

Model of a DC load connected to the grid

Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad

Information

This model illustrates the use of a model for inductive load. The circuit on the left hand side uses an inductive load, whereas the circuit on the right hand side uses a resistor and inductance in series. The parameters of the inductor and resistor are such that the real power and the phase angle are identical (up to the numerical precision of the parameters) for the two systems.

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

Modelica definition

model GridDCLoad "Model of a DC load connected to the grid" extends Modelica.Icons.Example; Buildings.Electrical.AC.OnePhase.Sources.Grid grid( f=60, phiSou=0, V=120); Buildings.Electrical.AC.OnePhase.Conversion.ACDCConverter idealACDCConverter1( eta=0.9, ground_AC=false, conversionFactor=12/120); Buildings.Electrical.DC.Loads.Resistor resistor(R=1, V_nominal=12); equation connect(grid.terminal, idealACDCConverter1.terminal_n); connect(idealACDCConverter1.terminal_p, resistor.terminal); end GridDCLoad;

http://simulationresearch.lbl.gov/modelica