Running LS-DYNA in batch mode?

1,035 views
Skip to first unread message

Ricardo Azevedo

unread,
Aug 12, 2021, 4:57:05 PM8/12/21
to LS-DYNA2
Dear colleagues, it is possible to run LS-DYNA in batch mode, that is, to analyze several .k files in sequence and automatically, without the need for user intervention?
Best regards,

James M. Kennedy

unread,
Aug 12, 2021, 5:28:34 PM8/12/21
to Ricardo Azevedo, LS-DYNA2

Dear Ricardio,

 

See if this is of some help.


Locate the old "Command Prompt" window utility using Start/All Programs/Accessories/

Command Prompt on your PC where you can run jobs.bat (a simple text file).

Example of command prompt syntax for a single job:

d:\ls-dyna971\program\ls971_s_nsmp i=bw.dyn o=bw.otf memory=10000000

plus an example for several jobs (or a single job) in a file named 'jobs.bat':

********
jobs.bat
********
cd d:\e_a_s\n_c_fail\v94
d:\ls-dyna971\program\ls971_s_smp i=ss_51.k o=ss_51.otf ncpu=2
cd d:\e_a_s\n_c_fail\v94_o
d:\ls-dyna971\program\ls971_s_smp i=ss_52.k o=ss_52.otf ncpu=2
cd d:\e_a_s\n_c_fail\v94_p
d:\ls-dyna971\program\ls971_s_smp i=ss_53.k o=ss_53.otf ncpu=2
cd d:\e_a_s\n_c_fail\v95
d:\ls-dyna971\program\ls971_s_smp i=ss_51.k o=ss_51.otf ncpu=2
cd d:\e_a_s\n_c_fail\v95_o
d:\ls-dyna971\program\ls971_s_smp i=ss_52.k o=ss_52.otf ncpu=2

The jobs should run sequentially with a designated output file (*.otf) for each run that

should allow you to investigate any issues.

"cd" is change directory.

"d" is the double precision release, while "s" is single precision.

"i" is the input file, "o" is the output file, "ncpu" is the number
of cpus.

------------------------------------------------

I suggest that you read the Execution Syntax described on page 2-13 of the LS-DYNA

User's Manual. A number of examples are provided in that section..

http://ftp.lstc.com/anonymous/outgoing/jday/manuals/DRAFT_Vol_I.pdf

------------------------------------------------

Sincerely,
James M. Kennedy
KBS2 Inc.
August 12, 2021

--
You received this message because you are subscribed to the Google Groups "LS-DYNA2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ls-dyna2+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ls-dyna2/fad42010-4aa3-4aa0-85f3-9ff01bba3471n%40googlegroups.com.

Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Ailin Chen

unread,
Jul 19, 2024, 1:01:43 PM7/19/24
to LS-DYNA2
Hello:

I am new to the groups so sorry for repeating the message.
Is it possible to do the same trick with the cfile rather than the input.k file?
I want to run the command file in the batch mode to.
Thank you so much!


Best
Ailin 

vika...@gmail.com

unread,
Aug 2, 2024, 12:13:57 AM8/2/24
to LS-DYNA2
In my experience, it depends on precisely what you intend to accomplish. For me, using cfile to automate pre-processing operations has worked out fine.

Thiagarajan Ganesh

unread,
Aug 12, 2024, 10:04:57 PM8/12/24
to ls-d...@googlegroups.com
Dear Colleagues,
I am trying to simulate explosion using TNT in MMALE mode. I have the EOS and JWL parameters.

I am trying to figure out how to account for the exact weight of the TNT explosive given the density of the material. Is it done by considering the number of mesh elements and hence the volume of the TNT material?

Thank you in advance,
Ganesh

l...@schwer.net

unread,
Aug 13, 2024, 9:21:47 AM8/13/24
to Thiagarajan Ganesh, ls-d...@googlegroups.com

Yes the density of the explosive and the number of MM-ALE cells containing explosive provides the mass.

 

The best way to add explosive to a MM-ALE mesh is to use the keyword

  *INITIAL_VOLUME_FRACTION_GEOMETRY

 

Also, you need a minimum of 10 cells across the RADIUS of the spherical charge in MM-ALE; LBE assumes a spherical charge.                           --len

Reply all
Reply to author
Forward
0 new messages