# no cart3d anymore for version icemcfd 14.0 or higher
return
uplevel \#0 source \"[file join $tool_dir cart3d.tcl]\"
set s [file join $AIEnvDir scripts cart3d aie_cart3d.tcl]
if [file exist $s] {
    uplevel \#0 source \"$s\"
}

######################## globals for cart3d ######################

array set cart3d {
	load_c3dtri    0
	c3dtri_file    ""
	trifile        ""
	triqfile       ""
	domain_file    ""
        df_mtime_stamp  0
	surf_fams      ""
	run_intersect  1
        force_run_intersect  0
	run_cubes      1
	fix_normals    0
	finest_cell    "0.0 x 0.0 x 0.0"
	single_comp    0
	nominal_radius 30
	num_div        "5 5 5"
	max_ref        11
	mesh_symX      0
	mesh_symY      0
	mesh_symZ      0
	mesh_save      0
	adv_options    0
        box_min        ""
        box_max        ""
	aspect_ratio   1
	buff_lay       4
	max_angle      20
	weight_norms   0
	cut_planesX    3
	cut_planesY    3
	cut_planesZ    3
	mesh_internal  0
	num_mgl        5
	output_history 0
	subgrid_tol    0.01
    	stars_method   0
        sharp_level    0
}

array set flowCart {
	mesh_file      "model_c3d.mesh"
	cntl_file      "flowCart.cntl"
	run_reorder    1
	reorder_scheme H
	run_mgPrep     1
	num_mgl        5
	restart        0
	restart_file   ""
	max_cycles     100
	alpha          0.0
	beta           0.0
	model_Xaxis    "-Xb"
	model_Yaxis    "-Zb"
	model_Zaxis    "-Yb"
	clic_outdir    "Profiles"
	clic_cpdists   10
        trials_outdir  "trials"
        sixdof_outdir  "sixDOF"
	linear_velocity  "0.0 0.0 0.0"
	angular_velocity "0.0 0.0 0.0"
	euler_params     "1.0 0.0 0.0 0.0"
	sixdof_efm     10
	sixdof_bfm     10
	yaxis_span     0
	freeze         0
	no_fmg         0
        trajectory     0
}

array set cart3d_trials {
	alpha0 -10.0
	alphaN  10.0
	alphaD  2.0
	alphaSpecify 0
        alphaList {-10.0 -8.0 -6.0 -4.0 -2.0 0.0 2.0 4.0 6.0 8.0 10.0}
	mach0   0.5
	machN   2.0
	machD   0.5
	machSpecify 0
        machList {0.5 1.0 1.5 2.0}
	nTrials 44
	runNum  0
	parmsMap {mach "Mach Number" alpha "Angle of Attack"}
        title   ""
        groups ""
        curgroup entire
        rerun 0
        listbox_widget ""
}

#aie_cart3d_start
