#
# ~cvs/scrib/app_sm/data_column.tcl
#
# author: jason aftosmis (jason@icemcfd.com)
# date:   april 2002
#
# This file generates the data column in a scrib application
# *indentation matters not to the interp
#
scrib_app_data_notebook_begin

scrib_app_data_notebook_page_begin "File info"

    scrib_app_data_notebook_begin

   scrib_app_data_notebook_page_begin "Import information"

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

	scrib_app_data_entry -var layers -desc "Layers of meshable surfaces" \
    		-type string -def "" -active {{cadsys catia}}
	
	scrib_app_data_entry -var cad_dir -desc "Directory of CAD file(s)" \
		-type dir -def . -select 1 -allow_new 0
	    
	scrib_app_data_entry -var wdir -desc "Working directory" \
    		-type dir -def ./wdir -select 1 -allow_new 1

	scrib_app_data_entry -var skipto -desc "Skip to number" \
    		-type int  -def  "" 
	    
	#scrib_app_data_entry -var record -desc "Record file" \
    		#-type file -def app_bsm.log -select 1 -allow_new 1
	
   scrib_app_data_notebook_page_end

   scrib_app_data_notebook_page_begin "Export information"

# Currently, only Nastran is hooked up.  The rest can be reach through regular ICEM Output.

         scrib_app_data_choicelist -var solverout -desc "Solver output format" \
		-choices {{ANSYS "ANSYS"} {dyna "LS/DYNA-3D"} {nastran "Nastran"} {patran "PATRAN"} {radioss "RADIOSS"}  } \
		-def nastran
	
	scrib_app_data_entry -var export_dir -desc "Directory for output files" \
		-type dir -def ./out -select 1 -allow_new 1

  	   
          scrib_app_data_radio -var nasform -desc "File format" \
	    -choices {{0 "Long"} {1 "Short"} } \
	    -def 1 -active {{solverout nastran}}

  	
	    scrib_app_data_entry -var export_file -desc "Name of final assembly file" \
    			-type file -def assembly.nas -select 1 -allow_new 1

    scrib_app_data_notebook_page_end	

    scrib_app_data_notebook_page_begin "PID naming information"
    	    scrib_app_data_frame_begin ""
            		scrib_app_data_entry -var naspid_keystrings -type string -def PART \
			-desc "List of possible keystrings in CAD filename"

	    	scrib_app_data_entry -var naspid_nchar -type int -def 5 \
			-desc "Length of PID string (number of characters)"	
	
	    	scrib_app_data_entry -var naspid_offset -type string -def "+2" \
			-desc "Offset of pid boundary from keystring boundary (+/- integer)"
        	    scrib_app_data_frame_end
    	scrib_app_data_frame_begin "Note"
    	    
              		scrib_app_data_comment "To get the PID of 99999 from the partfile named PART_09999900, these values would be { PART , 5 , +3 } or { PART_ , 5 , +2 }.\nTo get the PID 999 from the partfile named 1234999_AB0000, the values could be { {AA AB BB} , 3 , -2 }."
   	 scrib_app_data_frame_end   
       	scrib_app_data_notebook_page_end
scrib_app_data_notebook_end


scrib_app_data_notebook_page_end

scrib_app_data_notebook_page_begin "Meshing info"

   scrib_app_data_notebook_begin

   scrib_app_data_notebook_page_begin "Meshing information"

	scrib_app_data_entry -var mesh_size -desc "Mesh size" \
		-type float -def 10

	scrib_app_data_entry -var nat_size -desc "Natural size" \
		-type float -def 1

	scrib_app_data_toggle -var bt -desc "Build Topology" -def 1

	scrib_app_data_entry -var ignore_tol -desc "Ignore size" \
   		 -type float -def 2

	scrib_app_data_entry -var ignore_angle -desc "Ignore angle" \
   		 -type float -def 10

	scrib_app_data_entry -var coarsen_size -desc  "Coarsened size" \
   		-type float -def 30

	scrib_app_data_entry -var coarsen_dev -desc  "Coarsen deviation" \
   		-type float -def 0.01

	scrib_app_data_entry -var coarsen_quality -desc  "Coarsen quality" \
   		-type float -def 0.2

	scrib_app_data_entry -var coarsen_iters -desc  "Coarsen iterations" \
   		-type float -def 30

	scrib_app_data_toggle -var quadratic -desc "Quadratic mesh" -def 1

    scrib_app_data_notebook_end
scrib_app_data_notebook_page_end

scrib_app_data_notebook_end


scrib_app_data_frame_begin "Options"
scrib_app_data_toggle -var failure_mode -desc "Run with prompts"
scrib_app_data_frame_end

































































