modelTestWaterFlow1DFEMnm_E
Test case for Flow1DFEM
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
The model is designed to test the component Flow1DFEMnm vs the reference model Flow1DFEM (fluid side of a heat exchanger, finite element method).
The following relative errors can be used to check the results vs the reference model:
- delta_pA/B (pressure)
- delta_hA/B (specific enthalpy profile)
- delta_TA/B (semperature profile)
- delta_wA/B (mass flowrate profile)
- delta_phiA/B (heat flux profile)
This model represent the two fluid sides of a heat exchanger in counterflow configuration. The operating fluid is liquid water.
The mass flow rate during the experiment and initial conditions are the same for the two sides.
During the simulation, the inlet specific enthalpy for hexA ("hot side") is changed:
- t=50 s, Step variation of the specific enthalpy of the fluid entering hexA .
Simulation Interval = [0...900] sec
Integration Algorithm = DASSL
Algorithm Tolerance = 1e-6
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | Nnodes | 12 | |
| Modelica.Units.SI.Length | Lhex | 200 | |
| Modelica.Units.SI.Diameter | Dihex | 0.02 | |
| Modelica.Units.SI.Radius | rhex | Dihex/2 | |
| Modelica.Units.SI.Length | omegahex | Modelica.Constants.pi*Dihex | |
| Modelica.Units.SI.Area | Ahex | Modelica.Constants.pi*rhex^2 | |
| Real | Cfhex | 0.005 | |
| Modelica.Units.SI.MassFlowRate | whex | 0.31 | |
| Modelica.Units.SI.Pressure | phex | 3e5 | |
| Modelica.Units.SI.SpecificEnthalpy | hinhex | 1e5 | |
| Modelica.Units.SI.SpecificEnthalpy | houthex | 1e5 |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| TestWaterFlow1DFEM_E | refData | ||
| FluidPh.Flow1DFEMnm | hexA | ||
| FluidPh.SinkPressure | SideA_FluidSink | ||
| FluidPh.SinkPressure | SideB_FluidSink | ||
| FluidPh.SourceMassFlow | SideA_MassFlowRate | ||
| FluidPh.ValveLin | ValveLin1 | ||
| FluidPh.ValveLin | ValveLin2 | ||
| FluidPh.Flow1DFEMnm | hexB | ||
| FluidPh.SensT | SensT_A_in | ||
| Modelica.Blocks.Sources.Step | SideA_InSpecEnth | ||
| Modelica.Blocks.Sources.Constant | Constant1 | ||
| Modelica.Blocks.Sources.Constant | Constant2 | ||
| FluidPh.SensT | SensT_B_in | ||
| FluidPh.SourceMassFlow | SideB_MassFlowRate | ||
| FluidPh.SensT | SensT_A_out | ||
| FluidPh.SensT | SensT_B_out | ||
| Thermal.CounterCurrentFEM | CounterCurrent1 | ||
| System | system | ||
| SI.Pressure | delta_pA | (refData.hexA.p - hexA.p)/1e5 | |
| SI.SpecificEnthalpy | delta_hA | (refData.hexA.h - hexA.h)/1e5 | |
| SI.TemperatureDifference | delta_TA | (refData.hexA.T - hexA.T)/1e2 | |
| SI.MassFlowRate | delta_wA | (refData.hexA.w - hexA.w)/0.1 | |
| SI.HeatFlux | delta_phiA | (refData.hexA.heatTransfer.phi_f - hexA.phi)/1e4 | |
| SI.Pressure | delta_pB | (refData.hexB.p - hexB.p)/1e5 | |
| SI.SpecificEnthalpy | delta_hB | (refData.hexB.h - hexB.h)/1e5 | |
| SI.TemperatureDifference | delta_TB | (refData.hexB.T - hexB.T)/1e2 | |
| SI.MassFlowRate | delta_wB | (refData.hexB.w - hexB.w)/0.1 | |
| SI.HeatFlux | delta_phiB | (refData.hexB.heatTransfer.phi_f - hexB.phi)/1e4 |
Contents
| Name | Description |
|---|---|
Revisions
- 5 Jan 2026 by Andrea Giorgio Bartolini:
First release.