CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

CFX-Batch mode Run

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Allen Latt

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 6, 2016, 12:01
Default CFX-Batch mode Run
  #1
New Member
 
Fabio
Join Date: Jun 2016
Posts: 11
Rep Power: 9
Fabiio87 is on a distinguished road
Hi all,

I am tryning to run a CFX 17.0 model, in batch mode to our cluster.


I prepared a .sh script and when I run it the solver gives me the following error:

/bin/bash: <name of the hosts> : command not found


Which could be the reason of this?

Thank you very much,

Fabio
Fabiio87 is offline   Reply With Quote

Old   June 7, 2016, 01:39
Default
  #2
Senior Member
 
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12
-Maxim- is on a distinguished road
maybe you could post the whole script? The problem is usually that the path to the executable is not correct or incomplete etc.
The command to start solver from batch is pretty straight forward and documented in ansys help
-Maxim- is offline   Reply With Quote

Old   June 7, 2016, 08:36
Default
  #3
New Member
 
Fabio
Join Date: Jun 2016
Posts: 11
Rep Power: 9
Fabiio87 is on a distinguished road
Dear Maxim,

thank you for your reply. Yes I read about the command line in the CFX solver managere guide but I still have a doubt.

The script is the following:

#!/bin/sh

PATH=/afs/enea.it/software/bin/support/ssh:$PATH
export PATH

PROCS=`cat $LSB_DJOB_HOSTFILE | wc -l`

hosts=`echo $LSB_MCPU_HOSTS | sed -e "s:cresco:,cresco:g" -e "s:.it :.it*:g"`

hostlist=`echo ${hosts:1} | sed -e "s: ::g"`

/afs/enea.it/software/ansys/ansys170/v170/CFX/bin/cfx5solve -def ValveA_SST.def -par-host-list $hostlist -part $PROCS -start-method "HP MPI Distributed Parallel" $*


I do not know, because I checked the command of cfx5solve and are correct but maybe there is something wrong somewhere else.

Fabio
Fabiio87 is offline   Reply With Quote

Old   June 7, 2016, 08:53
Default
  #4
Senior Member
 
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12
-Maxim- is on a distinguished road
Since I use a windows machine right now I can't check your whole script. But I would triple check that your path to the cfx5solve is correct. It sounds similar to the error in this post.

Is it a HP cluster? Or is there a reason why you use HP MPI instead of Intel MPI?

In your situation I would do the normal debugging. Try to start a job without the variables. Just write -part 16 etc.

Or contact your system admin...
-Maxim- is offline   Reply With Quote

Old   June 8, 2016, 04:09
Default
  #5
New Member
 
Fabio
Join Date: Jun 2016
Posts: 11
Rep Power: 9
Fabiio87 is on a distinguished road
Hi,

The administrator gives me the first script in which has been used the HP MPI starting method, I do not know exactly if it is right, but in the cluster are installed computers with Intel processors. Anyway on one node this script goes:

#!/bin/sh

PATH=/afs/enea.it/software/bin/support/ssh:$PATH
export PATH

/afs/enea.it/software/ansys/ansys170/v170/CFX/bin/cfx5solve -def ValveA_SST.def -part 24 -start-method "Platform MPI Local Parallel"

Maybe there is something wrong in the commands "par-host-list" and "part". I tryied to use the start method " Platform MPI Distributed Parallel" but does not run.

If I have the host list, it is right to use par-host-list instead of par-dist? Do you know if the command -part is necessaty to be specified?

Regards,

Fabio
Fabiio87 is offline   Reply With Quote

Old   September 6, 2016, 08:00
Smile
  #6
New Member
 
Aung Ko Latt
Join Date: Jul 2016
Location: Germany
Posts: 12
Rep Power: 9
Allen Latt is on a distinguished road
Hello Everyone,

I would like to ask you one thing about CFX-Solver.
I am going to do CFX solving in Linux.
I already got .def file when I finished in CFX setup in Ansys Workbench.
I named that file as 'CFX.def'.

In Linux, I have a folder and I put that CFX.def inside this folder. In that folder, I put another script called 'RUNCFX.pl'. I write code inside that perl 'RUNCFX.pl' script that will use also 'CFX.def' file. I wrote perl script in order to run different(two or three) velocities by using 'CFX.def' file.

By manually, I have to open CFX solver >> Tools >> Command line
in order to run that .pl file. In CFX solver command window, i wrote ' perl RUNCFX.pl'.

That thing is that "is there any batch command in command prompt in Linux to run that RUNCFX.pl file in CFX solver automatically"? in order to neglect by doing manually.

I already read "Command-Line Options and Keywords for cfx5solve". I didn't find out the solution.

Is there someone who knows how to call .pl in CFX in command prompt?

Best Regards,
Aung Ko Latt
cysanghavi likes this.
Allen Latt is offline   Reply With Quote

Old   October 20, 2016, 12:57
Default
  #7
Member
 
Chaitanya
Join Date: Mar 2016
Location: Stuttgart, Germany
Posts: 50
Rep Power: 10
cysanghavi is on a distinguished road
Hi,
I have the exact same problem.
.pl file created. Can i run this on Linux ?
I have 3 runs in 3 folders.
I use the line cd path/directory/..
but this is not read by the command prompt which gives several errors.

It works if all the files are in the same folder.
Please an help is welcome.
cysanghavi is offline   Reply With Quote

Reply

Tags
#batch mode, #cfx, #multicore parallel run


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run Multiple Files in Batch nickninevah STAR-CCM+ 6 October 12, 2017 06:17
[ANSYS Meshing] Run .rpl file in batch mode gara1988 ANSYS Meshing & Geometry 2 October 11, 2013 08:44
Batch Run with Initial values file krrishcfd CFX 1 July 28, 2011 02:35
problem with running UDF in batch mode James FLUENT 0 June 6, 2006 06:49
batch mode run hennie Siemens 1 October 3, 2002 09:13


All times are GMT -4. The time now is 01:48.