Repository navigation
Draft: Feature/125 mediumsimplementation in fluidtsp on develop - #76
Draft
matchaniat wants to merge 286 commits into
Draft
matchaniat wants to merge 286 commits into
matchaniat wants to merge 286 commits into
Conversation
#125 Source See merge request thermosysproandco/ThermoSysPro!34
#125 SinkPQ See merge request thermosysproandco/ThermoSysPro!33
#125 SourceP See merge request thermosysproandco/ThermoSysPro!29
Resolve "Implementation of Modelica Medium in the `Fluid` subpackage of ThermoSysPro" See merge request thermosysproandco/ThermoSysPro!39
#125 VolumeA See merge request thermosysproandco/ThermoSysPro!28
…uidTSP' #125 ControlValve See merge request thermosysproandco/ThermoSysPro!35
#125 RefP See merge request thermosysproandco/ThermoSysPro!41
# Conflicts: # ThermoSysPro/Fluid/Examples/SimpleExamples/BoundaryConditions/package.order
#125 RefQ See merge request thermosysproandco/ThermoSysPro!38
…hasesSeparationFunction relativeVolatility and equilibriumPartition instead of PhasesSeparationFunction
…ermal conductivity (mul1, muv1, kl1, kv1, mul2, muv2, kl2, kv2) at bubble/dew states unconditionally. WaterSteam and Fluid 4.2 evaluate them at the actual node state, which differs strongly in superheated steam and subcooled water (hi about 25 % too high in the CombinedCycle HP superheaters). Use the node state in single phase and saturation states only in two-phase flow, as already done for cpl1/cpv1.
…transport-properties Fixed DynamicTwoPhaseFlowPipe properties evaluation as done previously
enthalpies Hrair = 2501.569e3*XeaH2O and Hrfg (Hrfum) = 2501.569e3*XsfH2O. These values are the zero of ThermoSysPro.Properties.FlueGases.FlueGases_h (mixture enthalpy at 0.01 degC plus Xh2o*Hlat), which Fluid 4.2 used for Hea and Hsf. The #125 port computes Hea and Hsf with Medium_FlueGases.specificEnthalpy_pTX, whose offset with respect to FlueGases_h depends on the composition (about +2.46 MJ/kg for humid air, +2.34 MJ/kg for flue gases). The balance therefore created energy: +50 K at the GTCombustionChamber outlet, +100 K flame temperature in FossilFuelBoiler. Take the reference as the Medium_FlueGases enthalpy of the same mixture at 273.16 K, which is equivalent to the FlueGases_h convention. Components: GTCombustionChamber, GenericCombustion, GenericCombustion1D, FossilFuelBoiler. InternalCombustionEngine still computes Hea/Hsf with FlueGases_h and is left for a separate port.
…cCombustion - InternalCombustionEngine: compute air/flue gases enthalpy, cp and density with Medium_FlueGases instead of FlueGases_h/_cp/_rho, and take the reference enthalpies at 273.16 K as in the other combustion components. - Book TestGenericCombustion1D: restore the 4.2 formulation (water sink with imposed flow rate and computed pressure, dynamic pipe).
…halpies Fix/125 combustion reference enthalpies
Complex fluid examples - PTSC and CombinedCycle_Load_100_50
…parameters Fix/125 remove component region parameters
- PartialSubCMedium: add the partialPartition interface (SubC, x, T -> C_BiPhase); equilibriumPartition extends it (signature and result unchanged). - DynamicDrum, Pressurizer, TwoPhaseCavity, TwoPhaseCavityOnePipe, TwoPhaseVolume, SimpleDynamicCondenser, SteamDryer, SteamExtractionSplitter: replaceable function tracePartition = Medium.equilibriumPartition constrainedby Medium.partialPartition, used for all their trace partitions (18 calls). - Example partition law approachToEquilibriumPartition(eta) in SimpleExamples.Media.WaterSteam_NonVolatileTrace, used by the new example Junctions.TestDryer_Traces_ApproachToEquilibrium (extends TestDryer_Traces). - PartialSubCMedium: short descriptions and Markdown documentation for all elements (partialRelativeVolatility, partialSaS, noSaS, C_BiPhase, ...). - Properties.Media: new package icon (ThermoSysProPackageIcon) and description.
…nger-cold-side Fixed Fluid DynamicPlateHeatExchanger as in WaterSteam
…r-154 Added geom to SG and deleted 4SG
Fix/125 trace transfer direction
…p' into feature/125-component-trace-partition
…ition Replaceable trace partition law in the two-phase Fluid components
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This pull request was migrated from GitLab
Original Description
New feature to Fluid subpackage, with traces and Medium implementation
Related to #125