 &topology
  nr=300
  nt=262
  np=407
 /
 &data
  r0=1.00
  r1=30.00
  rfrac=       0.000000E+00, 3.103448E-04, 2.295490E-03, 2.316727E-02,
    5.920314E-01, 1.000000E+00
  drratio=     1.000000E+00, 4.350000E+00, 9.142857E+00, 2.088778E+01,
    1.000000E+00
  nfrmesh=5
  tfrac=       0.000000E+00, 1.666667E-01, 2.656351E-01, 3.462222E-01,
    3.615375E-01, 3.918766E-01, 4.171714E-01, 4.475105E-01,
    4.571667E-01, 6.250760E-01, 8.333333E-01, 1.000000E+00
  dtratio=     5.873946E-01, 5.702860E-01, 3.883370E-01, 1.000000E+00,
    4.394335E-01, 1.000000E+00, 2.275657E+00, 1.000000E+00,
    4.017678E+00, 1.973587E+00, 1.425761E+00
  nftmesh=5
  pfrac=       0.000000E+00, 6.076351E-02, 2.215156E-01, 3.326267E-01,
    4.437378E-01, 6.006324E-01, 7.118509E-01, 7.958056E-01,
    7.961488E-01, 8.113183E-01, 8.539351E-01, 8.691046E-01,
    9.530593E-01
  dpratio=     1.361903E+00, 1.000000E+00, 1.515898E+00, 6.596748E-01,
    1.000000E+00, 5.000000E-01, 2.489000E-01, 1.000000E+00,
    4.394335E-01, 1.000000E+00, 2.275657E+00, 4.017678E+00,
    1.468534E+00
  nfpmesh=5
  phishift= 0.000000E+00
!
! RESTART INFORMATION
!
  rs_final=.false.
  legacy_output_filenames=.true.
!
! PLOT INFORMATION
!
  long_sequence_numbers=.true.
  ipltxint=200
  plotlist='vr','vt','vp','br','bt','bp','jr','jt','jp','rho','t','heat','ep','em','zp','zm'
  tmax=2.000000
!
! 2D TP SLICE INFORMATION
!
  slice_txint=0.1
  slice_plotlist='vr','vt','vp','br','bt','bp','jr','jt','jp','rho','t','ep','em','zp','zm'
  slice_tp_radii=28.0
!
! Timestep and preconditioners
!
  ntmax=100000000
  dtmax=0.002
  dtmin=1e-7
  dt_init=0.000001
  use_dt_init_on_restart=.false.
  dt_max_wave_cfl=200.
!
! RESITIVITY / VISCOSITY
!
  slund=1.0e6
  eta_profile='CUSTOM_TP+R_PROFILE'
  eta_profile_tp_file='dsprof_lin_limited_tp.h5'
!
  visc=0.001
  visc_profile='CUSTOM_TP+R_PROFILE'
  visc_profile_tp_file='dsprof_sqrt_limited_tp.h5'
!
! CALCULATION FRAME
!
  calculation_frame='COROTATING'
  restart_calculation_frame='COROTATING'
!
! MAGNETIC FIELD SETUP
!
  initial_field='POTENTIAL_FIELD'
  bnfile='br_thermo_cme_tp.h5'
  potential_field_bc = 'CLOSED_WALL'
  b_in_gauss=.true.
!
! REMESH OPTIONS
!
  time_at_start=0.0
!
! REMESHED FIELDS (3D Initial Condition)
!
  load_fields(1)%field='rho'
  load_fields(1)%fname='init/rho_remesh.h5'
  load_fields(1)%action='initial'
  load_fields(2)%field='t'
  load_fields(2)%fname='init/t_remesh.h5'
  load_fields(2)%action='initial'
  load_fields(3)%field='ep'
  load_fields(3)%fname='init/ep_remesh.h5'
  load_fields(3)%action='initial'
  load_fields(4)%field='em'
  load_fields(4)%fname='init/em_remesh.h5'
  load_fields(4)%action='initial'
  load_fields(5)%field='br'
  load_fields(5)%fname='init/br_sub_remesh.h5'
  load_fields(5)%action='add'
  load_fields(6)%field='bt'
  load_fields(6)%fname='init/bt_sub_remesh.h5'
  load_fields(6)%action='add'
  load_fields(7)%field='bp'
  load_fields(7)%fname='init/bp_sub_remesh.h5'
  load_fields(7)%action='add'
  load_fields(8)%field='vr'
  load_fields(8)%fname='init/vr_remesh.h5'
  load_fields(8)%action='initial'
  load_fields(9)%field='vt'
  load_fields(9)%fname='init/vt_remesh.h5'
  load_fields(9)%action='initial'
  load_fields(10)%field='vp'
  load_fields(10)%fname='init/vp_remesh.h5'
  load_fields(10)%action='initial'
  load_fields(11)%field='zp'
  load_fields(11)%fname='init/zp_remesh.h5'
  load_fields(11)%action='initial'
  load_fields(12)%field='zm'
  load_fields(12)%fname='init/zm_remesh.h5'
  load_fields(12)%action='initial'
!
! ALGORITHM OPTIONS
!
  use_sts_visc=.true.
  use_sts_tc=.true.
  ifprec_t=3
  ifprec_v=3
  ifprec_pot2d=3
  ifprec_divb=3
!
  epscg_a=1.e-9
  epscg_v=1.e-9
  epscg_potfld=1.e-9
  upwind_a=1.
  upwind_v=1.
  use_old_vdgv=.true.
!
  ncgmax=1000000
!
!
! BOUNDARY CONDITIONS
!
  tchromo=17500.00
  tbc0=17500.00
  rho0=40000.00
  char_bc0=.true.
  char_bc1=.true.
  ubzero=.false.
  cfl=0.45
!
! THERMODYNAMIC MHD PARAMETERS
!
  advance_tc=.true.
  tcond=1.0
  t_cutoff1=4.00e5
  nfilt_kappa=0
!
  radloss=1.00
  ifimplrad=0
  rad_law='CHIANTI_v713_HYBRID'
!
  tc_r=10.0
  tc_dr=1.0
  tc_fac0=1.0
  tc_fac1=0.0
  alpha_nocoll=1.0
  tc_nocoll_r=10.0
  tc_nocoll_dr=1.0
!
! Pole Supercell Option
!
  filter_poles=.true.
!
! LIMITERS
!
  iftfloor = .true.
  tfloor = 10000.0
  ifcheck0temp=.true.
  rhobc_maxfac_r1 = 0.1
  ifrholimit = .true.
  rho_limit_factor = 0.007
  rho_limit_file = 'rho3d_initial_1au_rho40k.h5'
  max_alfven_speed_rho_mod = 40.0
!
! HEATING. Skip 1st 5 empirical heating sources as they
!          are reduced to zero during relaxation run.
!
! HEAT 6: Keep SS heating with the WTD model
!
  heatsource(6)%active = .true.
  heatsource(6)%name = 'SS'
  heatsource(6)%use_mask = .false.
  heatsource(6)%type = 'zw-exponential'
  heatsource(6)%h0 = 0.10
  heatsource(6)%lambda = 0.03
  heatsource(6)%b_profile%active = .false.
  heatsource(6)%b_attenuation = .false.
  heatsource(6)%r_profile%active = .false.
  heatsource(6)%t_profile%active = .false.
!
! HEAT 7: Keep a bit of FW heating with the WTD model
!
  heatsource(7)%active = .true.
  heatsource(7)%name = 'FW'
  heatsource(7)%use_mask = .false.
  heatsource(7)%type = 'zw-exponential'
  heatsource(7)%h0 = .000054375
  heatsource(7)%lambda = 1.00
  heatsource(7)%b_profile%active = .false.
  heatsource(7)%b_attenuation = .false.
  heatsource(7)%r_profile%active = .false.
  heatsource(7)%t_profile%active = .false.
!
  heating_flat_topped = .false.
  heat_mask_file = ' '
  heat_file=' '
  add_ohmic_heating = .false.
!
! WKB pressure parameters
!
  advance_pw = .true.
  pw0=0.187
  rho_aw=10.0
!
! WTD heating/pressure parameters
!
  advance_zw = .true.
  wtd_z0 = 0.023664
  wtd_lambda0 = 0.020000
  wtd_b0 = 3.86834
  wtd_use_zw_flux_mask = .true.
  z0_flux_mask_tp_file = 'cor_mas_heat_3_bc_mask_file.h5'
  zw_dissp = .true.
  zw_reflection = .true.
  wtd_add_zw_heating = .true.
  wtd_add_zw_pressure = .false.
  zw_uwc_s = 0.0
  zw_uwc_z = 1.0
  wtd_use_flux_limiter_gradzw = .true.
  wtd_use_flux_limiter_gradsrc = .false.
  zw_flux_limiter_type = 'ospre'
  zw_cfl = 0.9
  wtd_use_zw_limit = .true.
  zw_limit_amplitude = 1.6
  zw_limit_radial_file = 'wtd_zw_limit_r1d.dat'
  zw_rho_aw = 3.0
  wtd_bc_extrap_fac_r1 = 0.1
  wtd_use_zw_effective_rho_limit = .true.
  zw_effective_rho_limit_lr = 2.20412
  zw_effective_rho_limit_lw = 0.3
  wtd_use_zw_horho_limit = .true.
  zw_horho_limit_rlim = 8.0
  zw_horho_limit_value = 5.e-2
  wtd_use_open_field_cutoff=.true.
  wtd_open_cutoff_maxflux=8.e5
  wtd_open_cutoff_dt_eq_s=120.0
!
  use_chromo_heat = .true.
  chromo_heat_t_zqc_0 = 10000.0
  chromo_heat_t_zqc_1 = 40000.0
  tprofile(1)%t=0.0,1.0
  tprofile(1)%f=1.0,1.0
  tprofile(1)%vars='pw0_factor'
  tprofile(2)%t=0.0, 1.0
  tprofile(2)%f=1.0, 1.0
  tprofile(2)%vars='zw_heat_factor'
  tprofile(3)%t=0.0, 1.0
  tprofile(3)%f=0.0, 0.0
  tprofile(3)%vars='zw_pressure_factor'
!
! FLUX ROPES
!
  fluxrope_preserve_br0=.false.
!
  rbsl_fluxrope(1)%add=.true.
  rbsl_fluxrope(1)%path_file='rbsl_path_fr1.h5'
  rbsl_fluxrope(1)%axial_current=6.06362
  rbsl_fluxrope(1)%minor_radius=0.0175
  rbsl_fluxrope(1)%handedness=-1
  rbsl_fluxrope(1)%mirror_poloidal=.true.
  rbsl_fluxrope(1)%insertion_time=0
!
! TRACER PARTICLES
!
  trace_particles=.true.
  trace_seed_file='tracer_input.h5'
  trace_ixint=200
!
 /
! --------------------------------------------
! MAS Thermo WTD CME - Generated by CORHEL-CME
! --------------------------------------------
