|
[Sponsors] |
March 29, 2017, 09:12 |
Dynamic mesh in parallel udf
|
#1 |
New Member
Rakesh
Join Date: Jan 2014
Location: Delft
Posts: 13
Rep Power: 12 |
Hi everyone,
I am writing a udf for a dynamic mesh update in parallel solver. I have attached a part of my code. Basically I use a looping macro, that loops across all the faces, then loops the nodes of that face and updates the nodal positions. #if !PARALLEL begin_f_loop(f,thread) { if PRINCIPAL_FACE_P(f,thread) { f_node_loop(f,thread,n) { v = F_NODE(f,thread,n); if (NODE_POS_NEED_UPDATE(v)) { NODE_POS_UPDATED(v); NODE_X(v) = NODE_X(v) + deltax; } } } } end_f_loop(f,thread) The problem is when I use this is parallel, it does not work properly. Basically what it does is, in a parallel solver, the mesh is partitioned along cells. So there are certain nodes which belong to two (or more) faces (or cells). These nodes are updated twice (or more) independently by each of the compute nodes to which they are assigned. The macro (NODE_POS_NEED_UPDATE) does not seem to work in parallel case. Is my observation correct? Could you suggest any other macro that takes care of these shared nodes in a parallel solver? Please let me know your suggestions. Best, R |
|
April 21, 2017, 06:34 |
|
#2 |
Member
|
commands such as if !RP_HOST or if !RP_NODE have to be used to avoid this problem
|
|
August 2, 2018, 06:45 |
|
#3 |
New Member
Nausheen Sultana
Join Date: Jul 2014
Posts: 4
Rep Power: 12 |
Hi R,
Did you find a solution to the problem? I have similar problems with node count, where the nodes are being counted more than once. |
|
August 2, 2018, 08:02 |
|
#4 | |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
Quote:
Code:
begin_f_loop_int Code:
begin_f_loop best regards |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 08:37 |
[ICEM] 3D Dynamic Mesh - Boundary layer mesh issues | nathanricks | ANSYS Meshing & Geometry | 0 | September 23, 2015 06:14 |
Interesting problem: Parallel Processor VOF Fluent + Dynamic Mesh + System Coupling | spaceprop | FLUENT | 5 | September 2, 2014 10:43 |
Dynamic mesh crashes in parallel, but works in serial | 86lolo | FLUENT | 7 | June 24, 2014 06:24 |
Dynamic Mesh- Parallel UDF | DE HEART | Fluent UDF and Scheme Programming | 14 | August 11, 2010 02:29 |