# Parameters for heat storage simulation

geometry:
  L: 160.0  # Length of cylinder [m]
  R_solid: 0.2 # Outer radius of cylinder [m]
  R_pipe: 0.048  # 0.074 Radius of pipe [m]

fluid:
  v: 0.5                 # m/s
  rho: 920.0        # Density kg/m^3
  cp: 2200.0        # Specific heat J/(kg·K)
  k: 0.12              # Thermal conductivityW/(m·K)
  nu: 4.0e-6        # 5.0e-6  Kinematic viscosity m^2/s
  # !!!kinematic viscosity typically decreases when temperature increases. Not implemented yet

solid:
  rho: 2300.0 # Density kg/m^3
  cp: 1000.0 # Specific heat J/(kg·K)
  k: 1.0 # Thermal conductivityW/(m·K)

mesh:
  Nr_solid: 60
  Nz_solid: 100
  # Nz_fluid: set automatically to Nz_solid
  grad: 2.6  # 1.2 - 3, smaller is milder
  bump: 0.3 # 0.2 - 0.5, bigger is milder

operating_conditions:
  T_cold: 293.15  # Cold temperature [K]
  T_hot: 698.15  # Hot temperature [K]
  T_initial: 293.15  # Initial temperature [K]

controller_parameters:
  tau_heater: 600 # [s] rise time of input temperature,
  dT_max: 60.0
  dT_min: -30.0
  phases: [     # charge, discharge, steady
    {"type": "charge", "duration": 8.0},
    #{"type": "steady", "duration": 0.25},
    {"type": "discharge", "duration": 16.0}
    ]

# convective heat transfer coefficient,
# usually denoted h and expressed in units of W/(m²·K).
htc:
  h: null           # null -> compute via Gnielinski once; set a number to override

numerics:
  cfl_target: 0.8 # < 1.0
  dt: null         # null -> pick from CFL
  alpha_f: 0.0     # 0.1 - 0.3 recommended, axial diffusion, artificial

animation:
  video_duration: 1.0 # [minutes] videon kesto, 48 kuvaa/s