×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Running multiple input files consecutively

Running multiple input files consecutively

Running multiple input files consecutively

(OP)
Hello,

I would like to run a set of independent input files in ANSYS consecutively.  Can anyone explain how to do this?  I found the help in the Ansys manual a little confusing.

Thanks for your help,
Debbie   

RE: Running multiple input files consecutively

You could always run the separate input files within one deck as a "maclib" or <name>.mac (MACro LIBrary) file (a macro is a subroutine within an input deck). See:

http://www1.ansys.com/customer/content/documentation/60/Hlp_C_USE.html

http://www1.ansys.com/customer/content/documentation/60/Hlp_C_ULIB.html

http://www1.ansys.com/customer/content/documentation/60/Hlp_C_CH2_4.html#cmdapdlmacrojla070199

Firstly create an input file <name>.inp which will point to the macros in the <name>.mac file. The mac file will contain a list of macros/subroutines, which will be called in the <name>.inp just like calling Fortran subroutines. Your mac file will contain these "headers" which can be called, i.e. the header below is "model1" and is contained within a mac file e.g. "drej.mac":


model1
fini
/clear
/prep7
csys,5
dsys,0
n,1,0.,0.
n, ...
 .
 .
ET, 1, MPC184
 .
 .

your *.inp file will identify your mac file and call "model1" by:

*ULIB,drej,mac,, $ USE,model1,<arg1>,<arg2>,...


hope this helps, and apologies for the long reply :)
-- drej --

RE: Running multiple input files consecutively

Hello, dpollack!

I select these from Ansys Installation Guide (chapter 4.1.3). Colud be useful:

To run multiple consecutive jobs on Windows 2000/NT systems, create and run a batch file containing commands similar to the example below:

set ANSYS57_PRODUCT=ANE3FL
set ANS_CONSEC=YES
<drive>:\Program Files\Ansys Inc\ansys57\bin\<platform>
     \ansys -b <vm1.dat >vm1.out
<drive>:\Program Files\Ansys Inc\ansys57\bin\<platform>
     \ansys -b <vm2.dat >vm2.out
<drive>:\Program Files\Ansys Inc\ansys57\bin\<platform>
     \ansys -b <vm3.dat >vm3.out

To run multiple consecutive jobs on Windows 98 or Windows ME systems, create and run a batch file containing commands similar to the example below:

set ANSYS57_PRODUCT=ANE3FL
set ANS_CONSEC=YES
START /WAIT <drive>:\Program Files\Ansys Inc\ansys57\bin\<platform>
     \ansys -b <vm1.dat >vm1.out
START /WAIT <drive>:\Program Files\Ansys Inc\ansys57\bin\<platform>
     \ansys -b <vm2.dat >vm2.out
START /WAIT <drive>:\Program Files\Ansys Inc\ansys57\bin\<platform>
     \ansys -b <vm3.dat >vm3.out

A good description of Ansys Command Line is in chapter 3.1 from Ansys Operations Guide.

Best Regards,

Juzz
--------------------------------
Justin Onisoru
Researcher
Romanian Academy
Institute of Solid Mechanics
--------------------------------

RE: Running multiple input files consecutively

(OP)
Hello,
 
I am tried running a bash file using the same layout as in the help file.
 
When I call ansys70 (with several of the different tags) I get a message that says: "Checkout failed for the above prouduct Flexlm error message: License does not support this feature."  Does this mean that I am unable to use a batch setup as the license is set up?  or am I calling the wrong file?  I tried tansys70 but that only brings up the launcher.
 
Thanks for your help.

RE: Running multiple input files consecutively

dpollack,

Juzz has given you the correct method.  

The example he has given assumes that you are using ansys multiphysics which, by the looks of your output window, FlexLm is telling you you don't have.

Refer to your licence file to see which licence you have and replace Ane3fl (multiphysics) with whatever ansys licence you have (kept in your licence.dat file)

Also the Ansys 7 paths have changed.  Its now

"C:\Program Files\Ansys Inc\v70\Ansys\bin\Intel\Ansysb.exe" -b -i inputfilename -o outputfilename

The quotes are important for spacing.

Hope this helps

RE: Running multiple input files consecutively

Dear Stipity (Computer):

My code is as follows:

USE DFLIB
LOGICAL(4) result
RESULT=SYSTEMQQ('e:\ansys\ansys71 -b -p ane3fl -i user01 -o user01out.txt')
or:
RESULT=SYSTEMQQ('e:\ansys\ansys71 -b -p ane3fl -i user01.txt -o user01out.txt')
But when I run the program,it says "the input file name does not exit".
I am sure the name "user01" is correct and it lies in \ansys. It's a txt file which was written by ADPL language.
My FORTRAN is visual fortran 6.5 and ANSYS is ANSYS7.1.
Hope your help!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources