modelGasConsumerPipe_HFlow_NCV

Gas sink dependent on net calorific value control with a pipe representing the distance to a consumer within this district

Extends from TransiEnt.Basics.Icons.GasSink (Icon for gas sinks).

Information

1. Purpose of model

Real gas consumer with one pipe. Gas mass flow rate demand controlled by measured net calorific value.

Pipe can reprensent the average distance to a consumer.

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

Consideres pressure loss in the pipe network of the district.

3. Limits of validity

(no remarks)

4. Interfaces

RealGas, RealInput for gas enthalpy flow rate in [W]

5. Nomenclature

(no remarks)

6. Governing Equations

(no remarks)

7. Remarks for Usage

(no remarks)

8. Validation

(no validation or testing necessary)

9. References

(no remarks)

10. Version History

Model created by Carsten Bode(c.bode@tuhh.de) in Nov 2020 (copied and adapted GasConsumerPipe_Hflow)

Parameters

TypeNameDefaultDescription
Pipe Network › Parameters
SI.Lengthlength3Average distance to a consumer within this district
SI.Lengthdiameter0.4Diameter
IntegerN_tubes1Number of parallel tubes
IntegerN_cv1Number of finite Volumes
BooleanuseIsothPipefalsetrue: isothermal pipe model, false: adiabatic pipe model
General › General
TILMedia.VLEFluidTypes.BaseVLEFluidmediumsimCenter.gasModel1Medium to be used
IntegerflowDefinitionif mode == "Consumer" then 3 elseif mode == "Producer" then 4 else 1Flow definition for sensors
Booleanvariable_H_flowtrueTrue, if enthalpy flow defined by variable input
SI.EnthalpyFlowRateH_flow_const1e6Constant enthalpy flow rate
Pipe Network › Initialization
SI.MassFraction[medium.nc - 1]xi_startmedium.xi_defaultcomposition of the medium for initialization (nc-1)
SI.Pressure[N_cv]p_startones(N_cv)*15e5Pressure
SI.EnthalpyMassSpecific[N_cv]h_startTILMedia.Internals.VLEFluidConfigurations.FullyMixtureCompatible.VLEFluidFunctions.specificEnthalpy_pTxi(medium, p_start, T_start, xi_start)Enthalpy
SI.Temperature[N_cv]T_startones(N_cv)*simCenter.T_groundTemperature
SI.MassFlowRate[N_cv + 1]m_flow_startones(N_cv + 1)*140Mass flow rate
Sink › General
SI.MassFraction[medium.nc - 1]xi_constmedium.xi_defaultConstant composition of medium (nc-1)
SI.TemperatureT_const283.15constant Temperature
Pipe Network › Nominal values
SI.MassFraction[medium.nc - 1]xi_nommedium.xi_defaultNominal composition of the medium (nc-1)
SI.Pressure[N_cv]p_nomones(N_cv)*15e5Nominal absolute pressure
SI.EnthalpyMassSpecific[N_cv]h_nomones(N_cv)*788440Nominal enthalpy
SI.MassFlowRatem_flow_nom140Nominal mass flow
SI.PressureDifferenceDelta_p_nom3e4Nominal pressure loss
Pipes
IntegermassBalance1Mass balance and species balance fomulation
General › Controller
Stringmode"Consumer"
BooleanusePIDcontrollertrueif 'true' m_flow_desired' is calculated by PID
Modelica.Blocks.Types.SimpleControllercontrollerTypeModelica.Blocks.Types.SimpleController.PType of controller
Realk1000Gain for controller in maximum feed in control
RealTi0.1Integrator time constant for controller in maximum feed in control
RealTd0.1Derivative time constant for controller in maximum feed in control

Connectors

TypeNameDefaultDescription
TransiEnt.Basics.Interfaces.Gas.RealGasPortInfluidPortIn
TransiEnt.Basics.Interfaces.Gas.EnthalpyFlowRateInH_flowInput for enthalpy flow rate

Components

TypeNameDefaultDescription
TransiEnt.SimCentersimCenter
TransiEnt.Components.Gas.VolumesValvesFittings.Pipes.PipeFlow_L4_Simplepipe
TransiEnt.Components.Sensors.RealGas.MassFlowSensormassflowSensor
TransiEnt.Components.Boundaries.Gas.BoundaryRealGas_Txim_flowsink
Control.NCVControllernCVController
Components.Sensors.RealGas.NCVSensorvleNCVSensor
TransiEnt.Components.Sensors.RealGas.CompositionSensorvleCompositionSensor
Components.Gas.VolumesValvesFittings.Pipes.PipeFlow_L4_Simple_isothpipe_isoth
Modelica.Blocks.Sources.ConstantH_flow_const_

Contents

NameDescription
PressureLoss