# Version 2.a # This file handle the movements in X, Y, Z and alfa (tilt) diretcions. # This macro is associated with the macro called DrawMacro.mac wich is responsable # for the drawing of the model. # # Author Dionisio Doering # ddoering@lbl.gov # #################################################### # Macro Begin #################################################### # Create a database called M_cap Assign M_cap Newdatabase 9 Assign DBName "capacit_DeltaZ_v03_w_shield.cap" Assign DrawName "DrawMacro_sh2.mac" ############################## # define the movements ############################## Assign deltaX 0 Assign deltaY 0 Assign deltaZ -2.5 Assign alfaX 0 Assign alfaY 0 Assign alfaZ 0 Assign Num_step 21 Assign stepX 0 Assign stepY 0 Assign stepZ 0.25 Assign stepAlfaX 0 Assign stepAlfaY 0 Assign stepAlfaZ 0 Assign NumError 2 ########################################### #Loop ########################################### Repeat Num_step #Draw Model FileExec DrawName #Setup Materials LaunchMaterials "modify" MaterialSelect "gold" MaterialAssign { "Drive1" "Drive2" "Sense" "SkinL" "SkinR" } "OCS" { " 0.0000000000" " 0.0000000000" " 0.0000000000" } { " 0.0000000000" " 0.0000000000" " 0.0000000000" } MaterialSelect "glass" MaterialAssign { "BaseL" "BaseR" "MirrorL" "MirrorR" } "OCS" { " 0.0000000000" " 0.0000000000" " 0.0000000000" } { " 0.0000000000" " 0.0000000000" " 0.0000000000" } MaterialAssign { "Foot1" "Foot2" "Foot3" "Foot4" "Foot5" "Foot6" } "OCS" { " 0.0000000000" " 0.0000000000" " 0.0000000000" } { " 0.0000000000" " 0.0000000000" " 0.0000000000" } SaveModule ExitModule 1 #Setup fonts and boundaries LaunchBoundaries "modify" ClearAllBnds SetBoundary "voltage_src" TogglePickObjByName "Sense" SetScalar "0" CreateBoundary ClearSelection TogglePickObjByName "Drive1" SetScalar "1" CreateBoundary ClearSelection TogglePickObjByName "Drive2" SetScalar "-1" CreateBoundary ClearSelection TogglePickObjByName "SkinL" SetScalar "0" CreateBoundary ClearSelection TogglePickObjByName "SkinR" SetScalar "0" CreateBoundary ClearSelection SetViewDirection <-29132.094161005, -58264.1883220099, -87396.2824830149> PickFaceByRay [34736.5365438175, 60035.9181804084, 92483.9734009837] SetViewDirection <-29132.094161005, -58264.1883220099, -87396.2824830149> PickFaceByRay [33247.5424031925, 59909.4446696662, 93064.6203736399] SetViewDirection <-29132.094161005, -58264.1883220099, -87396.2824830149> PickFaceByRay [30567.1400594425, 64325.2605876349, 91014.2104615305] SetViewDirection <68107.401947022, -77578.7847952667, 34991.6946230917> PickFaceByRay [-73163.175384522, 80612.0399222199, -38819.3899355917] SetViewDirection <68107.401947022, -77578.7847952667, 34991.6946230917> PickFaceByRay [-74929.3599548345, 79823.9425101105, -37128.9719668417] SetViewDirection <63927.3818253821, 61182.8629394967, 63651.0163183417> PickFaceByRay [-67489.8068742102, -66814.3551269967, -65879.9958105292] SetBoundary "voltage_bnd" CreateBoundary ClearSelection SaveBnds ExitBnds 1 #Adjust the setup of the solver to calculate the capacitance LaunchMatrixSetup "modify" IncludeObject { "Sense" "Drive1" "Drive2"} SaveModule ExitModule 0 #Setup the solution SolnOptnSetup 1 SetCurrentSolnPrmsType "SolnOptnSetup" SetSolveType 1 SetSolver 0 SetSolveFields 1 SetSolvePrms 1 SetAdaptiveInfo 20 30 NumError NumError SetResidual 1E-005 SetMeshType "Initial" 0 SaveSetup SolnPrmsDone "Ok" #Solve Problem SolveNominal ############################################Save Dada #Get Data Assign CD1S GetMatrixCellValue 'Drive1' 'Sense' Assign CD2S GetMatrixCellValue 'Drive2' 'Sense' Assign CD1D2 GetMatrixCellValue 'Drive1' 'Drive2' #Record the data in the database Assign rowcnt DatabaseGetRows M_cap DatabaseAddRow M_cap DatabaseSetField M_cap rowcnt 0 deltaX DatabaseSetField M_cap rowcnt 1 deltaY DatabaseSetField M_cap rowcnt 2 deltaZ DatabaseSetField M_cap rowcnt 3 alfaX DatabaseSetField M_cap rowcnt 4 alfaY DatabaseSetField M_cap rowcnt 5 alfaZ DatabaseSetField M_cap rowcnt 6 CD1S DatabaseSetField M_cap rowcnt 7 CD2S DatabaseSetField M_cap rowcnt 8 CD1D2 ExportDatabase M_cap DBName "yes" #These commands update the movement Assign deltaX add deltaX stepX Assign deltaY add deltaY stepY Assign deltaZ add deltaZ stepZ Assign alfaX add alfaX stepAlfaX Assign alfaY add alfaY stepAlfaY Assign alfaZ add alfaZ stepAlfaZ ############################################### #Loop end End ############################################### #Save Data in a File #Salva o Banco de dados ExportDatabase M_cap DBName "yes" ###################################################################################### ###################################################################################### # Phase four end ###################################################################################### ###################################################################################### # Version 2.a # This file handle the movements in X, Y, Z and alfa (tilt) diretcions. # This macro is associated with the macro called DrawMacro.mac wich is responsable # for the drawing of the model. # # Author Dionisio Doering # ddoering@lbl.gov # #################################################### # Macro Begin #################################################### # Create a database called M_cap Assign M_cap Newdatabase 9 Assign DBName "capacit_DeltaX_v03_w_shield.cap" Assign DrawName "DrawMacro_sh2.mac" ############################## # define the movements ############################## Assign deltaX -5 Assign deltaY 0 Assign deltaZ 0 Assign alfaX 0 Assign alfaY 0 Assign alfaZ 0 Assign Num_step 21 Assign stepX 0.5 Assign stepY 0 Assign stepZ 0 Assign stepAlfaX 0 Assign stepAlfaY 0 Assign stepAlfaZ 0 Assign NumError 2 ########################################### #Loop ########################################### Repeat Num_step #Draw Model FileExec DrawName #Setup Materials LaunchMaterials "modify" MaterialSelect "gold" MaterialAssign { "Drive1" "Drive2" "Sense" "SkinL" "SkinR" } "OCS" { " 0.0000000000" " 0.0000000000" " 0.0000000000" } { " 0.0000000000" " 0.0000000000" " 0.0000000000" } MaterialSelect "glass" MaterialAssign { "BaseL" "BaseR" "MirrorL" "MirrorR" } "OCS" { " 0.0000000000" " 0.0000000000" " 0.0000000000" } { " 0.0000000000" " 0.0000000000" " 0.0000000000" } MaterialAssign { "Foot1" "Foot2" "Foot3" "Foot4" "Foot5" "Foot6" } "OCS" { " 0.0000000000" " 0.0000000000" " 0.0000000000" } { " 0.0000000000" " 0.0000000000" " 0.0000000000" } SaveModule ExitModule 1 #Setup fonts and boundaries LaunchBoundaries "modify" ClearAllBnds SetBoundary "voltage_src" TogglePickObjByName "Sense" SetScalar "0" CreateBoundary ClearSelection TogglePickObjByName "Drive1" SetScalar "1" CreateBoundary ClearSelection TogglePickObjByName "Drive2" SetScalar "-1" CreateBoundary ClearSelection TogglePickObjByName "SkinL" SetScalar "0" CreateBoundary ClearSelection TogglePickObjByName "SkinR" SetScalar "0" CreateBoundary ClearSelection SetViewDirection <-29132.094161005, -58264.1883220099, -87396.2824830149> PickFaceByRay [34736.5365438175, 60035.9181804084, 92483.9734009837] SetViewDirection <-29132.094161005, -58264.1883220099, -87396.2824830149> PickFaceByRay [33247.5424031925, 59909.4446696662, 93064.6203736399] SetViewDirection <-29132.094161005, -58264.1883220099, -87396.2824830149> PickFaceByRay [30567.1400594425, 64325.2605876349, 91014.2104615305] SetViewDirection <68107.401947022, -77578.7847952667, 34991.6946230917> PickFaceByRay [-73163.175384522, 80612.0399222199, -38819.3899355917] SetViewDirection <68107.401947022, -77578.7847952667, 34991.6946230917> PickFaceByRay [-74929.3599548345, 79823.9425101105, -37128.9719668417] SetViewDirection <63927.3818253821, 61182.8629394967, 63651.0163183417> PickFaceByRay [-67489.8068742102, -66814.3551269967, -65879.9958105292] SetBoundary "voltage_bnd" CreateBoundary ClearSelection SaveBnds ExitBnds 1 #Adjust the setup of the solver to calculate the capacitance LaunchMatrixSetup "modify" IncludeObject { "Sense" "Drive1" "Drive2"} SaveModule ExitModule 0 #Setup the solution SolnOptnSetup 1 SetCurrentSolnPrmsType "SolnOptnSetup" SetSolveType 1 SetSolver 0 SetSolveFields 1 SetSolvePrms 1 SetAdaptiveInfo 20 30 NumError NumError SetResidual 1E-005 SetMeshType "Initial" 0 SaveSetup SolnPrmsDone "Ok" #Solve Problem SolveNominal ############################################Save Dada #Get Data Assign CD1S GetMatrixCellValue 'Drive1' 'Sense' Assign CD2S GetMatrixCellValue 'Drive2' 'Sense' Assign CD1D2 GetMatrixCellValue 'Drive1' 'Drive2' #Record the data in the database Assign rowcnt DatabaseGetRows M_cap DatabaseAddRow M_cap DatabaseSetField M_cap rowcnt 0 deltaX DatabaseSetField M_cap rowcnt 1 deltaY DatabaseSetField M_cap rowcnt 2 deltaZ DatabaseSetField M_cap rowcnt 3 alfaX DatabaseSetField M_cap rowcnt 4 alfaY DatabaseSetField M_cap rowcnt 5 alfaZ DatabaseSetField M_cap rowcnt 6 CD1S DatabaseSetField M_cap rowcnt 7 CD2S DatabaseSetField M_cap rowcnt 8 CD1D2 ExportDatabase M_cap DBName "yes" #These commands update the movement Assign deltaX add deltaX stepX Assign deltaY add deltaY stepY Assign deltaZ add deltaZ stepZ Assign alfaX add alfaX stepAlfaX Assign alfaY add alfaY stepAlfaY Assign alfaZ add alfaZ stepAlfaZ ############################################### #Loop end End ############################################### #Save Data in a File #Salva o Banco de dados ExportDatabase M_cap DBName "yes" ###################################################################################### ###################################################################################### # Phase four end ###################################################################################### ###################################################################################### # Version 2.a # This file handle the movements in X, Y, Z and alfa (tilt) diretcions. # This macro is associated with the macro called DrawMacro.mac wich is responsable # for the drawing of the model. # # Author Dionisio Doering # ddoering@lbl.gov # #################################################### # Macro Begin #################################################### # Create a database called M_cap Assign M_cap Newdatabase 9 Assign DBName "capacit_alfaX_v03_w_shield.cap" Assign DrawName "DrawMacro_sh2.mac" ############################## # define the movements ############################## Assign deltaX 0 Assign deltaY 0 Assign deltaZ 0 Assign alfaX -1 Assign alfaY 0 Assign alfaZ 0 Assign Num_step 21 Assign stepX 0 Assign stepY 0 Assign stepZ 0 Assign stepAlfaX 0.1 Assign stepAlfaY 0 Assign stepAlfaZ 0 Assign NumError 2 ########################################### #Loop ########################################### Repeat Num_step #Draw Model FileExec DrawName #Setup Materials LaunchMaterials "modify" MaterialSelect "gold" MaterialAssign { "Drive1" "Drive2" "Sense" "SkinL" "SkinR" } "OCS" { " 0.0000000000" " 0.0000000000" " 0.0000000000" } { " 0.0000000000" " 0.0000000000" " 0.0000000000" } MaterialSelect "glass" MaterialAssign { "BaseL" "BaseR" "MirrorL" "MirrorR" } "OCS" { " 0.0000000000" " 0.0000000000" " 0.0000000000" } { " 0.0000000000" " 0.0000000000" " 0.0000000000" } MaterialAssign { "Foot1" "Foot2" "Foot3" "Foot4" "Foot5" "Foot6" } "OCS" { " 0.0000000000" " 0.0000000000" " 0.0000000000" } { " 0.0000000000" " 0.0000000000" " 0.0000000000" } SaveModule ExitModule 1 #Setup fonts and boundaries LaunchBoundaries "modify" ClearAllBnds SetBoundary "voltage_src" TogglePickObjByName "Sense" SetScalar "0" CreateBoundary ClearSelection TogglePickObjByName "Drive1" SetScalar "1" CreateBoundary ClearSelection TogglePickObjByName "Drive2" SetScalar "-1" CreateBoundary ClearSelection TogglePickObjByName "SkinL" SetScalar "0" CreateBoundary ClearSelection TogglePickObjByName "SkinR" SetScalar "0" CreateBoundary ClearSelection SetViewDirection <-29132.094161005, -58264.1883220099, -87396.2824830149> PickFaceByRay [34736.5365438175, 60035.9181804084, 92483.9734009837] SetViewDirection <-29132.094161005, -58264.1883220099, -87396.2824830149> PickFaceByRay [33247.5424031925, 59909.4446696662, 93064.6203736399] SetViewDirection <-29132.094161005, -58264.1883220099, -87396.2824830149> PickFaceByRay [30567.1400594425, 64325.2605876349, 91014.2104615305] SetViewDirection <68107.401947022, -77578.7847952667, 34991.6946230917> PickFaceByRay [-73163.175384522, 80612.0399222199, -38819.3899355917] SetViewDirection <68107.401947022, -77578.7847952667, 34991.6946230917> PickFaceByRay [-74929.3599548345, 79823.9425101105, -37128.9719668417] SetViewDirection <63927.3818253821, 61182.8629394967, 63651.0163183417> PickFaceByRay [-67489.8068742102, -66814.3551269967, -65879.9958105292] SetBoundary "voltage_bnd" CreateBoundary ClearSelection SaveBnds ExitBnds 1 #Adjust the setup of the solver to calculate the capacitance LaunchMatrixSetup "modify" IncludeObject { "Sense" "Drive1" "Drive2"} SaveModule ExitModule 0 #Setup the solution SolnOptnSetup 1 SetCurrentSolnPrmsType "SolnOptnSetup" SetSolveType 1 SetSolver 0 SetSolveFields 1 SetSolvePrms 1 SetAdaptiveInfo 20 30 NumError NumError SetResidual 1E-005 SetMeshType "Initial" 0 SaveSetup SolnPrmsDone "Ok" #Solve Problem SolveNominal ############################################Save Dada #Get Data Assign CD1S GetMatrixCellValue 'Drive1' 'Sense' Assign CD2S GetMatrixCellValue 'Drive2' 'Sense' Assign CD1D2 GetMatrixCellValue 'Drive1' 'Drive2' #Record the data in the database Assign rowcnt DatabaseGetRows M_cap DatabaseAddRow M_cap DatabaseSetField M_cap rowcnt 0 deltaX DatabaseSetField M_cap rowcnt 1 deltaY DatabaseSetField M_cap rowcnt 2 deltaZ DatabaseSetField M_cap rowcnt 3 alfaX DatabaseSetField M_cap rowcnt 4 alfaY DatabaseSetField M_cap rowcnt 5 alfaZ DatabaseSetField M_cap rowcnt 6 CD1S DatabaseSetField M_cap rowcnt 7 CD2S DatabaseSetField M_cap rowcnt 8 CD1D2 ExportDatabase M_cap DBName "yes" #These commands update the movement Assign deltaX add deltaX stepX Assign deltaY add deltaY stepY Assign deltaZ add deltaZ stepZ Assign alfaX add alfaX stepAlfaX Assign alfaY add alfaY stepAlfaY Assign alfaZ add alfaZ stepAlfaZ ############################################### #Loop end End ############################################### #Save Data in a File #Salva o Banco de dados ExportDatabase M_cap DBName "yes" ###################################################################################### ###################################################################################### # Phase four end ###################################################################################### ###################################################################################### # Version 2.a # This file handle the movements in X, Y, Z and alfa (tilt) diretcions. # This macro is associated with the macro called DrawMacro.mac wich is responsable # for the drawing of the model. # # Author Dionisio Doering # ddoering@lbl.gov # #################################################### # Macro Begin #################################################### # Create a database called M_cap Assign M_cap Newdatabase 9 Assign DBName "capacit_alfaY_v03_w_shield.cap" Assign DrawName "DrawMacro_sh2.mac" ############################## # define the movements ############################## Assign deltaX 0 Assign deltaY 0 Assign deltaZ 0 Assign alfaX 0 Assign alfaY -1 Assign alfaZ 0 Assign Num_step 21 Assign stepX 0 Assign stepY 0 Assign stepZ 0 Assign stepAlfaX 0 Assign stepAlfaY 0.1 Assign stepAlfaZ 0 Assign NumError 2 ########################################### #Loop ########################################### Repeat Num_step #Draw Model FileExec DrawName #Setup Materials LaunchMaterials "modify" MaterialSelect "gold" MaterialAssign { "Drive1" "Drive2" "Sense" "SkinL" "SkinR" } "OCS" { " 0.0000000000" " 0.0000000000" " 0.0000000000" } { " 0.0000000000" " 0.0000000000" " 0.0000000000" } MaterialSelect "glass" MaterialAssign { "BaseL" "BaseR" "MirrorL" "MirrorR" } "OCS" { " 0.0000000000" " 0.0000000000" " 0.0000000000" } { " 0.0000000000" " 0.0000000000" " 0.0000000000" } MaterialAssign { "Foot1" "Foot2" "Foot3" "Foot4" "Foot5" "Foot6" } "OCS" { " 0.0000000000" " 0.0000000000" " 0.0000000000" } { " 0.0000000000" " 0.0000000000" " 0.0000000000" } SaveModule ExitModule 1 #Setup fonts and boundaries LaunchBoundaries "modify" ClearAllBnds SetBoundary "voltage_src" TogglePickObjByName "Sense" SetScalar "0" CreateBoundary ClearSelection TogglePickObjByName "Drive1" SetScalar "1" CreateBoundary ClearSelection TogglePickObjByName "Drive2" SetScalar "-1" CreateBoundary ClearSelection TogglePickObjByName "SkinL" SetScalar "0" CreateBoundary ClearSelection TogglePickObjByName "SkinR" SetScalar "0" CreateBoundary ClearSelection SetViewDirection <-29132.094161005, -58264.1883220099, -87396.2824830149> PickFaceByRay [34736.5365438175, 60035.9181804084, 92483.9734009837] SetViewDirection <-29132.094161005, -58264.1883220099, -87396.2824830149> PickFaceByRay [33247.5424031925, 59909.4446696662, 93064.6203736399] SetViewDirection <-29132.094161005, -58264.1883220099, -87396.2824830149> PickFaceByRay [30567.1400594425, 64325.2605876349, 91014.2104615305] SetViewDirection <68107.401947022, -77578.7847952667, 34991.6946230917> PickFaceByRay [-73163.175384522, 80612.0399222199, -38819.3899355917] SetViewDirection <68107.401947022, -77578.7847952667, 34991.6946230917> PickFaceByRay [-74929.3599548345, 79823.9425101105, -37128.9719668417] SetViewDirection <63927.3818253821, 61182.8629394967, 63651.0163183417> PickFaceByRay [-67489.8068742102, -66814.3551269967, -65879.9958105292] SetBoundary "voltage_bnd" CreateBoundary ClearSelection SaveBnds ExitBnds 1 #Adjust the setup of the solver to calculate the capacitance LaunchMatrixSetup "modify" IncludeObject { "Sense" "Drive1" "Drive2"} SaveModule ExitModule 0 #Setup the solution SolnOptnSetup 1 SetCurrentSolnPrmsType "SolnOptnSetup" SetSolveType 1 SetSolver 0 SetSolveFields 1 SetSolvePrms 1 SetAdaptiveInfo 20 30 NumError NumError SetResidual 1E-005 SetMeshType "Initial" 0 SaveSetup SolnPrmsDone "Ok" #Solve Problem SolveNominal ############################################Save Dada #Get Data Assign CD1S GetMatrixCellValue 'Drive1' 'Sense' Assign CD2S GetMatrixCellValue 'Drive2' 'Sense' Assign CD1D2 GetMatrixCellValue 'Drive1' 'Drive2' #Record the data in the database Assign rowcnt DatabaseGetRows M_cap DatabaseAddRow M_cap DatabaseSetField M_cap rowcnt 0 deltaX DatabaseSetField M_cap rowcnt 1 deltaY DatabaseSetField M_cap rowcnt 2 deltaZ DatabaseSetField M_cap rowcnt 3 alfaX DatabaseSetField M_cap rowcnt 4 alfaY DatabaseSetField M_cap rowcnt 5 alfaZ DatabaseSetField M_cap rowcnt 6 CD1S DatabaseSetField M_cap rowcnt 7 CD2S DatabaseSetField M_cap rowcnt 8 CD1D2 ExportDatabase M_cap DBName "yes" #These commands update the movement Assign deltaX add deltaX stepX Assign deltaY add deltaY stepY Assign deltaZ add deltaZ stepZ Assign alfaX add alfaX stepAlfaX Assign alfaY add alfaY stepAlfaY Assign alfaZ add alfaZ stepAlfaZ ############################################### #Loop end End ############################################### #Save Data in a File #Salva o Banco de dados ExportDatabase M_cap DBName "yes" ###################################################################################### ###################################################################################### # Phase four end ###################################################################################### ###################################################################################### # Version 2.a # This file handle the movements in X, Y, Z and alfa (tilt) diretcions. # This macro is associated with the macro called DrawMacro.mac wich is responsable # for the drawing of the model. # # Author Dionisio Doering # ddoering@lbl.gov # #################################################### # Macro Begin #################################################### # Create a database called M_cap Assign M_cap Newdatabase 9 Assign DBName "capacit_alfaZ_v03_w_shield.cap" Assign DrawName "DrawMacro_sh2.mac" ############################## # define the movements ############################## Assign deltaX 0 Assign deltaY 0 Assign deltaZ 0 Assign alfaX 0 Assign alfaY 0 Assign alfaZ -0.2 Assign Num_step 21 Assign stepX 0 Assign stepY 0 Assign stepZ 0 Assign stepAlfaX 0 Assign stepAlfaY 0 Assign stepAlfaZ 0.02 Assign NumError 2 ########################################### #Loop ########################################### Repeat Num_step #Draw Model FileExec DrawName #Setup Materials LaunchMaterials "modify" MaterialSelect "gold" MaterialAssign { "Drive1" "Drive2" "Sense" "SkinL" "SkinR" } "OCS" { " 0.0000000000" " 0.0000000000" " 0.0000000000" } { " 0.0000000000" " 0.0000000000" " 0.0000000000" } MaterialSelect "glass" MaterialAssign { "BaseL" "BaseR" "MirrorL" "MirrorR" } "OCS" { " 0.0000000000" " 0.0000000000" " 0.0000000000" } { " 0.0000000000" " 0.0000000000" " 0.0000000000" } MaterialAssign { "Foot1" "Foot2" "Foot3" "Foot4" "Foot5" "Foot6" } "OCS" { " 0.0000000000" " 0.0000000000" " 0.0000000000" } { " 0.0000000000" " 0.0000000000" " 0.0000000000" } SaveModule ExitModule 1 #Setup fonts and boundaries LaunchBoundaries "modify" ClearAllBnds SetBoundary "voltage_src" TogglePickObjByName "Sense" SetScalar "0" CreateBoundary ClearSelection TogglePickObjByName "Drive1" SetScalar "1" CreateBoundary ClearSelection TogglePickObjByName "Drive2" SetScalar "-1" CreateBoundary ClearSelection TogglePickObjByName "SkinL" SetScalar "0" CreateBoundary ClearSelection TogglePickObjByName "SkinR" SetScalar "0" CreateBoundary ClearSelection SetViewDirection <-29132.094161005, -58264.1883220099, -87396.2824830149> PickFaceByRay [34736.5365438175, 60035.9181804084, 92483.9734009837] SetViewDirection <-29132.094161005, -58264.1883220099, -87396.2824830149> PickFaceByRay [33247.5424031925, 59909.4446696662, 93064.6203736399] SetViewDirection <-29132.094161005, -58264.1883220099, -87396.2824830149> PickFaceByRay [30567.1400594425, 64325.2605876349, 91014.2104615305] SetViewDirection <68107.401947022, -77578.7847952667, 34991.6946230917> PickFaceByRay [-73163.175384522, 80612.0399222199, -38819.3899355917] SetViewDirection <68107.401947022, -77578.7847952667, 34991.6946230917> PickFaceByRay [-74929.3599548345, 79823.9425101105, -37128.9719668417] SetViewDirection <63927.3818253821, 61182.8629394967, 63651.0163183417> PickFaceByRay [-67489.8068742102, -66814.3551269967, -65879.9958105292] SetBoundary "voltage_bnd" CreateBoundary ClearSelection SaveBnds ExitBnds 1 #Adjust the setup of the solver to calculate the capacitance LaunchMatrixSetup "modify" IncludeObject { "Sense" "Drive1" "Drive2"} SaveModule ExitModule 0 #Setup the solution SolnOptnSetup 1 SetCurrentSolnPrmsType "SolnOptnSetup" SetSolveType 1 SetSolver 0 SetSolveFields 1 SetSolvePrms 1 SetAdaptiveInfo 20 30 NumError NumError SetResidual 1E-005 SetMeshType "Initial" 0 SaveSetup SolnPrmsDone "Ok" #Solve Problem SolveNominal ############################################Save Dada #Get Data Assign CD1S GetMatrixCellValue 'Drive1' 'Sense' Assign CD2S GetMatrixCellValue 'Drive2' 'Sense' Assign CD1D2 GetMatrixCellValue 'Drive1' 'Drive2' #Record the data in the database Assign rowcnt DatabaseGetRows M_cap DatabaseAddRow M_cap DatabaseSetField M_cap rowcnt 0 deltaX DatabaseSetField M_cap rowcnt 1 deltaY DatabaseSetField M_cap rowcnt 2 deltaZ DatabaseSetField M_cap rowcnt 3 alfaX DatabaseSetField M_cap rowcnt 4 alfaY DatabaseSetField M_cap rowcnt 5 alfaZ DatabaseSetField M_cap rowcnt 6 CD1S DatabaseSetField M_cap rowcnt 7 CD2S DatabaseSetField M_cap rowcnt 8 CD1D2 ExportDatabase M_cap DBName "yes" #These commands update the movement Assign deltaX add deltaX stepX Assign deltaY add deltaY stepY Assign deltaZ add deltaZ stepZ Assign alfaX add alfaX stepAlfaX Assign alfaY add alfaY stepAlfaY Assign alfaZ add alfaZ stepAlfaZ ############################################### #Loop end End ############################################### #Save Data in a File #Salva o Banco de dados ExportDatabase M_cap DBName "yes" ###################################################################################### ###################################################################################### # Phase one end ###################################################################################### ######################################################################################