# $Revision$ on $Date$
# The above revision line needs to be the first line for ttkrf files
# Copyright (c) 2006 Ansys Inc

dataEntryDialog meshCart3dDEZ "Cart3D Mesher"
#    textEntry cartFilePrefix "Cart3D files prefix" file_prefix TEXT
    dropDownEntry cartFilePrefix "Cart3D files prefix" prefixList file_prefix FALSE
    checkItem singleComp "Single Component" single_comp NULL
    checkItem fixNormal  "Fix Normals" fix_normals NULL
    checkItem symmX "Symmetric in X" mesh_symX NULL
    checkItem symmY "Symmetric in Y" mesh_symY NULL
    checkItem symmZ "Symmetric in Z" mesh_symZ NULL
    integerEntry meshRadius "Nominal Mesh Radius (Body Length X)" nominal_radius 1 30 1
    textEntry meshDivisions "Starting Mesh Divisions " num_div TEXT
    integerEntry maxRefine "Max Num of Cell Refinements" max_ref 1 20 1
    textButton computeParams "Compute Parameters" aie_cart3d_compute_params
    textEntry finestCellData "Finest Cell Dimensions" finest_cell READONLY
    frame outerBBoxFR "Outer Bounding Box"
	entityChooser minBBoxPick "Min. Diagonal Point" box_min POINTORXYZ ANY
	entityChooser maxBBoxPick "Max. Diagonal Point" box_max POINTORXYZ ANY
    frame END

ifdef CART3D_STARS
    checkItem outputHistCheck "Output History" output_history NULL
    radioGroup starsC3dMethod "Grid method:" 1 stars_method 1 DummyProc
	radioItem starsC3dMethod0 "Original" 0
	radioItem starsC3dMethod1 "Lite" 1
	radioItem starsC3dMethod2 "Sub-grid" 2
    radioGroup END
    textEntry starsC3dSegTol "Curve segment length" subgrid_tol NUM
endif
    radioGroup meshCreation "Mesh Creation" 1 mesh_save 1 DummyProc
	radioItem previewMesh "PreView Mesh Only" 0
	radioItem createSaveMesh "Create and Save Full Mesh" 1
    radioGroup END
    integerEntry numMuliGrid "Number of Multi grid levels" num_mgl 1 5 1

    textButton allRef "Define All Surface Refinement" cart3d_all_refparams
    textButton famRef "Define Surface Part Refinement" cart3d_family_refparams
    integerEntry numBuf "Num. of Buffer Layers" buff_lay 0 5 1
    integerEntry numFeatLevels "Num. of Additional Refinements at Sharp Edges" sharp_level 0 5 1
    textEntry angleRef "Angle Threshold for Refinement" max_angle TEXT
    checkItem areaWeigth  "Area Weight Normals" weight_norms NULL
    integerEntry ncutX "Number of Cut Planes in X dir" cut_planesX 0 10 1
    integerEntry ncutY "Number of Cut Planes in Y dir" cut_planesY 0 10 1
    integerEntry ncutZ "Number of Cut Planes in Z dir" cut_planesZ 0 10 1
    checkItem meshInternal "Mesh Internal Region" mesh_internal NULL
#    textButton loadMesh "Load Cart3d Mesh" aie_cart3d_load_mesh
dataEntryDialog END

dataEntryDialog c3dToDfDEZ "Cart3d Tri to Domain File"
    fileChooser openCartFile "Cart3d Tri file" cartTriFile FALSE "Cart3d Tri File, .tri,All Files, .*"
    fileChooser openDomFile "OutPut Domain File" outDomFile FALSE "Domain File,  .uns,All Files, .*"
    checkItem annoResultsFile "Annotated Results file(.triq)" isAnnotatedFile NULL
dataEntryDialog END

dataEntryDialog dfToTriDEZ  "Domain File To Cart3d Tri"
    fileChooser openDomainFile "Domain File Name" domFile FALSE "Domain File,  .uns,All Files, .*"
    textEntry triFilePrefix "Output Tri file Prefix" triPrefix TEXT
    checkItem singleComponent "Single Component" isSingleComp NULL
    checkItem fixNorm "Fix Normals" isFixNormals NULL
dataEntryDialog END

dataEntryDialog solRunDEZ  "Run Solver"
    exclusiveGroup cart3dSolveEG "Cart3D solver" "Method" 4 ICON
	exclusiveGroupItem cart3dSolveParams "Define solver params" O_ParamCard$icon_size2.gif
	exclusiveGroupItem END
	exclusiveGroupItem cart3dSolveRun "Run solver" C_Solver_$icon_size2.gif
	    integerEntry numCycle "Max. Number of Cycles" max_cycles 100 500 25
	    checkItem noFullMG "No full multigrid" no_fmg NULL
	    checkItem yaxisSpan "Y-axis spanwise" yaxis_span NULL
	    checkItem saveFull "Save Full Hex Result" dump_fullhex NULL
	    greyGroup gridSeq "Run Grid Sequencing" gridseq
		greyGroupItem gridSeqLevGI " "
	    		integerEntry gridSeqLev "Level" gridseq_level 1 5 1
		greyGroupItem END
	    greyGroup END
	    greyGroup restartComp "Restart computation" restart
		greyGroupItem restartCompGI " "
		    fileChooser restartFile "Check point file" restart_file FALSE "Check point file,  check.*,All Files, .*"
		greyGroupItem END
	    greyGroup END
	    greyGroup saveCut "Save Cut planes result" dump_cutplane
		greyGroupItem saveCutRes " "
		    textEntry saveCutX "X - Slices" xslices TEXT
		    textEntry saveCutY "Y - Slices" yslices TEXT
		    textEntry saveCutZ "Z - Slices" zslices TEXT
		greyGroupItem END
	    greyGroup END
	    greyGroup runCmd "Run user command before solver" run_cmd
		greyGroupItem runCmdGI " "
		    textEntry userCmd "Command" cmd TEXT
		greyGroupItem END
	    greyGroup END
            checkItem runFlowcart "Run solver" run_flowcart NULL
	exclusiveGroupItem END
	exclusiveGroupItem cart3dSolveStop "Stop solver" C_STOP_$icon_size2.gif
	exclusiveGroupItem END
	exclusiveGroupItem cart3dSolveMonitor "Covergence monitor" C_CONV_$icon_size2.gif
	exclusiveGroupItem END
    exclusiveGroup END
dataEntryDialog END

dataEntryDialog solPostDEZ  "Post-Process Solution "
    fileChooser cart3DResFile "Cart3D Result file" result_file FALSE "Cart3D result file,  *.triq,All files, .*"
    fileChooser clicOutDir "Clic Output Directory" clic_outdir DIR
    frame clicRefParFR "Reference parameters"
	textButton refParamsAll "All Params" clic_all_params
	textButton refParamsFam "Part Params" clic_family_params
    frame END
    dropDownEntry refCSystemX "Model X-axis" axisList model_Xaxis FALSE
    dropDownEntry refCSystemY "Model Y-axis" axisList model_Yaxis FALSE
    dropDownEntry refCSystemZ "Model Z-axis" axisList model_Zaxis FALSE
    textButton clicCPdist "Cp Distribution" clic_cp_distribution
    checkItem runClic "Run Clic" run_clic NULL
dataEntryDialog END

dataEntryDialog solTrialsDEZ  "Run Trials"
    exclusiveGroup cart3dTrialsEG "Trials" "Method" 2 ICON

        exclusiveGroupItem cart3dTrialsParams "Define trials" C_Trials_$icon_size2.gif
            exclusiveGroup machSpecify "Mach Number" " " 1 DROPDOWN
                exclusiveGroupItem cart3dMachRangeEG "Range of values"
                    textEntry cart3dMach0 "Start" mach0 NUM
                    textEntry cart3dMachN "End" machN NUM
                    textEntry cart3dMachD "Delta" machD NUM
                exclusiveGroupItem END
                exclusiveGroupItem cart3dMachListEG "Explicit list"
                    textEntry cart3dMachList "List" machList TEXT
                exclusiveGroupItem END
            exclusiveGroup END
            exclusiveGroup alphaSpecify "Angle of Attack" " " 1 DROPDOWN
                exclusiveGroupItem cart3dAlphaRangeEG "Range of values"
                    textEntry cart3dAlpha0 "Start" alpha0 NUM
                    textEntry cart3dAlphaN "End" alphaN NUM
                    textEntry cart3dAlphaD "Delta" alphaD NUM
                exclusiveGroupItem END
                exclusiveGroupItem cart3dAlphaListEG "Explicit list"
                    textEntry cart3dAlphaList "List" alphaList TEXT
                exclusiveGroupItem END
            exclusiveGroup END
	exclusiveGroupItem END

	exclusiveGroupItem cart3dTrialsRun "Run trials" C_Solver_$icon_size2.gif
            textEntry cart3dnTrials "Number of trials" nTrials READONLY
            textEntry cart3dSideSlip "Side Slip Angle" beta NUM
            textEntry cart3dTrialsDir "Output directory" trials_outdir TEXT
            checkItem cart3dRerun "Rerun Existing Trials" rerun NULL
	exclusiveGroupItem END

        exclusiveGroupItem cart3dTrialsSolve "Stop Trials" C_STOP_$icon_size2.gif
	exclusiveGroupItem END

        exclusiveGroupItem cart3dTrialsResults "Trials Results" P_CreateTable$icon_size2.gif
            dropDownEntry cart3dComponent "Component" componentList component NULL READONLY
            textButton cart3dRecompute "Recompute Results" cart3d_trials_recompute
            textButton cart3dHistogram "Draw Histogram" cart3d_trials_draw
            textButton cart3dClear "Clear Histogram" cart3d_trials_clear
	exclusiveGroupItem END

    exclusiveGroup END
dataEntryDialog END

dataEntryDialog sol6DOFDEZ "Run 6DOF"
    fileChooser cart3DGeomFile "Cart3D geometry file" tri_file FALSE "Cart3D geometry file,  *.a.tri,All files, .*"
    textEntry sixDOFoutdir "Output directory name" sixdof_outdir TEXT
#    dropDownEntry sixDOFMove "Moving component" compList move_comp FALSE
    textEntry sixDOFmodelRef "Model reference scale" model_scale TEXT
    textEntry sixDOFQinf "Dynamic Pressure" dynamic_pressure TEXT
    textEntry sixDOFGrav "Gravity vector" gravity TEXT
    textButton sixDOFMoveComp "Define Moving Components" set_sixdof_moving_comps
#    textEntry sixDOFmass "Mass of the body" mass TEXT
#    textEntry sixDOFMI "Principal moments of inertia" mom_inertia TEXT
#    textEntry sixDOFCM "Center of mass" mass_center  TEXT
#    textEntry sixDOFVel "Initial linear velocity" linear_velocity TEXT
#    textEntry sixDOFOmega "Initial angular velocity" angular_velocity TEXT
#    textEntry sixDOFEulerPar "Initial Euler params" euler_params TEXT
    textButton sixDOFExtFM "External Forces/Moments" set_sixdof_efm
    textButton sixDOFBodyFM "Body Forces/Moments" set_sixdof_bfm
    textEntry sixDOFTimestart "Time start" time_start TEXT
    textEntry sixDOFTimestep "Time step" time_step TEXT
    textEntry sixDOFTimeend "Time end" time_end TEXT
    integerEntry sixDOFStoreCycle "Store result files cycle" store_cycle 1 10 1
    textButton sixDOFTrajectory "Display Trajectory" aie_sixdof_trajectory
dataEntryDialog END

