How to run Acusolve on Linux commands?

alpha_21885
alpha_21885 Altair Community Member
edited October 2020 in Community Q&A

Hi Acusolve Experts,

 

I can submit Acusolve jobs via command windows. image.png.1b7790c128e587b0472b3de938f78077.png

However, I have to run from AcuSolve Cmd Prompt, not directly from Windows cmd. Then I do not know how to run on Linux CentO.S

image.png.423bbda9ba6fd91ccac5be61d0886af5.png

Could you advise for this case?

Thank you!

Tagged:

Answers

  • acupro
    acupro
    Altair Employee
    edited March 2019

    Let's assume you've changed to the directory that contains the .inp file and MESH.DIR directory.

     

    acuRun  -pb  demo  -inp  t1.inp  -np  4

     

    should do it.  In general,  acuRun  -h  will give you complete set of options.  You can also review the 'acuRun' section of the Programs Reference Manual.

  • alpha_21885
    alpha_21885 Altair Community Member
    edited March 2019

    Hi Acupro,

     

    Thanks for your advice but I do the same as your instruction and face the below errors:

    acuRun: Log is redirected to: demo.1.Log
    acuRun: *** ERROR: error occurred executing acuPrep
    acuRun: Fri Mar 29 23:12:09 2019

  • acupro
    acupro
    Altair Employee
    edited April 2019

    Please post either the Log file, or the actual error messages in the Log file.  (Or is the above the entire contents of the Log file?)  Have you contacted your local Altair support team?

  • alpha_21885
    alpha_21885 Altair Community Member
    edited April 2019

    Hi acupro,

     

    Now I already can run Acusolve on Linux cluster successfully. We can close this topic.

    Few mistakes I learnt here are:

    1) Firstly, I need to CD(change directory) to ...Altair/2019/Acusolve/Linux64/bin

    2) I have to define '-pdir'. The input data must be:

             a) *.inp file

             b) Meshing folder 'HYPERMESH.DIR'

    3) I have to update license.

    <?xml version="1.0" encoding="UTF-8"?>image.thumb.png.25efd8b575a83e349b1173aba4246402.png

  • acupro
    acupro
    Altair Employee
    edited April 2019

    Right.  You need to establish the AcuSolve environment.  It looks like you're running bash.  As explained in the HyperWorks Installagion Guide, you should include the following in your ~/.profile file

     

    source  $INSTALL_DIR/altair/acusolve/linux64/script/acusim.sh

     

    $INSTALL_DIR is the chose installation directory.  Then you can issue the acuRun command with options from your problem directory.  (You can use     which  acuRun     to make sure you've correctly established the environment.)  You can also add that line to set the ALTAIR_LICENSE_PATH environment variable to your ~/.profile file.

     

    We typically use the local (in the problem directory) Acusim.cnf file to specify the problem name and other options.
     

  • alpha_21885
    alpha_21885 Altair Community Member
    edited April 2019

    Hi AcuPro,

     

    Now I am trying to submit Acusolve jobs via PBS command.

    #!/bin/bash
    #PBS -N Optistruct_Test_1
    #PBS -l select=1:ncpus=24:mem=60GB

    $ALTAIR_HOME/ Acusolve/Linux64/bin/acuRun -inp '1.inp'  -nt 14

     

    But it does not generate any things.

    I can do the same with Optistruct easily.

  • acupro
    acupro
    Altair Employee
    edited April 2019

    You'll be better off using the   acuSub   command to submit through PBS.  It will create the script for you and submit the job.  See

     

    acuSub  -h

     

    for usage and options.  Again, you'll need to source the appropriate acusim.sh script first, in order to use acuSub.

     

    In your script, it looks like you want to use 24 cores from a single compute node.  (select=1:ncpus=24).  You don't need to include anything about mem.  Then in your acuRun command, you don't need quotes around the name of the .inp file (and I suggest you not start the name of the .inp file with a number), then you have -nt 14.

     

    Let's say your input file is test_run1.inp instead.  What about:

     

    $ALTAIR_HOME/ Acusolve/Linux64/bin/acuRun  -inp  test_run1.inp  -np  24  -nt  _auto  -do  all  -pbs_attach  -pbs

     

    Still - I suggest you try acuSub, and then look at the submit script it generates.

     

    acuSub  -pb  test_run1  -np  24  -ppn  24  -sched  pbspro  -pbs_attach

     

    again, assuming your inp file is test_run1.inp, you want to use 24 physical cores on a single compute node, and you're using the licensed pbs

     

  • alpha_21885
    alpha_21885 Altair Community Member
    edited April 2019

    Hi Acupro,

     

    Based on your instruction, I already could run Acusolve on PBS commands. Thanks a ton.

    <?xml version="1.0" encoding="UTF-8"?>image.thumb.png.ac38a8d8d43b607cbc286b288d9e6af3.png