|
[Sponsors] |
June 6, 2016, 12:01 |
CFX-Batch mode Run
|
#1 |
New Member
Fabio
Join Date: Jun 2016
Posts: 11
Rep Power: 9 |
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 |
|
June 7, 2016, 01:39 |
|
#2 |
Senior Member
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12 |
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 |
|
June 7, 2016, 08:36 |
|
#3 |
New Member
Fabio
Join Date: Jun 2016
Posts: 11
Rep Power: 9 |
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 |
|
June 7, 2016, 08:53 |
|
#4 |
Senior Member
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12 |
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... |
|
June 8, 2016, 04:09 |
|
#5 |
New Member
Fabio
Join Date: Jun 2016
Posts: 11
Rep Power: 9 |
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 |
|
September 6, 2016, 08:00 |
|
#6 |
New Member
Aung Ko Latt
Join Date: Jul 2016
Location: Germany
Posts: 12
Rep Power: 9 |
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 |
|
October 20, 2016, 12:57 |
|
#7 |
Member
Chaitanya
Join Date: Mar 2016
Location: Stuttgart, Germany
Posts: 50
Rep Power: 10 |
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. |
|
Tags |
#batch mode, #cfx, #multicore parallel run |
|
|
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 |