ThermoPower
Open library for thermal power plant simulation
Information
General Information
The ThermoFluid library is an open Modelica library for the dynamic modeling of thermal power plants.
A general description of the library can be found in the papers:
- F. Casella, A. Leva, "Modelica open library for power plant simulation: design and experimental validation", Proceedings of the 2003 Modelica Conference, Linkö ping, Sweden, 2003.
- F. Casella, A. Leva, "Modelling of Thermo-Hydraulic Power Generation Processes Using Modelica". Mathematical and Computer Modeling of Dynamical Systems, vol. 12, n. 1, pp. 19-33, Feb. 2006.
The papers are available from the authors upon request, or can be downloaded from the library home page.
The ThermoPower library uses the medium models provided by the Modelica.Media library, which is freely available from the Modelica Association web site.
Library home page
For additional information and library updates, consult the
library home page, and the ThermoPower project page on SourceForge.net.
Contributions to the library are welcome: please contact the authors if you are interested.
Release notes:
Version 2.1 (6 Jul 2009)
The 2.1 release of ThermoPower contains several additions and a few bug
fixes with respect to version 2.0. We tried to keep the new version
backwards-compatible with the old one, but there might be a few cases
where small adaptations could be required.
ThermoPower 2.1 requires the Modelica Standard Library version 2.2.1 or
2.2.2. It has been tested with Dymola 6.1 (using MSL 2.2.1) and with
Dymola 7.1 (using MSL 2.2.2). It is planned to be usable also with
other tools, in particular OpenModelica, MathModelica and SimulationX,
but this is not possible with the currently released versions of those
tools. It is expected that this should become at least partially
possible within the year 2009.
ThermoPower 2.1 is the last major revision compatible with Modelica
2.1 and the Modelica Standard Library 2.2.x. The next version is planned to use Modelica 3.1 and the Modelica Standard Library 3.1. It will use
use stream connectors, which generalize the concept of Flange
connectors, lifting the restrictions that only two complementary
connectors can be bound.
This is a list of the main changes with respect to v. 2.0
- New PowerPlants package, containing a library of high-level
reusable components for the modelling of combined-cycle power plants,
including full models that can be simulated.
- New examples cases in the Examples package.
- New components in the Electrical package, to model the generator-grid connection by the swing equation
- Three-way junctions (FlowJoin and FlowSplit) now have an option
to describe unidirectional flow at each flange. This feature can
substantially enhance numerical robustness and simulation performance
in all cases when it is known a priori that no flow reversal will occur.
- The Flow1D and Flow1D2ph models are now restricted to positive
flow direction, since it was found that it is not possible to describe
flow reversal consistently with the average-density approach adopted in
this library. For full flow reversal support please use the Flow1Dfem
model, which does not have any restriction in this respect.
- A bug in Flow1D and Flow1D2ph has been corrected, which caused
significant errors in the mass balance under dynamic conditions; this
was potentially critical in closed-loop models, but has now been
resolved.
- The connectors for lumped- and distribute-parameters heat
transfer with variable heat transfer coefficients have been split:
HThtc and DHThtc now have an output qualifier on the h.t.c., while
HThtc_in and DHThtc_in have an input qualifier. This was necessary to
avoid incorrect connections, and is also required by tools to correctly
checked if a model is balanced. This change should have no impact on
most user-developed models.
Version 2.0 (10 Jun 2005)
- The new Modelica 2.2 standard library is used.
- The ThermoPower library is now based on the Modelica.Media standard library for fluid property calculations. All the component models use a Modelica.Media compliant interface to specify the medium model. Standard water and gas models from the Modelica.Media library can be used, as well as custom-built water and gas models, compliant with the Modelica.Media interfaces.
- Fully functional gas components are now available, including model for gas compressors and turbines, as well as compact gas turbine unit models.
- Steady-state initialisation support has been added to all dynamic models.
- Some components are still under development, and could be changed in the final 2.0 release:
- Moving boundary model for two-phase flow in once-through evaporators.
- Stress models for headers and turbines.
Version 1.2 (18 Nov 2004)
- Valve and pump models restructured using inheritance.
- Simple model of a steam turbine unit added (requires the Modelica.Media library).
- CISE example restructured and moved to the Examples package.
- Preliminary version of gas components added in the Gas package.
- Finite element model of thermohydraulic two-phase flow added.
- Simplified models for the connection to the power system added in the Electrical package.
Version 1.1 (15 Feb 2004)
- No default values for parameters whose values must be set explicitly by the user.
- Description of the meaning of the model variables added.
- Pump, PumpMech, Accumulator models added.
- More rational geometric parameters for Flow1D* models.
- Flow1D model corrected to avoid numerical problems when the phase transition boundaries cross the nodes.
- Flow1D2phDB model updated.
- Flow1D2phChen models with two-phase heat transfer added.
Version 1.0 (20 Oct 2003)
- First release in the public domain
License agreement
The ThermoPower package is licensed by Politecnico di Milano under the Modelica License 2.
Copyright © 2002-2009, Politecnico di Milano.
Package Content
Modelica definition
type HydraulicConductance = Real (final quantity="HydraulicConductance",
final unit="(kg/s)/Pa");
Modelica definition
type HydraulicResistance = Real (final quantity="HydraulicResistance", final unit
= "Pa/(kg/s)");
Modelica definition
type PerUnit = Real (
final quantity="PerUnit",final unit="pu");
generic start value
Parameters
| Type | Name | Default | Description |
| | start | 40 | |
Modelica definition
type Density = Modelica.SIunits.Density (start=40) "generic start value";
start value for liquids
Parameters
| Type | Name | Default | Description |
| | start | 1000 | |
Modelica definition
type LiquidDensity = Density (start=1000) "start value for liquids";
start value for gases/vapours
Parameters
| Type | Name | Default | Description |
| | start | 5 | |
Modelica definition
type GasDensity = Density (start=5) "start value for gases/vapours";
generic temperature
Parameters
| Type | Name | Default | Description |
| | start | 300 | |
| | nominal | 500 | |
Modelica definition
type AbsoluteTemperature = Temperature (start=300, nominal = 500)
"generic temperature";
generic pressure
Parameters
| Type | Name | Default | Description |
| | start | 1e5 | |
Modelica definition
type AbsolutePressure = Pressure (start=1e5) "generic pressure";
HTML-documentation generated by Dymola Tue Jul 07 01:21:58 2009.