Commit 572a6a6f authored by Patrick Shriwise's avatar Patrick Shriwise
Browse files

Adding cardinal input files for the 300k case.

parent 2cc6e8d4
[Mesh]
type = FileMesh
file = spheres_generator_in.e
[]
[Variables]
[dummy]
[]
[]
[AuxVariables]
[average_temp]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[average_temp]
# This is here just so we can see that the transfer worked
variable = average_temp
type = SpatialUserObjectAux
user_object = average_temp
execute_on = 'initial timestep_begin'
[]
[]
[Problem]
type = OpenMCProblem
power = 127602000 # 1000 per pebble
tally_type = 'cell'
mesh_template = 'sphere.e'
centers_file = 'pebble_centers_rescaled.txt'
volumes = '14.137166941154067'
[]
[Executioner]
type = Transient
num_steps = 500000
dt = 5e-3
[]
#[Outputs]
# [exo]
# type = Exodus
# output_dimension = 3
# interval = 1
# file_base = ../../../../../../../../scratch/gastdr/coe/146_pebbles/openmc
# []
#[]
[Mesh]
type = FileMesh
file = spheres_generator_in.e
[]
[Variables]
[temp]
initial_condition = 300
[]
[]
[AuxVariables]
[heat_source]
family = MONOMIAL
order = CONSTANT
[]
[average_temp]
family = MONOMIAL
order = CONSTANT
[]
[]
[Kernels]
[hc]
type = HeatConduction
variable = temp
[]
[heat]
type = CoupledForce
variable = temp
v = heat_source
[]
[]
[BCs]
[outside]
type = DirichletBC
variable = temp
boundary = '1'
value = 300
[]
[]
[AuxKernels]
[average_temp]
variable = average_temp
type = SpatialUserObjectAux
user_object = average_temp
execute_on = 'initial timestep_end'
[]
[]
[Materials]
[hc]
type = GenericConstantMaterial
prop_values = '0.1' # 20 W/mK -> 0.2 W/cmK
prop_names = 'thermal_conductivity'
[]
[]
[Executioner]
type = Transient
petsc_options_iname = '-pc_type -pc_hypre_type'
num_steps = 5
petsc_options_value = 'hypre boomeramg'
dt = 1e-4
nl_rel_tol = 1e-5
[]
[Outputs]
exodus = true
[]
[UserObjects]
[./average_temp]
type = NearestPointAverage
variable = temp
execute_on = 'initial timestep_end' # Evaluate on timestep end so OpenMC can get updated values next timestep
points_file = 'pebble_centers_rescaled.txt'
[]
[]
[MultiApps]
[openmc]
type = TransientMultiApp
app_type = OpenMCApp
input_files = 'openmc.i'
execute_on = timestep_begin
[]
[]
[Transfers]
[./heat_source_from_openmc]
type = MultiAppCopyTransfer
direction = from_multiapp
multi_app = openmc
source_variable = heat_source
variable = heat_source
[]
[./average_temp_to_openmc]
type = NearestPointReceiverTransfer
direction = to_multiapp
multi_app = openmc
from_uo = average_temp
to_uo = average_temp
[]
[]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment