Is it possible to run AUTODYN in batch on Windows?


It is possible to solve AUTODYN models in batch mode for either version 6.1 or 11.0 on Windows XP.
(For version 11.0, consult "Start menu > Programs > ANSYS 11.0 > Help > ANSYS AUTODYN Help: AUTODYN Quick Start Guide > Running AUTODYN in Batch Mode on Windows Platforms" for further details.)

The way in which AUTODYN runs in batch is through the use of .dat files. There are several .dat files of interest.
savedirs.dat: Working directory for data files
datadir.dat: Working directory for data files (11.0 only)
setbat.dat: List of ident and cycles to run from working directory
These files normally reside in the 'configuration' directory (AUTODYN program directory for 6.1 or in C:Documents and Settings<USER>Application DataAnsysv110AUTODYN for 11.0. Except for "savedirs.dat", the other two files can reside in the working directory.
When AUTODYN is launched and sees these .dat files, it then knows what working directory and which idents to process.
During the batch solution, two other .dat files can be created by the user in the working or configuration directory:
endbat.dat: Stop solution at end of current cycle
savenow.dat: Write a restart file at end of current cycle
If parallel processing is to be run, additional environment variables maybe set in the DOS batch file for those specifications.

A sample DOS batch file for AUTODYN 11.0 is shown below. Change WORKING_DIR to your working directory, WORKING_IDENT to the ident name, and replace <USER> with your username.
------------begin batch file
@echo off

rem ****************************************
rem For AUTODYN 11.0
rem Set the following environment variables
rem ****************************************
set WORKING_DIR=D:my_project_dir
set WORKING_IDENT=my_model_name
set WORKING_CYCLE=0
rem -- change below to AUTODYN program dir for 6.1
set AUTODYN_DAT=C:Documents and Settings<USER>Application DataAnsysv110AUTODYN
rem -- change below to AUTODYN program dir for 6.1
set AUTODYN_DIR=C:Program FilesANSYS Incv110AISOLAUTODYNintel
rem -- below for parallel processing only
set WMPIBIN_DIR=C:Program FilesWMPIbin

rem ----------------------------------------
rem Environment variables
rem ----------------------------------------
rem -- below for parallel processing only
set PATH=%WMPIBIN_DIR%;%PATH%
set WMPI_MASTER_ERROR_OUTPUT=%WORKING_DIR%wmpi_master_err.log
set WMPI_SLAVE_ERROR_OUTPUT=%WORKING_DIR%wmpi_slave_err.log
rem -- remove below for 6.1
set WMPI_CLUSTER_CONF_FILE=%AUTODYN_DAT%wmpi.clusterconf
rem -- remove below for6.1
set WMPI_PG_FILENAME=%AUTODYN_DAT%autodyn.pg

cd /d %AUTODYN_DAT%

rem ----------------------------------------
rem setbat.dat
rem ----------------------------------------
echo %WORKING_IDENT% > setbat.dat
echo %WORKING_CYCLE% >> setbat.dat

rem ----------------------------------------
rem savedirs.dat
rem ----------------------------------------
echo %WORKING_DIR% > savedirs.dat
echo %WORKING_DIR% >> savedirs.dat

rem ----------------------------------------
rem datadir.dat
rem ----------------------------------------
rem -- remove below for 6.1
echo %WORKING_DIR% > datadir.dat
rem -- remove below for 6.1
echo %WORKING_DIR% >> datadir.dat

cd /d %AUTODYN_DIR%

rem ----------------------------------------
rem Run AUTODYN
rem ----------------------------------------
rem -- replace below with "autodynv6.exe" for 6.1
autodyn.exe
------------end batch file
For AUTODYN 6.1, replace "autodyn.exe" with "autodynv6.exe". Furthermore, change "AUTODYN_DAT" and "AUTODYN_DIR" environment variables to the AUTODYN program directory (e.g., C:AUTODYNadv61 for default single-precision version of AUTODYN 6.1 or C:AUTODYNadv61_intel_dp for Intel Fortran-compatible double-precision version of AUTODYN 6.1).





Show Form
No comments yet. Be the first to add a comment!