modelSmallScaleCHP_simple

Small scale CHP model using a constant efficiency and fluid ports

Extends from TransiEnt.Producer.Electrical.Base.PartialNaturalGasUnit (Adds a gas interface with a mass flow defining boundary to child components), TransiEnt.Basics.Icons.CHP.

Information

1. Purpose of model

Simple small scale CHP model with constant efficiencies.

2. Level of detail, physical effects considered, and physical insight

(none)

3. Limits of validity

(Purely technical component without physical modeling.)

4. Interfaces

Q_flow_set: set value for the heat flow

T_source_input_K: source temperature (ambient temperature) in K

waterPortIn: inlet port for heating water

waterPortOut: outlet port for heating water

P_el: needed electric power

epp: electric power port

heatFlowRateOut Q_flow_gen

5. Nomenclature

(no elements)

6. Governing Equations

(none)

7. Remarks for Usage

(none)

8. Validation

(no validation or testing necessary)

9. References

(none)

10. Version History

Model created by Carsten Bode (c.bode@tuhh.de), Aug 2018

Model modified by Jan Westphal (j.westphal@tuhh.de), Jul 2019 (added boolean for power port, added boolean for using gas port)

Model modified by Emil Dierkes (emil.dierkes@umsicht.fraunhofer.de) and Anne Hagemeier (anne.hagemeier@umsicht.fraunhofer.de), July 2021 (added boolean for using fluid ports, change_sign and output Q_flow_gen).

Parameters

TypeNameDefaultDescription
SI.HeatFlowRateQ_flow_nP_el_n/eta_el*eta_thNominal heat flow rate
Fundamental Definitions
TILMedia.VLEFluidTypes.BaseVLEFluidmediumGas (from PartialNaturalGasUnit)simCenter.gasModel1
TILMedia.VLEFluidTypes.BaseVLEFluidmediumWatersimCenter.fluid1Medium to be used
SI.Pressurep_dropheatFlowBoundary.simCenter.p_nom[2] - heatFlowBoundary.simCenter.p_nom[1]Pressure drop
SI.PowerP_el_n3.5e3Nominal electric power
SI.Efficiencyeta_el0.3Constant electric efficiency
SI.Efficiencyeta_th0.6Constant thermal efficiency
SI.SpecificEnthalpyHoC_fuel40e6Heat of combustion of fuel, will be used if gasport is deactivated in model
Configuration
BooleanuseGasPort (from PartialNaturalGasUnit)trueTrue if gas port shall be used
BooleanusePowerPorttrueTrue if power port shall be used
BooleanuseFluidPortstrueTrue if fluid ports shall be used
BooleanuseHeatPorttrueTrue if heat port shall be used
Booleanchange_signfalseIf false, setpoint value needs to be negative
Physical Constraints
BooleanuseSecondGasPort (from PartialNaturalGasUnit)false
Statistics
BooleanintegrateElPowersimCenter.integrateElPowertrue if electric powers shall be integrated
BooleanintegrateHeatFlowsimCenter.integrateHeatFlowtrue if heat flows shall be integrated
BooleancalculateCostsimCenter.calculateCosttrue if cost shall be calculated

Connectors

TypeNameDefaultDescription
TransiEnt.Basics.Interfaces.Gas.RealGasPortIngasPortIn (from PartialNaturalGasUnit)
TransiEnt.Basics.Interfaces.General.MassFlowRateOutm_flow_gas (from PartialNaturalGasUnit)
TransiEnt.Basics.Interfaces.Gas.RealGasPortIngasPortIn_2 (from PartialNaturalGasUnit)
TransiEnt.Basics.Interfaces.Thermal.FluidPortInwaterPortIn
TransiEnt.Basics.Interfaces.Thermal.FluidPortOutwaterPortOut
Modelica.Blocks.Interfaces.RealInputQ_flow_setSetpoint value of the heat flow rate, should be negative
Modelica.Blocks.Interfaces.RealOutputH_flowConsumed gas enthalpy flow
PowerPortModelepp
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_bheatPort
Basics.Interfaces.Thermal.HeatFlowRateOutQ_flow_gen

Components

TypeNameDefaultDescription
SimCentersimCenter (from PartialNaturalGasUnit)
TransiEnt.Components.Boundaries.Gas.BoundaryRealGas_hxim_flowmassFlowSink (from PartialNaturalGasUnit)
TransiEnt.Components.Sensors.RealGas.NCVSensorvleNCVSensor (from PartialNaturalGasUnit)
TransiEnt.Components.Boundaries.Gas.BoundaryRealGas_pTxmassFlowSink_2 (from PartialNaturalGasUnit)
TransiEnt.Components.Sensors.RealGas.NCVSensorvleNCVSensor_2 (from PartialNaturalGasUnit)
Modelica.Blocks.Sources.RealExpressionm_flow_gas_2_var (from PartialNaturalGasUnit)
Modelica.Blocks.Math.ProductH_flow_secondGasPort (from PartialNaturalGasUnit)
Modelica.Blocks.Sources.RealExpressionm_flow_gas_2_const (from PartialNaturalGasUnit)
Modelica.Blocks.Routing.RealPassThroughm_flow_gas_2 (from PartialNaturalGasUnit)
Modelica.Blocks.Sources.RealExpressionNCV_2_const (from PartialNaturalGasUnit)
Modelica.Blocks.Routing.RealPassThroughNCV_2 (from PartialNaturalGasUnit)
TransiEnt.ModelStatisticsmodelStatistics
PowerBoundaryModelPower
TransiEnt.Components.Statistics.Collectors.LocalCollectors.CogenerationPlantCostcollectCosts
TransiEnt.Components.Statistics.Collectors.LocalCollectors.CollectHeatingPowercollectHeatingPower
TransiEnt.Components.Boundaries.Heat.Heatflow_L1heatFlowBoundary
TransiEnt.Components.Sensors.TemperatureSensorT_in_sensor
TransiEnt.Components.Sensors.TemperatureSensorT_out_sensor
TransiEnt.Components.Statistics.Collectors.LocalCollectors.CollectElectricPowercollectElectricPower
Modelica.Blocks.Sources.RealExpressionP_el_set
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlowprescribedHeatFlow
Modelica.Blocks.Math.Gainsign
Modelica.Blocks.Math.Divisiondivision
Modelica.Blocks.Sources.RealExpressionrealExpression1
Modelica.Blocks.Sources.RealExpressionrealExpression3
Modelica.Blocks.Sources.RealExpressionHoC_constant
SI.PowerP_elElectric power

Contents

NameDescription
ProducerCosts
PowerBoundaryModel
PowerPortModel