|
[Sponsors] |
About parallel couple cfx with other code using user fortran |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 3, 2021, 12:15 |
About parallel couple cfx with other code using user fortran
|
#1 |
New Member
jinzhihui
Join Date: Oct 2017
Posts: 12
Rep Power: 9 |
dear all
Now I am trying to couple CFX with other code. I write a CEL function by user defined CEL for the momentum source term ,and Junction Box routines are used to interactive data with my external code by exploring the data areas(CFX MMS), such as output the velocity field and the corresponding coordinates, input the momentum source corresponding to the mesh vertices. The momentum sources are used to the CEL function according to the relation of the solve location and the no-loop all mesh vertices. The mentioned procedures above have achived with a serial run in CFX. Now I want to do a parallel run. My question is, when the all mesh are divided into a number of 'partitions', the master and slave are assigned a portion of the entire fileld mesh, respectively. The mapping relation of each partioner and the entire unqiue mesh could be found by MMS, but the entire mesh information could not be acquired. How can I get the entire unqiue mesh information directly, It's supposed to be in order, because the order of mapping to partitions is acoording to the entire field mesh order Are there any alternative better advices for these? |
|
June 3, 2021, 13:12 |
|
#2 | |||||
Senior Member
Join Date: Jun 2009
Posts: 1,869
Rep Power: 33 |
Quote:
Quote:
Quote:
Quote:
Quote:
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
||||||
June 6, 2021, 00:39 |
|
#3 | ||
New Member
jinzhihui
Join Date: Oct 2017
Posts: 12
Rep Power: 9 |
Quote:
the index of mesh vertices assigned to each partition located in the entire mesh vertices could be get by exploring the data areas, e.g the data in the /Flow/MESH directory of each partitioner. The mapping relation of each partitioner including index order located in the fully mesh, the index of the overlap part located in respective partition also could be get.I can't acquire the above information by using the utility routines in CFX help, only by exploring the data areas directly. Do you have any good method for this? Quote:
for example the fully unique mesh order (I can't get the coordinate, volume information etc. corresponding to order) order 1 2 3 4 5 6 7 8 9 10 .... coor ... volume ... the partitioner assigned mesh order(these information i can get through MMS) order: p1 1 4 6 10 p2 2 5 6 7 p3 3 7 8 9 coor: p1 p2 p3 volume: p1 p2 p3 overlap: p1 p2 p3 |
|||
Tags |
cel, cfx, fortran, mms, parallel |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question on CFX user fortran: how to obtain variable value of a certain local | leizi | CFX | 4 | July 15, 2019 11:44 |
Compiling User Fortran with CFX 14.0 on Win64 | Raijin Thunderkeg | CFX | 29 | March 9, 2016 12:45 |
User Fortran with CFX 14.5.7 on winnt_amd64 | HLo | CFX | 22 | December 13, 2015 09:26 |
User FORTRAN for Monitoring in CFX | jir2830 | CFX | 1 | August 19, 2015 18:48 |
Comparison between C/C++ and Fortran? | rick | Main CFD Forum | 45 | September 6, 2011 01:52 |