# Unix aliases words for the MODEL fea code and mesh generators #---------------------------------------------------------------- # CPY_DIR = /net/course-a/mech517/public_html/Copyrighted EXP_DIR = /net/screech/akin/public_html/text/Last/Examples SRC_DIR = /net/course-a/mech517/public_html/Copyrighted INC_DIR = /net/course-a/mech517/public_html/Archive PLT_DIR = /net/course-a/mech517/public_html/Matlab_Plots MSH_DIR = /net/screech/akin/h_mesh MAK_DIR = /net/course-a/mech517/public_html/Archive M2D_DIR = /net/course-a/mech517/old_mesh2d ML5_DIR = /usr/site/matlab-5.3/bin # list information about the 2D adaptive mesh generator alias Adapt_Info 'more $(MSH_DIR)/READ_ME' # turn on this set of aliases alias Alias_On 'source $(CPY_DIR)/Model_alias ; echo done' # list array sizes used in MODEL alias Array_Sizes 'more $(CPY_DIR)/Array_sizes.txt' # Copy zipped text files for stored example: Copy_Zip 104 alias Copy_Zip 'cp $(EXP_DIR)/\!$.txt.gz .' # directory of all mesh tmp file output alias Dir_Mesh 'ls -l msh_*.tmp ; pwd ' # directory of all tmp file output alias Dir_Tmp 'ls -l *.tmp ; pwd ' # directory of all zipped files for example alias Dir_Zip 'ls -l $(EXP_DIR)/\!$.*.gz ' # list include file for stored example: Ex_Inc 104 alias Ex_Inc 'ls $(EXP_DIR)/\!$.my_*inc*' # list any text files for stored example: Ex_Text 104 alias Ex_Text 'more $(EXP_DIR)/\!$.txt* ' # list available examples by exact case number, if any alias Exact_Ex 'more $(EXP_DIR)/By_Exact_Case.txt' # search for a control keyword related to 'word': Keyword word alias Find_Key 'grep \!$ $(CPY_DIR)/Keyword_Control_Input.txt' # find the size of an array: Find_Size COORD alias Find_Size 'grep \!$ $(CPY_DIR)/Array_sizes.txt' # find a word in MODEL notation file: Find_Word PATCH alias Find_Word 'grep \!$ $(CPY_DIR)/Notation.F' # copy the new application MODEL source library alias Get_Apply 'cp $(SRC_DIR)/application_lib.f . ; echo done' # copy the old exact solution MODEL source library alias Get_Exact 'cp $(SRC_DIR)/exact_lib.f . ; echo done' # copy generic include files for new application modification alias Get_Inc 'cp $(INC_DIR)/my_*_inc . ; echo done' # copy specific example data file: Get_Ex_Data 104_01 for 104_01.dat alias Get_Ex_Data 'cp $(EXP_DIR)/\!$.dat .' # get all the unix make files for creating new MODEL applications alias Get_Makes 'cp $(MAK_DIR)/make* . ; echo done' # get the default B matrix include file alias Inc_B 'cp $(INC_DIR)/my_b_matrix_inc . ; echo done' # get the default exact solution include file alias Inc_Col 'cp $(INC_DIR)/my_el_col_inc . ; echo done' # get the default E matrix include file alias Inc_E 'cp $(INC_DIR)/my_e_matrix_inc . ; echo done' # get the default exact solution include file alias Inc_Exact 'cp $(INC_DIR)/my_exact*inc . ; echo done' # get the default postprocessing include files alias Inc_Post 'cp $(INC_DIR)/my*post*inc . ; echo done' # get the default mixed segment include files alias Inc_Robin 'cp $(INC_DIR)/my_mixed*inc . ; echo done' # get the default flux segment column matrix include file alias Inc_Seg 'cp $(INC_DIR)/my_seg_col_inc . ; echo done' # get the default el sq matrix include file alias Inc_Sq 'cp $(INC_DIR)/my_el_sq_inc . ; echo done' # copy old mesh mapping data to edit alias Map_Data 'cp $(M2D_DIR)/\!$.dat .' # list help file on how to run an existing MODEL example alias Help_Run_Ex 'more $(EXP_DIR)/Run_an_example.txt' # search for a control keyword related to 'word': Keyword word alias Keyword 'grep \!$ $(CPY_DIR)/Keyword_Control_Input.txt' # search for control keywords related to user debugs alias Key_Debug 'grep debug $(CPY_DIR)/Keyword_Control_Input.txt' # search for control keywords to turn off data echos alias Key_Echo 'grep echo $(CPY_DIR)/Keyword_Control_Input.txt' # search for a control keyword related to element data alias Key_El 'grep el_ $(CPY_DIR)/Keyword_Control_Input.txt' # search for a control keyword related to flux data alias Key_Flux 'grep flu $(CPY_DIR)/Keyword_Control_Input.txt' # search for a control keyword related to nodal points alias Key_Pt 'grep pt_ $(CPY_DIR)/Keyword_Control_Input.txt' # list what each alias is for alias List_Alias 'more $(CPY_DIR)/Alias_summary.txt' # list stored examples by number alias List_Ex 'more $(EXP_DIR)/By_Example_Number.txt' # list stored examples by text figure number alias List_Fig 'more $(EXP_DIR)/By_Figure_Number.txt' # list MODEL functions for getting application properties alias List_Prop 'more $(CPY_DIR)/Getting_to_MODEL_Data.txt' # list any text help files alias List_txt 'more $(EXP_DIR)/\!$.txt' alias List_Txt 'more $(EXP_DIR)/\!$.txt' # list old data files for mapped mesh alias Map_Dir 'ls $(M2D_DIR)/*dat* ' # run the 2D mesh mapping program with data_name: Map_Mesh data_name.dat alias Map_Mesh '$(M2D_DIR)/map_mesh < \!$ > out' # copy mapped mesh data, without leading keywords alias Map_2_Dat 'cp $(M2D_DIR)/PUNCH test.msh ' # convert 2D mapped mesh file to test.dat (less keywords) alias Map_2_test 'csh $(CPY_DIR)/Map_2_test.s' # run old Matlab5 alias Matlab5 '$(ML5_DIR)/matlab.sh ' # run 2D adaptive mesg generator (requires 3 data files) alias Mesh_Adapt $(MSH_DIR)/new_mesh # list informational notes in output file alias My_Notes 'grep NOTE \!$ ' # list warnings in output file alias My_Warn 'grep WARNING \!$ ' # list order for connecting nodes to elements alias Node_Order 'more $(CPY_DIR)/Element_node_order.txt' # list the variable notations for the MODEL code alias Notation 'more $(CPY_DIR)/Notation.F' # echo plot path to copy into Matlab command (before running Matlab) alias Plot_Path 'echo addpath $(PLT_DIR)' # turn on alias file to list plot scripts by subject alias Plot_Subject 'source $(CPY_DIR)/Plot_subject_alias ; echo done' # search for all control keywords related to properties alias Property 'grep prop $(CPY_DIR)/Keyword_Control_Input.txt' # list the required control keywords for test.dat alias Required 'more $(CPY_DIR)/Required_Key.txt' # run MODEL with test.dat containing existing example number keyword alias Run_Ex '$(EXP_DIR)/Example_Run' alias Run_Old '$(EXP_DIR)/Example_Old' # list specific data file cited in List_Ex alias Show_Ex 'more $(EXP_DIR)/\!$.dat' # list specific array size alias Size_Array 'grep \!$ $(CPY_DIR)/Array_sizes.txt' # list available examples by subject alias Subject_Ex 'more $(EXP_DIR)/By_Subject.txt' # Un-Zip & list any text files for stored example: UZ_Ex_Text 104 alias UZ_Ex_Text 'gunzip $(EXP_DIR)/\!$.txt.gz ; more $(EXP_DIR)/\!$.txt ' alias Unzip_Data 'cp $(EXP_DIR)/\!$.dat.gz \!$.dat.gz ; gunzip \!$.dat.gz ' alias Unzip_Out 'gunzip $(EXP_DIR)/\!$.out.gz >! \!$.out ' # Unzip specific example data file: Unzip_Data 104_01 for 104_01.dat alias Unzip_Text 'gunzip $(EXP_DIR)/\!$.txt.gz >! \!$.txt ' # Unzip specific example data file: Unzip_Data 104_01 for 104_01.dat