LS Dyna

LS Dyna

Topics related to LS-DYNA, Autodyn, Explicit STR and more.

Help Running LS-Dyna on Linux Machine with ANSYS Server

    • kkuhn3
      Subscriber

      Hello,

      I (my graduate research program) have recently had to switch to licensing for LS-Dyna through ANSYS. I have been a Dyna user for 6 years from the LSTC side of things. I am responsible in my group for also setting up the server and previously had a Dyna LSTC server running on a linux machine. 

      I successfully have the ANSYS server running on our RHEL machine. I have verified from my local windows machine that LS-Run 2025 R1 (downloaded as part of the ANSYS 2025) connects to the server and will run a sample test job (SMP 1 core) on my local machine. What I want to do is to be able to run/solve Dyna input files from the command line on the linux machine from the solver executables (SMP with multiple cores) as I previously did when we were under the LSTC system. When trying to run a job, I am returned an error message in the job log file that says the "license client cannot find any servers to talk to". This raises a few questions I have on this that might be the issue:

      1. Is there documentation on how to make Dyna exectuables point to the ANSYS server, specifically in Linux? I of course have environment variables for LSTC pointed at the ANSYS port (1055). I also set an environment variable ANSYSLMD_LICENSE_FILE to the port and IP for the server. Recall I am trying to run Dyna jobs on the machine that is also the server.
      2. Do I have to download updated ANSYS specific executable files which try connect to the ANSYS server rather than the LSTC server?
        1. If so, do I have to download the entire linux version of Ansys 2025 to get these or do the executables after a certain version do this from the LSTC website that is still linked through the ANSYS (https://ftp.lstc.com/user/download_page.html) page?
      3. Surely, I am still able to submit Dyna jobs on linux through the command line (with the right executable) and don't have to have LS-Run on the Linux machine to batch and submit jobs?

      Thanks!

    • igandiko
      Ansys Employee

      Hello, All recent executables support both Ansys and LSTC license, as long as correct environment variable is set. Please set below environment variable to use Ansys license.

      export LSTC_LICENSE=Ansys

      When you run the job in command line, the below output at the top indicates the solver is using Ansys license. If the output shows License option: check network license only, then the solver is trying to use LSTC network license. 

      You do not need env LSTC_LICENSE=network and LSTC_LICENSE_SERVER=server. These two variables are needed for LSTC network license only. You also don't need LS-RUN to run the jobs. You can directly enter the solver command in the terminal or run the jobs through user-defined scripts. 

      • kkuhn3
        Subscriber

         

        Thank you for the reply. I have set the ENV variable to LSTC_LICENSE=Ansys. I do show now the “license option:check ansys licenses only” line in my job output text file. One more question, is I am now getting an ansys license manager error with a code of Error 70022 (OTH+22). I am trying to run the smp d R14.1 Dyna executable. My online search doesn’t yield much beyond a reddit post. Do I need to be on a more current executable version or is this a different issue?

        I should also add, that my local windows machine will connect to the ANSYS server and run a sample job through LS-Run. I am also noting that the linux machine I am trying to run the executable on is also the server (local).

    • igandiko
      Ansys Employee

      Could you please share a screenshot of the error? Have you set env ANSYSLMD_LICENSE_FILE=1055@127.0.0.1? Do you have ansycl file located in the same directory as the solver? 

      • kkuhn3
        Subscriber

        I do have the ANSYSLMD_LICENSE_FILE=1055@my.server.IP environment variable set. Below is the error message. It is "Unable to connect to or start local server". I do not know what the ansycl file is, nor have it in the same directory as the solver. A search of both the linux system and and my windows system does not produce an ansycl file. What is it and where should I find it, assuming everything was installed in the default locations?

        I am calling the solver the same way as I previously did using the command line. With the solver in the same directory as the input file $ ./solver_name i=input_name.k ncpu=xx memory=xx >output_text_file.txt. Does there have to be a call to ansys licensing system within the command? I assume not, since the top of my output file also has the line "License option : check ansys license only" as we discussed earlier.

         

        • igandiko
          Ansys Employee

          Hello, ansyscl is the license licent. This binary is provided with ls-dyna solver. If you downloaded standalone ls-dyna solvers, ansyscl is provided with the package. Please make sure this ansyscl exists in the same directory as ls-dyna solver. 

      • kkuhn3
        Subscriber

        Hello,

        I wanted to bump this in case this came through too late on Friday. Hoping to get this figured out this week.

         

    • OAN
      Subscriber

      Was this issue solved? I experience the same issue in Windows.

    • OAN
      Subscriber

      I think I found the answer to this. 

      Go to the lsdynamsvar.bat file and place the following two into the file:

      set "LSTC_LICENSE=ansys"
      set "ANSYSLMD_LICENSE_FILE=1055@YourHostName"

      • kkuhn3
        Subscriber

        Yes this has been solved. I did previously set the environment variables as you suggested. What I was missing was the inclusion of the ansyscl file in the directory the solver is being executed from. 

Viewing 4 reply threads
  • You must be logged in to reply to this topic.