CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Dynamic mesh in parallel udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 29, 2017, 09:12
Default Dynamic mesh in parallel udf
  #1
New Member
 
Rakesh
Join Date: Jan 2014
Location: Delft
Posts: 13
Rep Power: 12
rsarma is on a distinguished road
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
rsarma is offline   Reply With Quote

Old   April 21, 2017, 06:34
Default
  #2
Member
 
Grigor Nikolov
Join Date: Dec 2012
Posts: 36
Rep Power: 14
Grigor Nikolov is on a distinguished road
Send a message via Skype™ to Grigor Nikolov
commands such as if !RP_HOST or if !RP_NODE have to be used to avoid this problem
Grigor Nikolov is offline   Reply With Quote

Old   August 2, 2018, 06:45
Default
  #3
New Member
 
Nausheen Sultana
Join Date: Jul 2014
Posts: 4
Rep Power: 12
nausheensultana is on a distinguished road
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.
nausheensultana is offline   Reply With Quote

Old   August 2, 2018, 08:02
Default
  #4
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Quote:
Originally Posted by nausheensultana View Post
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.
regarding script from first message, you may try to use
Code:
begin_f_loop_int
instead of previous macro
Code:
begin_f_loop
you may find more information in ansys fluent customization manual

best regards
AlexanderZ is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 13:52.