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

DEFINE_ZONE_MOTION in 3D parallel processing

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2013, 08:59
Default DEFINE_ZONE_MOTION in 3D parallel processing
  #1
New Member
 
lucas s
Join Date: Jul 2013
Location: Grenoble, France
Posts: 12
Rep Power: 12
LoUcAsss is on a distinguished road
Hi

I am modeling a 3D air flow in a rotating geometry.
I use the following UDF to impose an increasing rotational velocity.
Code:
#include "udf.h"

DEFINE_ZONE_MOTION(fmotion,omega,axis,origin,velocity,time,dtime)
{
      if (time < 0.1) 
       {
         *omega = 6492.6*time; 
       }
         else
       {
        *omega = 1249.26;
       }
   
      N3V_D (velocity,=,0.0,0.0,0.0); 
      N3V_S(origin,=,0.0);        
      N3V_D(axis,=,0.0,0.0,1.0); 

    return;
}
I adapted it to the 2D case, and it worked very well in serial and parallel processing. But in 3D, it works only in serial processing.
Is there anybody who knows how to do it in parallel processing?

Thanks,

PS: I am using UNIX.
LoUcAsss is offline   Reply With Quote

Old   July 2, 2013, 08:52
Default re
  #2
New Member
 
lucas s
Join Date: Jul 2013
Location: Grenoble, France
Posts: 12
Rep Power: 12
LoUcAsss is on a distinguished road
Now it doesn't work for the 2D case. Can somebody help me? Please!!
LoUcAsss is offline   Reply With Quote

Old   July 2, 2013, 15:10
Default
  #3
Senior Member
 
ahmad
Join Date: Feb 2012
Posts: 101
Rep Power: 14
malay is on a distinguished road
try this ...

Code:
#include "udf.h"

DEFINE_ZONE_MOTION(fmotion,omega,axis,origin,velocity,time,dtime)
{
#if !RP_HOST     
 if (time < 0.1) 
       {
         *omega = 6492.6*time; 
       }
         else
       {
        *omega = 1249.26;
       }
   
      N3V_D (velocity,=,0.0,0.0,0.0); 
      N3V_S(origin,=,0.0);        
      N3V_D(axis,=,0.0,0.0,1.0); 

    return;
#endif
}
malay is offline   Reply With Quote

Old   July 3, 2013, 02:50
Default
  #4
New Member
 
lucas s
Join Date: Jul 2013
Location: Grenoble, France
Posts: 12
Rep Power: 12
LoUcAsss is on a distinguished road
Hi malay!

Thank you!
For the 2D case, it seems that it works.
For the 3D case we'll see.

Yesterday I tried to re-calculate the 3D case and there is something strange. Because, when I interpreted my udf ( for the both case: the calculation started. But when I compiled it, the calculation didn't start iterating.
Maybe it's a problem of compiler...
LoUcAsss is offline   Reply With Quote

Old   June 24, 2014, 16:00
Default
  #5
New Member
 
mohsenhiva's Avatar
 
Mohsen Besharat
Join Date: Jan 2014
Location: Lisbon, Portugal
Posts: 4
Rep Power: 12
mohsenhiva is on a distinguished road
Hi,

I have a problem in using your Udf. It cannot be interpreted and I receive below error! Can you help me with this issue. It is very urgent.

chip-exec: fmotion: wrong return type: float udf function expected
Error: received a fatal signal (Segmentation fault).

Error: received a fatal signal (Segmentation fault).
Error Object: #f
mohsenhiva is offline   Reply With Quote

Reply

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
Parallel processing of OpenFOAM cases on multicore processor??? g.akbari OpenFOAM Running, Solving & CFD 31 November 1, 2017 09:25
OF Parallel Processing with Core i7 - How to Handle Hyperthreading dancfd OpenFOAM Running, Solving & CFD 5 March 5, 2012 21:43
HP MPI warning...Distributed parallel processing Peter CFX 10 May 14, 2011 06:17
bubbly flow and parallel processing mvee FLUENT 0 September 12, 2007 05:08
About parallel processing in Linux tuks CFX 10 August 8, 2005 08:22


All times are GMT -4. The time now is 21:19.