Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pomocne #44

Open
wants to merge 97 commits into
base: TESUseCase
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
c67133f
Addition of New File Structure for Vertical Integration with HERON
klfrick2 Mar 9, 2022
070ad89
Initial addition of Hydrogen Storage and HTSE TOML Costs files for Ve…
klfrick2 Mar 21, 2022
7834445
Cleaning the data in the HTSE to remove commas for TOML syntax
klfrick2 Mar 21, 2022
bb21c32
Added HYBRID logo to doc/logos folder
Nov 7, 2022
625c6f9
Added new TES model CS, dchBOP model CS, BOP CS, and test files
wanghy-anl Dec 20, 2022
0bd33d7
Added test file and gold file for BOP test
wanghy-anl Dec 20, 2022
6461db3
Added test file and gold file for TES models
wanghy-anl Dec 20, 2022
eed84ec
Added test for three-unit test case, BOP+TES+SES
wanghy-anl Dec 20, 2022
9f5ae6a
updating the 3-staged model and a CS of three staged turbine
JunyungKim Jan 11, 2023
e0c7ba3
some updates for 3-staged turbine model
JunyungKim Jan 11, 2023
45c7f7f
last pieces of updates are commited. Now the three-staged model shoul…
JunyungKim Jan 11, 2023
485c872
Transient simulation name has been changed.
JunyungKim Jan 11, 2023
6638258
original transient simulation model is placed back.
JunyungKim Jan 11, 2023
9c57ca7
regression test and information in the model are added.
JunyungKim Jan 12, 2023
6557998
Merge pull request #37 from JunyungKim/threeStageTurbineBOP
mikkdm Jan 12, 2023
3c7f152
Gold files are reviewed based on a 50,000 sec. simulation
JunyungKim Jan 13, 2023
cec9c33
Transient Model for HTGR-singleStageTurbine BOP_for parameter benchma…
JunyungKim Jan 17, 2023
d87ff44
HTGR_oneStageTurbineBOP model control logic blocks are brushed - mino…
JunyungKim Jan 17, 2023
d270b97
regression test for HTGR-oneStageTurbine BOP transient model is devel…
JunyungKim Jan 17, 2023
dab73d8
1. Documentation for Pebble_Bed_One-Stage_Rankine transient model is …
JunyungKim Jan 18, 2023
54cb8ed
Merge branch 'devel' into ANL_TES_testcases
mikkdm Feb 28, 2023
3b399f8
Merge pull request #35 from wanghy-anl/ANL_TES_testcases
mikkdm Feb 28, 2023
a17959a
Merge pull request #38 from JunyungKim/threeStageTurbineBOP
mikkdm Feb 28, 2023
764584b
Merge pull request #40 from JunyungKim/HTGR_oneStageTurbineBOP
mikkdm Feb 28, 2023
f6da42a
Merge pull request #41 from idaholab/frickl/Vertical_Integration
mikkdm Mar 1, 2023
3029820
test is made
Mar 2, 2023
89f25d6
another test git push
Mar 3, 2023
a85d41a
Trials_save
novova Mar 7, 2023
32b0267
update trials Tue
novova Mar 8, 2023
02fd2c9
Update trial
novova Mar 13, 2023
1b342a3
trials
novova Mar 13, 2023
c69df73
update
novova Mar 13, 2023
90229f0
update
novova Mar 15, 2023
105809c
Merge branch 'TESUseCase' into pomocne
novova Mar 17, 2023
6c80f04
update
novova Mar 20, 2023
66c24ab
u
novova Mar 21, 2023
157ffed
Update
novova Mar 21, 2023
8d90e53
uodate
novova Mar 22, 2023
d3e7aef
update
novova Mar 30, 2023
075d858
update
novova Apr 1, 2023
fab3a4e
update
novova Apr 5, 2023
f516613
update
novova Apr 11, 2023
8a2d442
update
novova Apr 15, 2023
bb20ec9
update
novova Apr 25, 2023
0035425
u
novova Apr 25, 2023
c4f773f
u
novova Apr 29, 2023
97c4874
u
novova May 1, 2023
0f2ee31
u
novova May 5, 2023
9ad55e8
Update Reheat_cycle_drumOFH_connectors_salt3_DrumNHES.mo
novova May 18, 2023
cae0df5
u
novova May 22, 2023
144605c
u
novova May 23, 2023
82b610a
u
novova May 24, 2023
5935697
add exp
novova May 24, 2023
522209f
u
novova May 24, 2023
0f246c6
u
novova May 26, 2023
c654338
u
novova May 26, 2023
21c85ec
u
novova May 27, 2023
e4c0ce0
vn_fix_a
novova Jun 2, 2023
1d5b6a9
u
novova Jun 5, 2023
38040ce
u
novova Jun 6, 2023
d997d6e
u
novova Jun 9, 2023
509cdd6
u
novova Jun 12, 2023
13637fe
AidanTestCommit
acrigby Jun 19, 2023
7a1b360
Resolved Merge Conflict
acrigby Jun 19, 2023
9a701f4
tedsUpdate
novova Jun 19, 2023
ef1c967
Exp_update
novova Jun 20, 2023
73edd34
Update to Model 1 HTGR Case
acrigby Jun 20, 2023
cc344dc
Merge branch 'pomocne' of https://github.com/novova/HYBRID into pomocne
acrigby Jun 20, 2023
93fc968
Update to low power case
acrigby Jun 20, 2023
6090b9a
General Updates to turbine power
acrigby Jun 20, 2023
b1c3c9b
Updates to power uprate
acrigby Jun 21, 2023
6daa166
Update CS_DivertPowerControl_HTGR_3VNb_AR1.mo
acrigby Jun 22, 2023
d36d9de
Completed and Tuned Uprated HTGR Model with 50% diversion
acrigby Jun 23, 2023
a3bc726
Update to maximum diversion model
acrigby Jun 26, 2023
a141fc4
Reduction in turbine efficiencies and addition of pump power
acrigby Jun 26, 2023
3c0c807
HeronDispatch
acrigby Jun 29, 2023
c5fbf50
Updates to case runs
acrigby Jun 29, 2023
37df182
Updates to Reheat Cycle
acrigby Jul 3, 2023
ddc81db
Merge branch 'pomocne' of https://github.com/novova/HYBRID into pomocne
novova Jul 5, 2023
a37ae60
ReheatCycle added Wpump
novova Jul 6, 2023
1f93f43
uptate Wpumps
novova Jul 6, 2023
abc2562
u
novova Jul 6, 2023
963fbe4
u
novova Jul 6, 2023
cab9653
u
novova Jul 6, 2023
456029c
Tuning of CS post pump power addition
acrigby Jul 10, 2023
8578e9e
ext_cycles
novova Jul 12, 2023
0f38e7b
u
novova Jul 12, 2023
f8e43ec
Adding plotting script
acrigby Jul 13, 2023
f84351c
Temporary commit mainly changes made for testing runs
acrigby Aug 2, 2023
6d79158
Merge branch 'pomocne' of https://github.com/novova/HYBRID into pomocne
novova Aug 2, 2023
1ede321
started uprated Reheat cycle
novova Aug 2, 2023
50f181c
Uprates
novova Aug 3, 2023
81b956b
Update HTGR_TES_RhC_6a4new_AR_vn1_uprate200MWth_176MWe_.mo
novova Aug 17, 2023
833d7c9
u
novova Aug 21, 2023
9aa4a6f
u
novova Aug 21, 2023
1fd64a7
u
novova Aug 22, 2023
28ceb96
Finalized models for report
novova Aug 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .hybridrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DYMOLA_PATH = C:/Program Files/Dymola 2022x/Modelica/Library/python_interface/dymola.egg
DYMOLA_PATH = C:/Program Files/Dymola 2023x/Modelica/Library/python_interface/dymola.egg
12 changes: 12 additions & 0 deletions Costs/HTSE/HTSE.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[HTSE]
Lifetime = 20 #years

[HTSE.Economics]
capex = 545263737 #Reference is INL/EXT-19-55395
FOM = 70752705
VOM = 100 # Just a placeholder to make sure it passes through
reference_size = 7.4 #kg/s of Hydrogen
Economies_of_scale = 0.955
Amortization_lifetime= 15 #years


12 changes: 12 additions & 0 deletions Costs/Hydrogen Storage/Hydrogen_Storage.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[HydrogenStorage]
Lifetime = 30 #years

[HydrogenStorage.Economics]
capex = 600 # $/kg Reference is INL/EXT-19-55395
FOM = 0
VOM = 0 # Just a placeholder to make sure it passes through
reference_size = 1 #kg of Storage
Economies_of_scale = 1
Amortization_lifetime= 5 #years


1 change: 1 addition & 0 deletions Costs/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Costs Readme File
4 changes: 4 additions & 0 deletions Models/NHES/ExperimentalSystems/MAGNET/Components/package.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
within NHES.ExperimentalSystems.MAGNET;
package Components

end Components;
Empty file.
152 changes: 152 additions & 0 deletions Models/NHES/ExperimentalSystems/MAGNET/Data/Data_base.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
within NHES.ExperimentalSystems.MAGNET.Data;
model Data_base
extends TRANSFORM.Icons.Data;

/*
source 1:
Functional and Operating Requirements for the Microreactor Agile Non-Nuclear Experimental Test Bed (MAGNET)
Document ID: FOR-523
Revision ID: 0
Date: 04/21/20

VC - vacuum (or environmental) chamber
RP - recuperator
HX - Rejection heat exchanger to chilled water
CO - compressor
PS - pressurization system
CW - chilled water

dp - outlet - inlet
dT - outlet - inlet

*/

// General
package Medium = Modelica.Media.IdealGases.SingleGases.N2;//TRANSFORM.Media.ExternalMedia.CoolProp.Nitrogen;
package Medium_cw = Modelica.Media.Water.StandardWater;

parameter Modelica.Units.SI.Length d_outer_4in=
TRANSFORM.Units.Conversions.Functions.Distance_m.from_in(4.5);
parameter Modelica.Units.SI.Length th_4in_sch40=
TRANSFORM.Units.Conversions.Functions.Distance_m.from_in(0.237);
parameter Modelica.Units.SI.Length d_inner_4in=d_outer_4in - 2*th_4in_sch40;

parameter Modelica.Units.SI.Length d_outer_3in=
TRANSFORM.Units.Conversions.Functions.Distance_m.from_in(3.5);
parameter Modelica.Units.SI.Length th_3in_sch40=
TRANSFORM.Units.Conversions.Functions.Distance_m.from_in(0.216);
parameter Modelica.Units.SI.Length d_inner_3in=d_outer_3in - 2*th_3in_sch40;

parameter Modelica.Units.SI.Pressure p_atm=1e5;

parameter Modelica.Units.SI.MassFlowRate m_flow=0.938;
parameter Modelica.Units.SI.MassFlowRate m_flow_SCFM=
TRANSFORM.Units.Conversions.Functions.VolumeFlowRate_m3_s.from_ft3_min(
1706); // ain't the same as m_flow...

parameter Modelica.Units.SI.Length length_dummy=1.0
"place holder, should be deleted";

// Piping: Recuperator to Vacuum Chamber (rp_vc)
parameter Modelica.Units.SI.Length d_rp_vc=d_inner_4in;
parameter Modelica.Units.SI.Length length_rp_vc=length_dummy;
parameter Modelica.Units.SI.Pressure p_rp_vc=
TRANSFORM.Units.Conversions.Functions.Pressure_Pa.from_bar(11.5) + p_atm;
parameter Modelica.Units.SI.Temperature T_rp_vc=
TRANSFORM.Units.Conversions.Functions.Temperature_K.from_degC(363);

// Vacuum chamber (vc)
parameter Modelica.Units.SI.Power Q_vc=250e3;
//parameter SI.Volume V_vc = TRANSFORM.Units.Conversions.Functions.Volume_m3.from_ft3(5*5*10); // taken from pg.6 of Environmental Chamber Relief Capacity Evaluation
parameter Modelica.Units.SI.PressureDifference dp_vc=p_vc_rp - p_rp_vc;
parameter Modelica.Units.SI.TemperatureDifference dT_vc=T_vc_rp - T_rp_vc;

// Piping: Vacuum Chamber to Recuperator (vc_rp)
parameter Modelica.Units.SI.Length d_vc_rp=d_inner_4in;
parameter Modelica.Units.SI.Length length_vc_rp=length_dummy;
parameter Modelica.Units.SI.Pressure p_vc_rp=
TRANSFORM.Units.Conversions.Functions.Pressure_Pa.from_bar(11.4) + p_atm;
parameter Modelica.Units.SI.Temperature T_vc_rp=
TRANSFORM.Units.Conversions.Functions.Temperature_K.from_degC(602);

// Recuperator (rp)
parameter Modelica.Units.SI.Power Q_flow_rp=m_flow*(Medium.specificEnthalpy_pT(
p_vc_rp, T_vc_rp) - Medium.specificEnthalpy_pT(p_rp_hx, T_rp_hx));
parameter Modelica.Units.SI.PressureDifference dp_rp_hot=p_rp_hx - p_vc_rp;
parameter Modelica.Units.SI.TemperatureDifference dT_rp_hot=T_rp_hx - T_vc_rp;
parameter Modelica.Units.SI.Pressure dp_rp_cold=p_rp_vc - p_co_rp;
parameter Modelica.Units.SI.TemperatureDifference dT_rp_cold=T_rp_vc - T_co_rp;
parameter Modelica.Units.SI.ThermalConductance UA_rp=47.874603;
// Calculated from PID

// Piping: Recuperator to Rejection Heat Exchanger (rp_hx)
parameter Modelica.Units.SI.Length d_rp_hx=d_inner_3in;
parameter Modelica.Units.SI.Length length_rp_hx=length_dummy;
parameter Modelica.Units.SI.Pressure p_rp_hx=
TRANSFORM.Units.Conversions.Functions.Pressure_Pa.from_bar(11.1) + p_atm;
parameter Modelica.Units.SI.Temperature T_rp_hx=
TRANSFORM.Units.Conversions.Functions.Temperature_K.from_degC(284);

// Rejection Heat Exchanger to Chilled Water (hx)
parameter Modelica.Units.SI.Power Q_flow_hx=m_flow*(Medium.specificEnthalpy_pT(
p_rp_hx, T_rp_hx) - Medium.specificEnthalpy_pT(p_hx_co, T_hx_co));
parameter Modelica.Units.SI.PressureDifference dp_hx_hot=p_hx_co - p_rp_hx;
parameter Modelica.Units.SI.TemperatureDifference dT_hx_hot=T_hx_co - T_rp_hx;
parameter Modelica.Units.SI.TemperatureDifference dT_hx_cold=50;
//guess
parameter Modelica.Units.SI.MassFlowRate m_flow_cw=Q_flow_hx/(
Medium_cw.specificEnthalpy_pT(p_hx_cw, T_hx_cw) -
Medium_cw.specificEnthalpy_pT(p_cw_hx, T_cw_hx)); //guess
parameter Modelica.Units.SI.ThermalConductance UA_hx=698.87;
// Calculated from PID

// Piping: Chilled Water to Rejection Heat Exchanger (cw_hx)
// parameter SI.Length d_cw_hx = d_inner_4in; //guess
// parameter SI.Length length_cw_hx = length_dummy; //guess
parameter Modelica.Units.SI.Pressure p_cw_hx=
TRANSFORM.Units.Conversions.Functions.Pressure_Pa.from_bar(1) + p_atm; //guess
parameter Modelica.Units.SI.Temperature T_cw_hx=
TRANSFORM.Units.Conversions.Functions.Temperature_K.from_degF(65);

// Piping: Rejection Heat Exchanger to Chilled Water (hx_cw)
// parameter SI.Length d_hx_cw = d_inner_4in; //guess
// parameter SI.Length length_hx_cw = length_dummy; //guess
parameter Modelica.Units.SI.Pressure p_hx_cw=
TRANSFORM.Units.Conversions.Functions.Pressure_Pa.from_bar(1) + p_atm; //guess
parameter Modelica.Units.SI.Temperature T_hx_cw=T_cw_hx + dT_hx_cold;
//guess

// Piping: Rejection Heat Exchanger to Compressor (hx_co)
parameter Modelica.Units.SI.Length d_hx_co=d_inner_3in;
parameter Modelica.Units.SI.Length length_hx_co=length_dummy;
parameter Modelica.Units.SI.Pressure p_hx_co=
TRANSFORM.Units.Conversions.Functions.Pressure_Pa.from_bar(10.8) + p_atm;
parameter Modelica.Units.SI.Temperature T_hx_co=
TRANSFORM.Units.Conversions.Functions.Temperature_K.from_degC(20);

// Compressor (co)
parameter Modelica.Units.SI.Power Q_flow_co=m_flow*(Medium.specificEnthalpy_pT(
p_co_rp, T_co_rp) - Medium.specificEnthalpy_pT(p_hx_co, T_hx_co));
parameter Modelica.Units.SI.PressureDifference dp_co=p_co_rp - p_hx_co;
parameter Modelica.Units.SI.TemperatureDifference dT_co=T_co_rp - T_hx_co;

// Piping: Compressor to Recuperator (co_rp)
parameter Modelica.Units.SI.Length d_co_rp=d_inner_3in;
parameter Modelica.Units.SI.Length length_co_rp=length_dummy;
parameter Modelica.Units.SI.Pressure p_co_rp=
TRANSFORM.Units.Conversions.Functions.Pressure_Pa.from_bar(12) + p_atm;
parameter Modelica.Units.SI.Temperature T_co_rp=
TRANSFORM.Units.Conversions.Functions.Temperature_K.from_degC(37.8);

// Pressurization System (ps)
parameter Modelica.Units.SI.Pressure p_ps=
TRANSFORM.Units.Conversions.Functions.Pressure_Pa.from_bar(22) + p_atm;
parameter Modelica.Units.SI.Temperature T_ps=
TRANSFORM.Units.Conversions.Functions.Temperature_K.from_degC(20); // this is a guess as not specified. Could be calculated from thermodynamic estimates.

annotation (defaultComponentName="data",Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(
coordinateSystem(preserveAspectRatio=false)),
Documentation(info="<html>
<p><img src=\"modelica://TRANSFORM_Examples/Resources/Images/magnetSystemBasic.png\"/></p>
</html>"));
end Data_base;
195 changes: 195 additions & 0 deletions Models/NHES/ExperimentalSystems/MAGNET/Data/Data_base_An.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
within NHES.ExperimentalSystems.MAGNET.Data;
model Data_base_An
extends TRANSFORM.Icons.Data;

/*
source 1:
Functional and Operating Requirements for the Microreactor Agile Non-Nuclear Experimental Test Bed (MAGNET)
Document ID: FOR-523
Revision ID: 0
Date: 05/20/22

VC - vacuum (or environmental) chamber
RP - recuperator
HX - Rejection heat exchanger to chilled water
CO - compressor
PS - pressurization system
CW - chilled water

dp - outlet - inlet
dT - outlet - inlet

*/

// General
package Medium = Modelica.Media.IdealGases.SingleGases.N2;//TRANSFORM.Media.ExternalMedia.CoolProp.Nitrogen;
package Medium_cw = Modelica.Media.Water.StandardWater;
package Medium_TEDS =
TRANSFORM.Media.Fluids.Therminol_66.LinearTherminol66_A_250C;

parameter Modelica.Units.SI.Pressure P_Release=p_vc_rp/2.975
"Boundary release valve pressure downstream of precooler"
annotation (dialog(group="System Boundary Conditions"));

parameter Modelica.Units.SI.Length d_outer_4in=
TRANSFORM.Units.Conversions.Functions.Distance_m.from_in(4.5);
parameter Modelica.Units.SI.Length th_4in_sch40=
TRANSFORM.Units.Conversions.Functions.Distance_m.from_in(0.237);
parameter Modelica.Units.SI.Length d_inner_4in=d_outer_4in - 2*th_4in_sch40;

parameter Modelica.Units.SI.Length d_outer_3in=
TRANSFORM.Units.Conversions.Functions.Distance_m.from_in(3.5);
parameter Modelica.Units.SI.Length th_3in_sch40=
TRANSFORM.Units.Conversions.Functions.Distance_m.from_in(0.216);
parameter Modelica.Units.SI.Length d_inner_3in=d_outer_3in - 2*th_3in_sch40;

parameter Modelica.Units.SI.Pressure p_atm=1e5;

parameter Modelica.Units.SI.MassFlowRate m_flow=0.938;
parameter Modelica.Units.SI.MassFlowRate m_flow_SCFM=
TRANSFORM.Units.Conversions.Functions.VolumeFlowRate_m3_s.from_ft3_min(
1706); // ain't the same as m_flow...

parameter Modelica.Units.SI.Length length_dummy=1.0
"place holder, should be deleted";

// Piping: Recuperator to Vacuum Chamber (rp_vc)
parameter Modelica.Units.SI.Length d_rp_vc=d_inner_4in;
parameter Modelica.Units.SI.Length length_rp_vc=
TRANSFORM.Units.Conversions.Functions.Distance_m.from_ft(18); //length_dummy;
parameter Modelica.Units.SI.Pressure p_rp_vc=
TRANSFORM.Units.Conversions.Functions.Pressure_Pa.from_bar(11.5) + p_atm;
parameter Modelica.Units.SI.Temperature T_rp_vc=
TRANSFORM.Units.Conversions.Functions.Temperature_K.from_degC(363);

// Vacuum chamber (vc)
parameter Modelica.Units.SI.Power Q_vc=250e3;
//parameter SI.Volume V_vc = TRANSFORM.Units.Conversions.Functions.Volume_m3.from_ft3(5*5*10); // taken from pg.6 of Environmental Chamber Relief Capacity Evaluation
parameter Modelica.Units.SI.PressureDifference dp_vc=p_vc_rp - p_rp_vc;
parameter Modelica.Units.SI.TemperatureDifference dT_vc=T_vc_rp - T_rp_vc;

// Piping: Vacuum Chamber to Recuperator (vc_rp)
parameter Modelica.Units.SI.Length d_vc_rp=d_inner_4in;
parameter Modelica.Units.SI.Length length_vc_rp=
TRANSFORM.Units.Conversions.Functions.Distance_m.from_ft(18); //length_dummy;
parameter Modelica.Units.SI.Pressure p_vc_rp=
TRANSFORM.Units.Conversions.Functions.Pressure_Pa.from_bar(11.4) + p_atm;
parameter Modelica.Units.SI.Temperature T_vc_rp=
TRANSFORM.Units.Conversions.Functions.Temperature_K.from_degC(602);
parameter Modelica.Units.SI.Temperature T_TEDS_rp=
TRANSFORM.Units.Conversions.Functions.Temperature_K.from_degC(378);

// Recuperator (rp)
//parameter SI.Power Q_flow_rp = m_flow*(Medium.specificEnthalpy_pT(p_vc_rp,T_vc_rp) - Medium.specificEnthalpy_pT(p_rp_hx,T_rp_hx));
parameter Modelica.Units.SI.Power Q_flow_rp=m_flow*(Medium.specificEnthalpy_pT(
p_rp_vc, T_rp_vc) - Medium.specificEnthalpy_pT(p_co_rp, T_co_rp));
parameter Modelica.Units.SI.PressureDifference dp_rp_hot=p_rp_hx - p_vc_rp;
parameter Modelica.Units.SI.TemperatureDifference dT_rp_hot=T_rp_hx - T_vc_rp;
parameter Modelica.Units.SI.Pressure dp_rp_cold=p_rp_vc - p_co_rp;
parameter Modelica.Units.SI.TemperatureDifference dT_rp_cold=T_rp_vc - T_co_rp;
parameter Modelica.Units.SI.ThermalConductance UA_rp=261.842;
// calculated from MAGNET_TEDS_Boundaries_1
//
parameter Modelica.Units.SI.ThermalConductance UA_rp_MAGNET=48.7654;
// Calculated from MAGNET_insulated_pipes_SS
//47.874603;// calculated by Scott Greenwood

// Piping: Recuperator to Rejection Heat Exchanger (rp_hx)
parameter Modelica.Units.SI.Length d_rp_hx=d_inner_3in;
parameter Modelica.Units.SI.Length length_rp_hx=
TRANSFORM.Units.Conversions.Functions.Distance_m.from_ft(6 + 3); //length_dummy;
parameter Modelica.Units.SI.Pressure p_rp_hx=
TRANSFORM.Units.Conversions.Functions.Pressure_Pa.from_bar(11.1) + p_atm;
parameter Modelica.Units.SI.Temperature T_rp_hx=
TRANSFORM.Units.Conversions.Functions.Temperature_K.from_degC(284);

// Rejection Heat Exchanger to Chilled Water (hx)
parameter Modelica.Units.SI.Power Q_flow_hx=m_flow*(Medium.specificEnthalpy_pT(
p_rp_hx, T_rp_hx) - Medium.specificEnthalpy_pT(p_hx_co, T_hx_co));
//parameter SI.Power Q_flow_hx = m_flow*(Medium.specificEnthalpy_pT(p_hx_cw,T_hx_cw) - Medium.specificEnthalpy_pT(p_cw_hx,T_cw_hx));
parameter Modelica.Units.SI.PressureDifference dp_hx_hot=p_hx_co - p_rp_hx;
parameter Modelica.Units.SI.TemperatureDifference dT_hx_hot=T_hx_co - T_rp_hx;
parameter Modelica.Units.SI.TemperatureDifference dT_hx_cold=50;
//guess
parameter Modelica.Units.SI.MassFlowRate m_flow_cw=Q_flow_hx/(
Medium_cw.specificEnthalpy_pT(p_hx_cw, T_hx_cw) -
Medium_cw.specificEnthalpy_pT(p_cw_hx, T_cw_hx)); //guess
parameter Modelica.Units.SI.ThermalConductance UA_hx=380.68774;
// Calculated from MAGNET_insulated_pipes_SS
parameter Modelica.Units.SI.ThermalConductance UA_hx_MAGNET=698.87;
// Calculated by SCott Greenwood from PID

// Piping: Chilled Water to Rejection Heat Exchanger (cw_hx)
// parameter SI.Length d_cw_hx = d_inner_4in; //guess
// parameter SI.Length length_cw_hx = length_dummy; //guess
parameter Modelica.Units.SI.Pressure p_cw_hx=
TRANSFORM.Units.Conversions.Functions.Pressure_Pa.from_bar(1) + p_atm; //guess
parameter Modelica.Units.SI.Temperature T_cw_hx=
TRANSFORM.Units.Conversions.Functions.Temperature_K.from_degF(65);

// Piping: Rejection Heat Exchanger to Chilled Water (hx_cw)
// parameter SI.Length d_hx_cw = d_inner_4in; //guess
// parameter SI.Length length_hx_cw = length_dummy; //guess
parameter Modelica.Units.SI.Pressure p_hx_cw=
TRANSFORM.Units.Conversions.Functions.Pressure_Pa.from_bar(1) + p_atm; //guess
parameter Modelica.Units.SI.Temperature T_hx_cw=T_cw_hx + dT_hx_cold;
//guess

// Piping: Rejection Heat Exchanger to Compressor (hx_co)
parameter Modelica.Units.SI.Length d_hx_co=d_inner_3in;
parameter Modelica.Units.SI.Length length_hx_co=
TRANSFORM.Units.Conversions.Functions.Distance_m.from_ft(84); //length_dummy;
parameter Modelica.Units.SI.Pressure p_hx_co=
TRANSFORM.Units.Conversions.Functions.Pressure_Pa.from_bar(10.8) + p_atm;
parameter Modelica.Units.SI.Temperature T_hx_co=
TRANSFORM.Units.Conversions.Functions.Temperature_K.from_degC(20);

// Compressor (co)
parameter Modelica.Units.SI.Power Q_flow_co=m_flow*(Medium.specificEnthalpy_pT(
p_co_rp, T_co_rp) - Medium.specificEnthalpy_pT(p_hx_co, T_hx_co));
parameter Modelica.Units.SI.PressureDifference dp_co=p_co_rp - p_hx_co;
parameter Modelica.Units.SI.TemperatureDifference dT_co=T_co_rp - T_hx_co;

// Piping: Compressor to Recuperator (co_rp)
parameter Modelica.Units.SI.Length d_co_rp=d_inner_3in;
parameter Modelica.Units.SI.Length length_co_rp=
TRANSFORM.Units.Conversions.Functions.Distance_m.from_ft(114.625); //length_dummy;
parameter Modelica.Units.SI.Pressure p_co_rp=
TRANSFORM.Units.Conversions.Functions.Pressure_Pa.from_bar(12) + p_atm;
parameter Modelica.Units.SI.Temperature T_co_rp=
TRANSFORM.Units.Conversions.Functions.Temperature_K.from_degC(37.8);

// Pressurization System (ps)
parameter Modelica.Units.SI.Pressure p_ps=
TRANSFORM.Units.Conversions.Functions.Pressure_Pa.from_bar(22) + p_atm;
parameter Modelica.Units.SI.Temperature T_ps=
TRANSFORM.Units.Conversions.Functions.Temperature_K.from_degC(20); // this is a guess as not specified. Could be calculated from thermodynamic estimates.

// TEDS
parameter Modelica.Units.SI.Temperature T_hot_side=
TRANSFORM.Units.Conversions.Functions.Temperature_K.from_degC(325);
parameter Modelica.Units.SI.Temperature T_cold_side=
TRANSFORM.Units.Conversions.Functions.Temperature_K.from_degC(225);

// Gas Turbine
parameter Modelica.Units.SI.Power GT_demand=30e3;
//kW
parameter Real eta_mech = 0.98 "Mechanical efficiency";

// MAGNET_TEDS_HX
parameter Modelica.Units.SI.ThermalConductance UA_MAGNET_TEDS=73.33;
// Calculated from PID
parameter Modelica.Units.SI.Pressure p_TEDS_out=
TRANSFORM.Units.Conversions.Functions.Pressure_Pa.from_bar(0.18);
parameter Modelica.Units.SI.Pressure p_TEDS_in=p_TEDS_out + 100;
parameter Modelica.Units.SI.Power Q_MAGNET_TEDS=TEDS_nominal_flow_rate*(
Medium_TEDS.specificEnthalpy_pT(p_TEDS_out, T_hot_side) -
Medium_TEDS.specificEnthalpy_pT(p_TEDS_in, T_cold_side));
parameter Modelica.Units.SI.MassFlowRate TEDS_nominal_flow_rate=0.689;
parameter Modelica.Units.SI.MassFlowRate m_flow_TEDS=TEDS_nominal_flow_rate;
annotation (defaultComponentName="data",Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(
coordinateSystem(preserveAspectRatio=false)),
Documentation(info="<html>
<p><img src=\"modelica://TRANSFORM_Examples/Resources/Images/magnetSystemBasic.png\"/></p>
</html>")); //0.735; // Modeling the Idaho National Laboratory Thermal-Energy Distribution System (TEDS) in the Modelica Ecosystem
end Data_base_An;
14 changes: 14 additions & 0 deletions Models/NHES/ExperimentalSystems/MAGNET/Data/Summary.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
within NHES.ExperimentalSystems.MAGNET.Data;
model Summary
extends TRANSFORM.Icons.Record;

input Modelica.Units.SI.Temperature Ts[:] annotation (Dialog(group="Inputs"));
input Modelica.Units.SI.Pressure ps[:] annotation (Dialog(group="Inputs"));
input Modelica.Units.SI.MassFlowRate m_flows[:]
annotation (Dialog(group="Inputs"));
input Modelica.Units.SI.HeatFlowRate Q_flows[:]
annotation (Dialog(group="Inputs"));

annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(
coordinateSystem(preserveAspectRatio=false)));
end Summary;
Loading