How to change Abaqus solver executable file name












2















I wish to compare two parallel running of Abaqus simulations with umat coded in Fortran. It seems that I am able to select the correct standard.exe associated with each run, but it won't always be this lucky. This prompted me to ask if there is a way to call the abaqus job and change the name of standard.exe to maybe something like standard1.exe to differentiate between the runs. I checked abaqus help but it doesn't seem like there is an option through the command line.










share|improve this question



























    2















    I wish to compare two parallel running of Abaqus simulations with umat coded in Fortran. It seems that I am able to select the correct standard.exe associated with each run, but it won't always be this lucky. This prompted me to ask if there is a way to call the abaqus job and change the name of standard.exe to maybe something like standard1.exe to differentiate between the runs. I checked abaqus help but it doesn't seem like there is an option through the command line.










    share|improve this question

























      2












      2








      2








      I wish to compare two parallel running of Abaqus simulations with umat coded in Fortran. It seems that I am able to select the correct standard.exe associated with each run, but it won't always be this lucky. This prompted me to ask if there is a way to call the abaqus job and change the name of standard.exe to maybe something like standard1.exe to differentiate between the runs. I checked abaqus help but it doesn't seem like there is an option through the command line.










      share|improve this question














      I wish to compare two parallel running of Abaqus simulations with umat coded in Fortran. It seems that I am able to select the correct standard.exe associated with each run, but it won't always be this lucky. This prompted me to ask if there is a way to call the abaqus job and change the name of standard.exe to maybe something like standard1.exe to differentiate between the runs. I checked abaqus help but it doesn't seem like there is an option through the command line.







      visual-studio-2013 fortran abaqus






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 2 at 17:16









      Jesse FengJesse Feng

      417




      417
























          1 Answer
          1






          active

          oldest

          votes


















          3














          There is a lot of room for improvement for jobs/analyses submission in Abaqus...



          Anyways, feel free to have a look at my GitHub repo. I am trying to fill what's lacking in Abaqus when submitting jobs. Let me know if you have any question.



          Or you can use this code to identify the right Process IDentifier (pid) of the job that you are running. You can then kill the process associated with this id.



          import psutil
          processesList = psutil.pids()
          jobname=''
          print('nnStart')
          for proc in processesList:
          try:
          p = psutil.Process(proc)
          if (p.name()=='standard.exe' or p.name()=='explicit.exe' or p.name()=='pre.exe' or p.name()=='explicit_dp.exe'):
          i=0
          jobCpus='1'
          jobGpus='0'
          sameJob = False
          print('nPID: %s'%proc)
          for line in p.cmdline():
          if line == '-job':
          if jobname==p.cmdline()[i+1]:
          sameJob = True
          else:
          sameJob=False
          jobname=p.cmdline()[i+1]
          print('Job Name: %s'%jobname)
          elif line == '-indir':
          jobdir=p.cmdline()[i+1]
          print('Job Dir: %s'%jobdir)
          elif line == '-cpus':
          jobCpus=p.cmdline()[i+1]
          print('Cpus number: %s'%jobCpus)
          elif line == '-gpus':
          jobGpus=p.cmdline()[i+1]
          print('Gpus number: %s'%jobGpus)
          i+=1
          except:
          pass
          print('nEndnn')


          In order to kill a process, you can use this command:



          import os, signal
          os.kill(int(pid), signal.SIGTERM)





          share|improve this answer





















          • 1





            Thanks! I will check the pid to confirm that I am attaching to the right process!

            – Jesse Feng
            Jan 3 at 18:53












          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54010513%2fhow-to-change-abaqus-solver-executable-file-name%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3














          There is a lot of room for improvement for jobs/analyses submission in Abaqus...



          Anyways, feel free to have a look at my GitHub repo. I am trying to fill what's lacking in Abaqus when submitting jobs. Let me know if you have any question.



          Or you can use this code to identify the right Process IDentifier (pid) of the job that you are running. You can then kill the process associated with this id.



          import psutil
          processesList = psutil.pids()
          jobname=''
          print('nnStart')
          for proc in processesList:
          try:
          p = psutil.Process(proc)
          if (p.name()=='standard.exe' or p.name()=='explicit.exe' or p.name()=='pre.exe' or p.name()=='explicit_dp.exe'):
          i=0
          jobCpus='1'
          jobGpus='0'
          sameJob = False
          print('nPID: %s'%proc)
          for line in p.cmdline():
          if line == '-job':
          if jobname==p.cmdline()[i+1]:
          sameJob = True
          else:
          sameJob=False
          jobname=p.cmdline()[i+1]
          print('Job Name: %s'%jobname)
          elif line == '-indir':
          jobdir=p.cmdline()[i+1]
          print('Job Dir: %s'%jobdir)
          elif line == '-cpus':
          jobCpus=p.cmdline()[i+1]
          print('Cpus number: %s'%jobCpus)
          elif line == '-gpus':
          jobGpus=p.cmdline()[i+1]
          print('Gpus number: %s'%jobGpus)
          i+=1
          except:
          pass
          print('nEndnn')


          In order to kill a process, you can use this command:



          import os, signal
          os.kill(int(pid), signal.SIGTERM)





          share|improve this answer





















          • 1





            Thanks! I will check the pid to confirm that I am attaching to the right process!

            – Jesse Feng
            Jan 3 at 18:53
















          3














          There is a lot of room for improvement for jobs/analyses submission in Abaqus...



          Anyways, feel free to have a look at my GitHub repo. I am trying to fill what's lacking in Abaqus when submitting jobs. Let me know if you have any question.



          Or you can use this code to identify the right Process IDentifier (pid) of the job that you are running. You can then kill the process associated with this id.



          import psutil
          processesList = psutil.pids()
          jobname=''
          print('nnStart')
          for proc in processesList:
          try:
          p = psutil.Process(proc)
          if (p.name()=='standard.exe' or p.name()=='explicit.exe' or p.name()=='pre.exe' or p.name()=='explicit_dp.exe'):
          i=0
          jobCpus='1'
          jobGpus='0'
          sameJob = False
          print('nPID: %s'%proc)
          for line in p.cmdline():
          if line == '-job':
          if jobname==p.cmdline()[i+1]:
          sameJob = True
          else:
          sameJob=False
          jobname=p.cmdline()[i+1]
          print('Job Name: %s'%jobname)
          elif line == '-indir':
          jobdir=p.cmdline()[i+1]
          print('Job Dir: %s'%jobdir)
          elif line == '-cpus':
          jobCpus=p.cmdline()[i+1]
          print('Cpus number: %s'%jobCpus)
          elif line == '-gpus':
          jobGpus=p.cmdline()[i+1]
          print('Gpus number: %s'%jobGpus)
          i+=1
          except:
          pass
          print('nEndnn')


          In order to kill a process, you can use this command:



          import os, signal
          os.kill(int(pid), signal.SIGTERM)





          share|improve this answer





















          • 1





            Thanks! I will check the pid to confirm that I am attaching to the right process!

            – Jesse Feng
            Jan 3 at 18:53














          3












          3








          3







          There is a lot of room for improvement for jobs/analyses submission in Abaqus...



          Anyways, feel free to have a look at my GitHub repo. I am trying to fill what's lacking in Abaqus when submitting jobs. Let me know if you have any question.



          Or you can use this code to identify the right Process IDentifier (pid) of the job that you are running. You can then kill the process associated with this id.



          import psutil
          processesList = psutil.pids()
          jobname=''
          print('nnStart')
          for proc in processesList:
          try:
          p = psutil.Process(proc)
          if (p.name()=='standard.exe' or p.name()=='explicit.exe' or p.name()=='pre.exe' or p.name()=='explicit_dp.exe'):
          i=0
          jobCpus='1'
          jobGpus='0'
          sameJob = False
          print('nPID: %s'%proc)
          for line in p.cmdline():
          if line == '-job':
          if jobname==p.cmdline()[i+1]:
          sameJob = True
          else:
          sameJob=False
          jobname=p.cmdline()[i+1]
          print('Job Name: %s'%jobname)
          elif line == '-indir':
          jobdir=p.cmdline()[i+1]
          print('Job Dir: %s'%jobdir)
          elif line == '-cpus':
          jobCpus=p.cmdline()[i+1]
          print('Cpus number: %s'%jobCpus)
          elif line == '-gpus':
          jobGpus=p.cmdline()[i+1]
          print('Gpus number: %s'%jobGpus)
          i+=1
          except:
          pass
          print('nEndnn')


          In order to kill a process, you can use this command:



          import os, signal
          os.kill(int(pid), signal.SIGTERM)





          share|improve this answer















          There is a lot of room for improvement for jobs/analyses submission in Abaqus...



          Anyways, feel free to have a look at my GitHub repo. I am trying to fill what's lacking in Abaqus when submitting jobs. Let me know if you have any question.



          Or you can use this code to identify the right Process IDentifier (pid) of the job that you are running. You can then kill the process associated with this id.



          import psutil
          processesList = psutil.pids()
          jobname=''
          print('nnStart')
          for proc in processesList:
          try:
          p = psutil.Process(proc)
          if (p.name()=='standard.exe' or p.name()=='explicit.exe' or p.name()=='pre.exe' or p.name()=='explicit_dp.exe'):
          i=0
          jobCpus='1'
          jobGpus='0'
          sameJob = False
          print('nPID: %s'%proc)
          for line in p.cmdline():
          if line == '-job':
          if jobname==p.cmdline()[i+1]:
          sameJob = True
          else:
          sameJob=False
          jobname=p.cmdline()[i+1]
          print('Job Name: %s'%jobname)
          elif line == '-indir':
          jobdir=p.cmdline()[i+1]
          print('Job Dir: %s'%jobdir)
          elif line == '-cpus':
          jobCpus=p.cmdline()[i+1]
          print('Cpus number: %s'%jobCpus)
          elif line == '-gpus':
          jobGpus=p.cmdline()[i+1]
          print('Gpus number: %s'%jobGpus)
          i+=1
          except:
          pass
          print('nEndnn')


          In order to kill a process, you can use this command:



          import os, signal
          os.kill(int(pid), signal.SIGTERM)






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 4 at 13:18

























          answered Jan 3 at 13:57









          RémyRémy

          8910




          8910








          • 1





            Thanks! I will check the pid to confirm that I am attaching to the right process!

            – Jesse Feng
            Jan 3 at 18:53














          • 1





            Thanks! I will check the pid to confirm that I am attaching to the right process!

            – Jesse Feng
            Jan 3 at 18:53








          1




          1





          Thanks! I will check the pid to confirm that I am attaching to the right process!

          – Jesse Feng
          Jan 3 at 18:53





          Thanks! I will check the pid to confirm that I am attaching to the right process!

          – Jesse Feng
          Jan 3 at 18:53




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54010513%2fhow-to-change-abaqus-solver-executable-file-name%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          MongoDB - Not Authorized To Execute Command

          How to fix TextFormField cause rebuild widget in Flutter

          Npm cannot find a required file even through it is in the searched directory