Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running multiple input files consecutively

Status
Not open for further replies.

dpollack

Mechanical
Jun 10, 2002
11
0
0
US
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
 
Replies continue below

Recommended for you

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




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 &quot;headers&quot; which can be called, i.e. the header below is &quot;model1&quot; and is contained within a mac file e.g. &quot;drej.mac&quot;:


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 &quot;model1&quot; by:

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


hope this helps, and apologies for the long reply :)
-- drej --
 
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
--------------------------------
 
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: &quot;Checkout failed for the above prouduct Flexlm error message: License does not support this feature.&quot; 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.
 
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

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

The quotes are important for spacing.

Hope this helps
 
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!
 
Status
Not open for further replies.
Back
Top