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

About parallel couple cfx with other code using user fortran

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 3, 2021, 11:15
Default About parallel couple cfx with other code using user fortran
  #1
New Member
 
jinzhihui
Join Date: Oct 2017
Posts: 12
Rep Power: 6
Jinzhihui is on a distinguished road
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?
Jinzhihui is offline   Reply With Quote

Old   June 3, 2021, 12:12
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,551
Rep Power: 28
Opaque will become famous soon enough
Quote:
Originally Posted by Jinzhihui View Post

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.
Correct!!

Quote:
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.
Not certain how you figure it out from looking at content in the MMS. Let us say it is correct

Quote:
How can I get the entire unqiue mesh information directly,
Why would you want to have such information in a given partition? The point of the partition step is to not have it fully in a single partition.

Quote:
It's supposed to be in order, because the order of mapping to partitions is acoording to the entire field mesh order
Where did you get that idea from? Perhaps I did not understand your statement

Quote:
Are there any alternative better advices for these?
Difficult to advise without knowing what you are trying to achieve with such information
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   June 5, 2021, 23:39
Default
  #3
New Member
 
jinzhihui
Join Date: Oct 2017
Posts: 12
Rep Power: 6
Jinzhihui is on a distinguished road
Quote:
Originally Posted by Opaque View Post
Correct!!



Not certain how you figure it out from looking at content in the MMS. Let us say it is correct
Thank you very much for the quick reply!
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:
Why would you want to have such information in a given partition? The point of the partition step is to not have it fully in a single partition.

Where did you get that idea from? Perhaps I did not understand your statement
The overall mesh information,including the mesh vertices, control volume, order according to the mapping to partitioners, which for external momentum source computation is necessary. Because those can't be calculated only based on the partitioner information that is mixed with the overlap mesh information.
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
Jinzhihui is offline   Reply With Quote

Reply

Tags
cel, cfx, fortran, mms, parallel

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Question on CFX user fortran: how to obtain variable value of a certain local leizi CFX 4 July 15, 2019 10:44
Compiling User Fortran with CFX 14.0 on Win64 Raijin Thunderkeg CFX 29 March 9, 2016 11:45
User Fortran with CFX 14.5.7 on winnt_amd64 HLo CFX 22 December 13, 2015 08:26
User FORTRAN for Monitoring in CFX jir2830 CFX 1 August 19, 2015 17:48
Comparison between C/C++ and Fortran? rick Main CFD Forum 45 September 6, 2011 00:52


All times are GMT -4. The time now is 06:40.