modelGasConsumerPipe_HFlow
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 gross 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
Created by Lisa Andresen (andresen@tuhh.de) in Jun 2016
Edited by Carsten Bode(c.bode@tuhh.de) in May 2020 (added option to use isothermal pipe model)
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Pipe Network › Parameters | |||
| SI.Length | length | 3 | Average distance to a consumer within this district |
| SI.Length | diameter | 0.4 | Diameter |
| Integer | N_tubes | 1 | Number of parallel tubes |
| Integer | N_cv | 1 | Number of finite Volumes |
| Boolean | useIsothPipe | false | true: isothermal pipe model, false: adiabatic pipe model |
| General › General | |||
| TILMedia.VLEFluidTypes.BaseVLEFluid | medium | simCenter.gasModel1 | Medium to be used |
| Integer | flowDefinition | if mode == "Consumer" then 3 elseif mode == "Producer" then 4 else 1 | Flow definition for sensors |
| Boolean | variable_H_flow | true | True, if enthalpy flow defined by variable input |
| SI.EnthalpyFlowRate | H_flow_const | 1e6 | Constant enthalpy flow rate |
| Pipe Network › Initialization | |||
| SI.MassFraction[medium.nc - 1] | xi_start | medium.xi_default | composition of the medium for initialization (nc-1) |
| SI.Pressure[N_cv] | p_start | ones(N_cv)*15e5 | Pressure |
| SI.EnthalpyMassSpecific[N_cv] | h_start | TILMedia.Internals.VLEFluidConfigurations.FullyMixtureCompatible.VLEFluidFunctions.specificEnthalpy_pTxi(medium, p_start, T_start, xi_start) | Enthalpy |
| SI.Temperature[N_cv] | T_start | ones(N_cv)*simCenter.T_ground | Temperature |
| SI.MassFlowRate[N_cv + 1] | m_flow_start | ones(N_cv + 1)*140 | Mass flow rate |
| Sink › General | |||
| SI.MassFraction[medium.nc - 1] | xi_const | medium.xi_default | Constant composition of medium (nc-1) |
| SI.Temperature | T_const | 283.15 | constant Temperature |
| Pipe Network › Nominal values | |||
| SI.MassFraction[medium.nc - 1] | xi_nom | medium.xi_default | Nominal composition of the medium (nc-1) |
| SI.Pressure[N_cv] | p_nom | ones(N_cv)*15e5 | Nominal absolute pressure |
| SI.EnthalpyMassSpecific[N_cv] | h_nom | ones(N_cv)*788440 | Nominal enthalpy |
| SI.MassFlowRate | m_flow_nom | 140 | Nominal mass flow |
| SI.PressureDifference | Delta_p_nom | 3e4 | Nominal pressure loss |
| Pipes | |||
| Integer | massBalance | 1 | Mass balance and species balance fomulation |
| General › Controller | |||
| String | mode | "Consumer" | |
| Boolean | usePIDcontroller | true | if 'true' m_flow_desired' is calculated by PID |
| Modelica.Blocks.Types.SimpleController | controllerType | Modelica.Blocks.Types.SimpleController.P | Type of controller |
| Real | k | 1000 | Gain for controller in maximum feed in control |
| Real | Ti | 0.1 | Integrator time constant for controller in maximum feed in control |
| Real | Td | 0.1 | Derivative time constant for controller in maximum feed in control |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| TransiEnt.Basics.Interfaces.Gas.RealGasPortIn | fluidPortIn | ||
| TransiEnt.Basics.Interfaces.Gas.EnthalpyFlowRateIn | H_flow | Input for enthalpy flow rate |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| TransiEnt.SimCenter | simCenter | ||
| TransiEnt.Components.Gas.VolumesValvesFittings.Pipes.PipeFlow_L4_Simple | pipe | ||
| TransiEnt.Components.Sensors.RealGas.MassFlowSensor | massflowSensor | ||
| TransiEnt.Components.Boundaries.Gas.BoundaryRealGas_Txim_flow | sink | ||
| Control.GCVController | gCVController | ||
| Components.Sensors.RealGas.GCVSensor | vleGCVSensor | ||
| TransiEnt.Components.Sensors.RealGas.CompositionSensor | vleCompositionSensor | ||
| Components.Gas.VolumesValvesFittings.Pipes.PipeFlow_L4_Simple_isoth | pipe_isoth | ||
| Modelica.Blocks.Sources.Constant | H_flow_const_ |
Contents
| Name | Description |
|---|---|