#
# ~cvs/scrib/app_aero/data_column.tcl
#
# author: jason aftosmis (jason@icemcfd.com)
# date:   april 2002
#
# This file generates the data column in a scrib application
#

scrib_app_data_notebook_begin

  scrib_app_data_notebook_page_begin "Input files"

    scrib_app_data_choicelist -var cadsys -desc "Type of CAD file(s)" -def tetin \
	    -choices {{tetin "ICEM CFD tetin file"} {catia "CATIA"} {iges "IGES"} }	  

    scrib_app_data_entry -var cad_dir -desc "Directory of cad files" -type dir \
	    -def . -select 1 -allow_new 0
  
    scrib_app_data_entry -var wdir -desc "Working directory" -type dir \
	    -def . -select 1 -allow_new 1

  scrib_app_data_notebook_page_end
    
  #----------------------------------------------------------

  scrib_app_data_notebook_page_begin "Geometry cleanup"
  scrib_app_data_notebook_page_end

  #----------------------------------------------------------

  scrib_app_data_notebook_page_begin "Meshing"

    scrib_app_data_radio -var meshing_algorithm \
            -desc "Meshing algorithm" \
            -choices {{hexa "Hexa"} {tetra "Tetra"} {tetra_prism "Tetra/Prism"}} \
	    -def hexa

    scrib_app_data_frame_begin "Hexa information" -active {{meshing_algorithm hexa}}
      scrib_app_data_entry -var hexa_blk_file -desc "Hexa blocking file" -type file \
	      -def blocking.blk -select 1 -active {{meshing_algorithm hexa}}
      scrib_app_data_entry -var hexa_rpl_file -desc "Hexa replay file" -type file \
	      -def repaly.rpl -select 1 -active {{meshing_algorithm hexa}}
    scrib_app_data_frame_end

    scrib_app_data_frame_begin "Tetra information" \
            -active {{meshing_algorithm tetra_prism} {meshing_algorithm tetra}}
      scrib_app_data_meshing_params_button -type curve -method name \
              -params {height width ratio maxdev} \
              -active {{meshing_algorithm tetra_prism} {meshing_algorithm tetra}}
    scrib_app_data_frame_end

    scrib_app_data_frame_begin "Prism information" \
            -active {{meshing_algorithm tetra_prism}}
      scrib_app_data_entry -var n_prism_layers -desc "Number of prism layers" \
              -type int -def 5  -active {{meshing_algorithm tetra_prism}}
    scrib_app_data_frame_end
  
  scrib_app_data_notebook_page_end
  
  #----------------------------------------------------------
  
  scrib_app_data_notebook_page_begin "Solver input"

    scrib_app_data_choicelist -var solverout -desc "Solver Output Format" -def cgns \
	    -choices {{cgns "CGNS"} {wind "Wind/CGD"} {starcd "Star-CD"} {cfdpp "CFD++"}} 

    scrib_app_data_entry -var export_dir -desc "Directory for Solver input files" \
	    -type dir -def . -select 1 -allow_new 1

  scrib_app_data_notebook_page_end

scrib_app_data_notebook_end
