Skip to content

Commit

Permalink
Address reviewer comments p2 idaholab#29484
Browse files Browse the repository at this point in the history
  • Loading branch information
kyriv1980 committed Nov 5, 2024
1 parent 987b168 commit 8d63a0b
Show file tree
Hide file tree
Showing 36 changed files with 87 additions and 294 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

!syntax description /Problem/TriInterWrapper1PhaseProblem

##
## Overview

<!-- -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ T_in = 588.5
[]
coord_type = RZ
rz_coord_axis = Y
beta_rotation = 90
[]

[Functions]
Expand Down Expand Up @@ -175,26 +176,6 @@ T_in = 588.5
[]
[]

[UserObjects]
[q_prime_uo]
type = LayeredSideAverage
boundary = right
variable = q_prime
num_layers = 1000
direction = y
execute_on = 'TIMESTEP_END'
[]

[pin_diameter_uo]
type = LayeredSideAverage
boundary = right
variable = pin_diameter_deformed
num_layers = 1000
direction = y
execute_on = 'TIMESTEP_END'
[]
[]

[Preconditioning]
[smp]
type = SMP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,25 +206,6 @@ pitch = 7.26e-3
exodus = true
[]

# Need to have as many points as pins in the object
[UserObjects]
[Tpin_avg_uo]
type = NearestPointLayeredAverage
direction = z
num_layers = 1000
variable = Tpin
block = fuel_pins
points = ' 0 0 0
${fparse 1.0 * pitch} 0 0
${fparse -1.0 * pitch} 0 0
${fparse 0.5 * pitch} ${fparse 0.866 * pitch} 0
${fparse 0.5 * pitch} ${fparse -0.866 * pitch} 0
${fparse -0.5 * pitch} ${fparse 0.866 * pitch} 0
${fparse -0.5 * pitch} ${fparse -0.866 * pitch} 0'
execute_on = timestep_end
[]
[]

[Executioner]
type = Steady
petsc_options_iname = '-pc_type -pc_hypre_type'
Expand Down Expand Up @@ -261,24 +242,29 @@ pitch = 7.26e-3

[Transfers]
[Tpin] # send pin surface temperature to bison,
type = MultiAppUserObjectTransferSCM
type = MultiAppGeneralFieldNearestLocationTransfer
to_multi_app = sub
variable = Pin_surface_temperature
user_object = Tpin_avg_uo
source_variable = Tpin
execute_on = 'timestep_end'
[]

[diameter] # send diameter information from /BISON/heatConduction to subchannel
type = MultiAppUserObjectTransferSCM
type = MultiAppGeneralFieldNearestLocationTransfer
from_multi_app = sub
variable = Dpin
user_object = pin_diameter_uo
source_variable = pin_diameter_deformed
from_boundaries = right
execute_on = 'timestep_end'
[]

[q_prime] # send heat flux from /BISON/heatConduction to subchannel
type = MultiAppUserObjectTransferSCM
type = MultiAppGeneralFieldNearestLocationTransfer
from_multi_app = sub
variable = q_prime
user_object = q_prime_uo
source_variable = q_prime
from_boundaries = right
execute_on = 'timestep_end'
[]

[subchannel_transfer]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,28 +265,33 @@ heated_length = 1.0

[Transfers]
[Tpin] # send pin surface temperature to bison,
type = MultiAppUserObjectTransferSCM
type = MultiAppGeneralFieldNearestLocationTransfer
to_multi_app = sub
variable = Pin_surface_temperature
user_object = Tpin_avg_uo
source_variable = Tpin
execute_on = 'timestep_end'
[]

[diameter] # send diameter information from /BISON/heatConduction to subchannel
type = MultiAppUserObjectTransferSCM
type = MultiAppGeneralFieldNearestLocationTransfer
from_multi_app = sub
variable = Dpin
user_object = pin_diameter_uo
source_variable = pin_diameter_deformed
from_boundaries = right
execute_on = 'timestep_end'
[]

[q_prime] # send heat flux from /BISON/heatConduction to subchannel
type = MultiAppUserObjectTransferSCM
type = MultiAppGeneralFieldNearestLocationTransfer
from_multi_app = sub
variable = q_prime
user_object = q_prime_uo
source_variable = q_prime
from_boundaries = right
execute_on = 'timestep_end'
[]

[subchannel_transfer]
type = MultiAppDetailedSolutionTransfer
type = MultiAppGeneralFieldNearestLocationTransfer
to_multi_app = viz
variable = 'mdot SumWij P DP h T rho mu S w_perim'
[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ T_in = 359.15
nx = 20
ymax = ${heated_length}
ny = 100 # number of axial cells
beta_rotation = 90
[]
coord_type = RZ
rz_coord_axis = Y
beta_rotation = 90
[]

[Functions]
Expand Down Expand Up @@ -177,26 +179,6 @@ T_in = 359.15
[]
[]

[UserObjects]
[q_prime_uo]
type = LayeredSideAverage
boundary = right
variable = q_prime
num_layers = 1000
direction = y
execute_on = 'TIMESTEP_END'
[]

[pin_diameter_uo]
type = LayeredSideAverage
boundary = right
variable = pin_diameter_deformed
num_layers = 1000
direction = y
execute_on = 'TIMESTEP_END'
[]
[]

[Preconditioning]
[smp]
type = SMP
Expand Down Expand Up @@ -243,9 +225,6 @@ T_in = 359.15
type = VolumePostprocessor
use_displaced_mesh = true
[]

# [qprime_integral]
# []
[]

[Outputs]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,36 +193,6 @@ pitch = 0.0126
[]
[]

[UserObjects]
[Tpin_avg_uo]
type = NearestPointLayeredAverage
direction = z
num_layers = 1000
variable = Tpin
block = fuel_pins
points = '${fparse -1.5 * pitch} ${fparse -1.5 * pitch} 0
${fparse -0.5 * pitch} ${fparse -1.5 * pitch} 0
${fparse 0.5 * pitch} ${fparse -1.5 * pitch} 0
${fparse 1.5 * pitch} ${fparse -1.5 * pitch} 0

${fparse -1.5 * pitch} ${fparse -0.5 * pitch} 0
${fparse -0.5 * pitch} ${fparse -0.5 * pitch} 0
${fparse 0.5 * pitch} ${fparse -0.5 * pitch} 0
${fparse 1.5 * pitch} ${fparse -0.5 * pitch} 0

${fparse -1.5 * pitch} ${fparse 0.5 * pitch} 0
${fparse -0.5 * pitch} ${fparse 0.5 * pitch} 0
${fparse 0.5 * pitch} ${fparse 0.5 * pitch} 0
${fparse 1.5 * pitch} ${fparse 0.5 * pitch} 0

${fparse -1.5 * pitch} ${fparse 1.5 * pitch} 0
${fparse -0.5 * pitch} ${fparse 1.5 * pitch} 0
${fparse 0.5 * pitch} ${fparse 1.5 * pitch} 0
${fparse 1.5 * pitch} ${fparse 1.5 * pitch} 0'
execute_on = timestep_end
[]
[]

[Outputs]
exodus = true
[Temp_Out_MATRIX]
Expand Down Expand Up @@ -267,26 +237,6 @@ pitch = 0.0126
bounding_box_padding = '0 0 0.1'
[]

# [sub1]
# app_type = BisonApp
# type = FullSolveMultiApp
# input_files = sub_hot_corner.i # seperate file for multiapps due to radial power profile (each sub has different power)
# execute_on = 'timestep_end'
# positions = '${fparse -1.5 * pitch} ${fparse -1.5 * pitch} 0'
# output_in_position = true
# bounding_box_padding = '0 0 0.1'
# []
#
# [sub2]
# app_type = BisonApp
# type = FullSolveMultiApp
# input_files = sub_cold_corner.i # seperate file for multiapps due to radial power profile (each sub has different power)
# execute_on = 'timestep_end'
# positions = '${fparse 1.5 * pitch} ${fparse 1.5 * pitch} 0'
# output_in_position = true
# bounding_box_padding = '0 0 0.1'
# []

[viz]
type = FullSolveMultiApp
input_files = "detailedMesh.i"
Expand All @@ -296,50 +246,22 @@ pitch = 0.0126

[Transfers]
[Tpin] # send pin surface temperature to bison,
type = MultiAppUserObjectTransferSCM
type = MultiAppGeneralFieldNearestLocationTransfer
to_multi_app = sub
variable = Pin_surface_temperature
user_object = Tpin_avg_uo
source_variable = Tpin
execute_on = 'timestep_end'
[]

[q_prime]
type = MultiAppUserObjectTransferSCM
[q_prime] # send heat flux from /BISON/heatConduction to subchannel
type = MultiAppGeneralFieldNearestLocationTransfer
from_multi_app = sub
variable = q_prime
user_object = q_prime_uo
source_variable = q_prime
from_boundaries = clad_outside_right
execute_on = 'timestep_end'
[]

# [Tpin1] # send pin surface temperature to bison,
# type = MultiAppUserObjectTransferSCM
# to_multi_app = sub1
# variable = Pin_surface_temperature
# user_object = Tpin_avg_uo
# []
#
# [Tpin2] # send pin surface temperature to bison,
# type = MultiAppUserObjectTransferSCM
# to_multi_app = sub2
# variable = Pin_surface_temperature
# user_object = Tpin_avg_uo
# []
#
# [q_prime1] # send heat flux from BISON/heatConduction to subchannel
# type = MultiAppUserObjectTransferSCM
# from_multi_app = sub1
# variable = q_prime
# user_object = q_prime_uo
# execute_on = 'timestep_end'
# []
#
# [q_prime2] # send heat flux from BISON/heatConduction to subchannel
# type = MultiAppUserObjectTransferSCM
# from_multi_app = sub2
# variable = q_prime
# user_object = q_prime_uo
# execute_on = 'timestep_end'
# []

###### Transfers to the detailedMesh at the end of the coupled simulations
[subchannel_transfer]
type = MultiAppDetailedSolutionTransfer
Expand Down
16 changes: 16 additions & 0 deletions modules/subchannel/examples/coupling/BISON_SCM/power_profile.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
1.0
1.0
1.0
1.0
1.0
1.0
1.0
1.0
1.0
1.0
1.0
1.0
1.0
1.0
1.0
1.0
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ DY = ${fparse y_location + clad_bot_gap_height + top_bot_clad_height}
pellet_mesh_density = customize
clad_mesh_density = customize
[]
coord_type = RZ
rz_coord_axis = Y
beta_rotation = 90
[]

[Functions]
Expand Down Expand Up @@ -155,22 +158,6 @@ DY = ${fparse y_location + clad_bot_gap_height + top_bot_clad_height}
[]
[]

[UserObjects]
[q_prime_uo]
type = LayeredSideAverage
boundary = clad_outside_right
variable = q_prime
num_layers = 1000
direction = y
execute_on = 'TIMESTEP_END'
[]
[]

[Problem]
coord_type = RZ
rz_coord_axis = Y
[]

[Executioner]
type = Steady
solve_type = 'PJFNK'
Expand Down
Loading

0 comments on commit 8d63a0b

Please sign in to comment.