GitLab maintenance scheduled form Friday, 2021-06-18 5:00pm to Satursday, 2021-06-19 10:00pm CT - Services will be unavailable during this time.

Commit de92e5fc authored by Elia Merzari's avatar Elia Merzari

Adding nek_master case

parent 37c6e332
[Mesh]
type = NekMesh
[]
[Variables]
[dummy]
[]
[]
[AuxVariables]
[avg_flux]
[]
[]
[Problem]
type = NekProblem
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Outputs]
[exo]
type = Exodus
output_dimension = 3
interval = 100
execute_on = 'timestep_end'
[]
[]
[Postprocessors]
[total_flux]
type = Receiver
default = 0
[]
[]
[Mesh]
type = FileMesh
file = spheres.e
[]
[Kernels]
[hc]
type = HeatConduction
variable = temp
[]
[heat]
type = BodyForce
#value = 35.37
value = 70
variable = temp
[]
[]
[BCs]
inactive = 'outside'
[outside]
type = DirichletBC
variable = temp
boundary = '1'
value = 300
[]
[match_nek]
type = MatchedValueBC
variable = temp
boundary = '1'
v = 'nek_temp'
[]
[]
[Materials]
[hc]
type = GenericConstantMaterial
prop_values = '0.2' # 20 W/mK -> 0.2 W/cmK
prop_names = 'thermal_conductivity'
[]
[]
[Executioner]
type = Transient
petsc_options_iname = '-pc_type -pc_hypre_type'
num_steps = 50000
petsc_options_value = 'hypre boomeramg'
dt = 4e-4
nl_rel_tol = 1e-5
[]
[Variables]
[temp]
[]
[]
[Outputs]
inteval = 100
exodus = true
[]
[MultiApps]
[nek]
type = TransientMultiApp
app_type = NekApp
input_files = 'nek.i'
[]
[]
[Transfers]
[nek_temp]
type = MultiAppNearestNodeTransfer
source_variable = temp
direction = from_multiapp
multi_app = nek
variable = nek_temp
fixed_meshes = true
[]
[avg_flux]
type = MultiAppNearestNodeTransfer
source_variable = avg_flux
direction = to_multiapp
multi_app = nek
variable = avg_flux
fixed_meshes = true
[]
[total_flux_to_nek]
type = MultiAppPostprocessorTransfer
to_postprocessor = total_flux
direction = to_multiapp
from_postprocessor = total_flux
multi_app = nek
[]
[]
[AuxVariables]
[nek_temp]
[]
[avg_flux]
family = MONOMIAL
order = CONSTANT
initial_condition = 0
[]
[]
[AuxKernels]
[avg_flux]
type = FluxAverageAux
coupled = 'temp'
diffusivity = thermal_conductivity
variable = avg_flux
boundary = '1'
[]
[]
[Postprocessors]
[total_flux_check]
# Should add up to the same thing as total_flux
type = SideIntegralVariablePostprocessor
variable = avg_flux
boundary = 1
[]
[total_flux]
type = SideFluxIntegral
diffusivity = thermal_conductivity
variable = 'temp'
boundary = '1'
[]
[average_flux]
type = SideFluxAverage
diffusivity = thermal_conductivity
variable = 'temp'
boundary = '1'
[]
[]
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