CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   How to start CFX Solver with an existing parfile (http://www.cfd-online.com/Forums/cfx/85149-how-start-cfx-solver-existing-parfile.html)

lentschi February 18, 2011 05:14

How to start CFX Solver with an existing parfile
 
Hello everyone,

i want to split my Solver-process in 2 divisions:

At first, cfx should ONLY produce a partitioning file <parfile>. That's quite easy to perform with the "part-only" command.

Afterwards I want to read in this <parfile> and then to start the solver.

Therefore I used following commands:

cfx5solve -def test.def -part-only 24

and then in another script:
cfx5solve -def test.def -parfile-read test.par

cfx5solve -def test.def -par-dist <host-list> -start-method "HP MPI Distributed Parallel" -double -name tmp -ccl upwind.ccl

cfx5solve -def test.def -par-dist <host-list> -start-method "HP MPI Distributed Parallel" -double -ini Upwind.res

Or should I put the parfile-read command and the -par-dist in one line like this:

cfx5solve -def test.def -parfile-read test.par -par-dist 24 -start-method "HP MPI Distributed Parallel" -double -name tmp -ccl upwind.ccl

cfx5solve -def test.def -par-dist 24 -start-method "HP MPI Distributed Parallel" -double -ini Upwind.res


The Solver should perfom some "Upwind" steps and then switch to "High Resolution"
Without this splitting of the partitioning part, the Solving works!

Thanks in advance.

Regards Markus

lentschi February 18, 2011 08:17

I got it:

to partition only:
cfx5solve -def test.def -part-only #Partitions

and then to solve:

cfx5solve -def test.def -par-dist #CPUs -parfile-read <parfile> -start-method "HP MPI Distributed Parallel" .......

pavitran February 18, 2011 21:35

Hi
 
What is the advantage of this method when compared with default partitioning command "-part" ?

joey2007 February 20, 2011 13:31

If you change nothing in the mesh, it is possible to reuse the par-file. This means can save the time for the partitioning.


All times are GMT -4. The time now is 16:03.