Skip to content

Commit

Permalink
Adapt to MOOSE changes in multiapp parameters, refs idaholab/moose#19676
Browse files Browse the repository at this point in the history
  • Loading branch information
GiudGiud committed Apr 26, 2022
1 parent 81efb87 commit 6799c49
Show file tree
Hide file tree
Showing 15 changed files with 77 additions and 154 deletions.
6 changes: 2 additions & 4 deletions mrad/steady/MP_FC_ss_bison.i
Expand Up @@ -237,17 +237,15 @@
[Transfers]
[from_sockeye_flux] # Transfer heat pipe heat flux from Sockeye subapps
type = MultiAppNearestNodeTransfer
direction = from_multiapp
multi_app = sockeye
from_multi_app = sockeye
source_variable = flux_uo
variable = hp_flux_aux
execute_on = 'timestep_begin'
fixed_meshes = true
[]
[to_sockeye_temp] # Transfer heat pipe surface temperature to Sockeye subapps
type = MultiAppNearestNodeTransfer
direction = to_multiapp
multi_app = sockeye
to_multi_app = sockeye
source_variable = temp_uo
variable = T_wall_var
execute_on = 'timestep_begin'
Expand Down
27 changes: 9 additions & 18 deletions msr/msfr/steady/run_neutronics.i
Expand Up @@ -175,65 +175,56 @@
[Transfers]
[power_density]
type = MultiAppProjectionTransfer
multi_app = ns
direction = to_multiapp
to_multi_app = ns
source_variable = power_density
variable = power_density
[]
[fission_source]
type = MultiAppProjectionTransfer
multi_app = ns
direction = to_multiapp
to_multi_app = ns
source_variable = fission_source
variable = fission_source
[]

[c1]
type = MultiAppProjectionTransfer
multi_app = ns
direction = from_multiapp
from_multi_app = ns
source_variable = 'c1'
variable = 'c1'
[]
[c2]
type = MultiAppProjectionTransfer
multi_app = ns
direction = from_multiapp
from_multi_app = ns
source_variable = 'c2'
variable = 'c2'
[]
[c3]
type = MultiAppProjectionTransfer
multi_app = ns
direction = from_multiapp
from_multi_app = ns
source_variable = 'c3'
variable = 'c3'
[]
[c4]
type = MultiAppProjectionTransfer
multi_app = ns
direction = from_multiapp
from_multi_app = ns
source_variable = 'c4'
variable = 'c4'
[]
[c5]
type = MultiAppProjectionTransfer
multi_app = ns
direction = from_multiapp
from_multi_app = ns
source_variable = 'c5'
variable = 'c5'
[]
[c6]
type = MultiAppProjectionTransfer
multi_app = ns
direction = from_multiapp
from_multi_app = ns
source_variable = 'c6'
variable = 'c6'
[]
[T]
type = MultiAppProjectionTransfer
multi_app = ns
direction = from_multiapp
from_multi_app = ns
source_variable = 'T'
variable = 'tfuel'
[]
Expand Down
30 changes: 10 additions & 20 deletions msr/msfr/transient/run_neutronics.i
Expand Up @@ -239,78 +239,68 @@
[Transfers]
[power_density]
type = MultiAppProjectionTransfer
multi_app = ns
direction = to_multiapp
to_multi_app = ns
source_variable = power_density
variable = power_density
[]
[fission_source]
type = MultiAppProjectionTransfer
multi_app = ns
direction = to_multiapp
to_multi_app = ns
source_variable = fission_source
variable = fission_source
[]
[power]
type = MultiAppPostprocessorTransfer
multi_app = ns
direction = to_multiapp
to_multi_app = ns
reduction_type = minimum
from_postprocessor = power
to_postprocessor = power
[]
[c1]
type = MultiAppProjectionTransfer
multi_app = ns
direction = from_multiapp
from_multi_app = ns
source_variable = 'c1'
variable = 'c1'
execute_on = 'initial timestep_end'
[]
[c2]
type = MultiAppProjectionTransfer
multi_app = ns
direction = from_multiapp
from_multi_app = ns
source_variable = 'c2'
variable = 'c2'
execute_on = 'initial timestep_end'
[]
[c3]
type = MultiAppProjectionTransfer
multi_app = ns
direction = from_multiapp
from_multi_app = ns
source_variable = 'c3'
variable = 'c3'
execute_on = 'initial timestep_end'
[]
[c4]
type = MultiAppProjectionTransfer
multi_app = ns
direction = from_multiapp
from_multi_app = ns
source_variable = 'c4'
variable = 'c4'
execute_on = 'initial timestep_end'
[]
[c5]
type = MultiAppProjectionTransfer
multi_app = ns
direction = from_multiapp
from_multi_app = ns
source_variable = 'c5'
variable = 'c5'
execute_on = 'initial timestep_end'
[]
[c6]
type = MultiAppProjectionTransfer
multi_app = ns
direction = from_multiapp
from_multi_app = ns
source_variable = 'c6'
variable = 'c6'
execute_on = 'initial timestep_end'
[]
[T]
type = MultiAppProjectionTransfer
multi_app = ns
direction = from_multiapp
from_multi_app = ns
source_variable = 'T'
variable = 'tfuel'
[]
Expand Down
9 changes: 3 additions & 6 deletions pbfhr/plant/ss0_neutrons.i
Expand Up @@ -401,8 +401,7 @@ fis_fract = ${fparse 1 - dh_fract} # Fission power fraction at t = 0.
[Transfers]
[power_tosub]
type = MultiAppProjectionTransfer
direction = to_multiapp
multi_app = thermo
to_multi_app = thermo
source_variable = total_power_density
variable = power_distribution
to_postprocessors_to_be_preserved = power
Expand All @@ -411,16 +410,14 @@ fis_fract = ${fparse 1 - dh_fract} # Fission power fraction at t = 0.
[]
[Tcoolant_fromsub]
type = MultiAppInterpolationTransfer
direction = from_multiapp
multi_app = thermo
from_multi_app = thermo
source_variable = temp_fluid
variable = Tsalt
execute_on = 'timestep_end'
[]
[Tfuel_fromsub]
type = MultiAppInterpolationTransfer
direction = from_multiapp
multi_app = thermo
from_multi_app = thermo
source_variable = temp_solid
variable = Tfuel
execute_on = 'timestep_end'
Expand Down
12 changes: 4 additions & 8 deletions pbfhr/plant/ss1_combined.i
Expand Up @@ -777,31 +777,27 @@ outlet_pressure_val = 2e5 # Pa, default, for initialization
[Transfers]
[fuel_matrix_heat_source]
type = MultiAppProjectionTransfer
direction = to_multiapp
multi_app = coarse_mesh
to_multi_app = coarse_mesh
source_variable = power_distribution
variable = power_distribution
[]
[pebble_surface_temp]
type = MultiAppProjectionTransfer
direction = to_multiapp
multi_app = coarse_mesh
to_multi_app = coarse_mesh
source_variable = temp_solid
variable = temp_solid
[]

[send_flow_BCs]
type = MultiAppPostprocessorVectorTransfer
direction = to_multiapp
multi_app = primary_loop
to_multi_app = primary_loop
from_postprocessors = 'pressure_in mass_flow_out T_flow_out T_flow_in'
to_postprocessors = 'Core_inlet_pressure Core_outlet_mdot Core_outlet_T Core_inlet_T_reversal'
[]

[receive_flow_BCs]
type = MultiAppPostprocessorVectorTransfer
direction = from_multiapp
multi_app = primary_loop
from_multi_app = primary_loop
from_postprocessors = 'Core_outlet_p Core_inlet_mdot Core_inlet_T'
to_postprocessors = 'outlet_pressure inlet_mdot inlet_temp_fluid'
[]
Expand Down
24 changes: 8 additions & 16 deletions pbfhr/plant/ss3_coarse_pebble_mesh.i
Expand Up @@ -160,59 +160,51 @@ power_density = ${fparse total_power / model_vol}
[Transfers]
[fuel_matrix_heat_source]
type = MultiAppVariableValueSampleTransfer
direction = to_multiapp
multi_app = fuel_pebble
to_multi_app = fuel_pebble
source_variable = power_distribution
variable = fuel_matrix_heat_source
[]
[pebble_surface_temp_1]
type = MultiAppVariableValueSamplePostprocessorTransfer
direction = to_multiapp
multi_app = fuel_pebble
to_multi_app = fuel_pebble
source_variable = temp_solid
postprocessor = pebble_surface_T
[]
[pebble_surface_temp_2]
type = MultiAppVariableValueSamplePostprocessorTransfer
direction = to_multiapp
multi_app = graphite_pebble
to_multi_app = graphite_pebble
source_variable = temp_solid
postprocessor = pebble_surface_T
[]

# received for visualization purposes only
[max_T_UO2]
type = MultiAppPostprocessorInterpolationTransfer
direction = from_multiapp
multi_app = fuel_pebble
from_multi_app = fuel_pebble
postprocessor = max_T_UO2
variable = max_T_UO2
[]
[average_T_UO2]
type = MultiAppPostprocessorInterpolationTransfer
direction = from_multiapp
multi_app = fuel_pebble
from_multi_app = fuel_pebble
postprocessor = average_T_UO2
variable = average_T_UO2
[]
[average_T_matrix]
type = MultiAppPostprocessorInterpolationTransfer
direction = from_multiapp
multi_app = fuel_pebble
from_multi_app = fuel_pebble
postprocessor = average_T_matrix
variable = average_T_matrix
[]
[average_T_graphite]
type = MultiAppPostprocessorInterpolationTransfer
direction = from_multiapp
multi_app = graphite_pebble
from_multi_app = graphite_pebble
postprocessor = average_T
variable = average_T_graphite
[]
[average_T_shell]
type = MultiAppPostprocessorInterpolationTransfer
direction = from_multiapp
multi_app = fuel_pebble
from_multi_app = fuel_pebble
postprocessor = average_T_shell
variable = average_T_shell
[]
Expand Down
15 changes: 5 additions & 10 deletions pbfhr/plant/ss4_fuel_pebble.i
Expand Up @@ -249,15 +249,13 @@ pebble_diameter = 0.03
[Transfers]
[particle_heat_source]
type = MultiAppVariableValueSampleTransfer
direction = to_multiapp
multi_app = particle
to_multi_app = particle
source_variable = fuel_matrix_heat_source
variable = fuel_matrix_heat_source
[]
[particle_surface_temp]
type = MultiAppPostprocessorTransfer
direction = from_multiapp
multi_app = particle
from_multi_app = particle
from_postprocessor = surface_T
to_postprocessor = particle_surface_T
reduction_type = average
Expand All @@ -266,24 +264,21 @@ pebble_diameter = 0.03
# for visualization
[max_T_UO2]
type = MultiAppPostprocessorTransfer
direction = from_multiapp
multi_app = particle
from_multi_app = particle
from_postprocessor = max_T_UO2
to_postprocessor = max_T_UO2_microscale
reduction_type = average
[]
[average_T_UO2]
type = MultiAppPostprocessorTransfer
direction = from_multiapp
multi_app = particle
from_multi_app = particle
from_postprocessor = average_T_UO2
to_postprocessor = average_T_UO2_microscale
reduction_type = average
[]
[average_T_matrix]
type = MultiAppPostprocessorTransfer
direction = from_multiapp
multi_app = particle
from_multi_app = particle
from_postprocessor = average_T_matrix
to_postprocessor = average_T_matrix_microscale
reduction_type = average
Expand Down
9 changes: 3 additions & 6 deletions pbfhr/reflector/cht/solid.i
Expand Up @@ -135,26 +135,23 @@ core_heat_flux = 5e3
[temperature]
type = MultiAppNearestNodeTransfer
source_variable = temp
direction = from_multiapp
multi_app = nek
from_multi_app = nek
variable = nek_temp
fixed_meshes = true
[]
[flux]
type = MultiAppNearestNodeTransfer
source_variable = flux
direction = to_multiapp
multi_app = nek
to_multi_app = nek
variable = avg_flux
fixed_meshes = true
source_boundary = 'fluid_solid_interface'
[]
[flux_integral]
type = MultiAppPostprocessorTransfer
to_postprocessor = flux_integral
direction = to_multiapp
from_postprocessor = flux_integral
multi_app = nek
to_multi_app = nek
[]
[]

Expand Down

0 comments on commit 6799c49

Please sign in to comment.