|
[Sponsors] |
July 1, 2013, 09:59 |
DEFINE_ZONE_MOTION in 3D parallel processing
|
#1 |
New Member
lucas s
Join Date: Jul 2013
Location: Grenoble, France
Posts: 12
Rep Power: 13 |
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; } Is there anybody who knows how to do it in parallel processing? Thanks, PS: I am using UNIX. |
|
July 2, 2013, 09:52 |
re
|
#2 |
New Member
lucas s
Join Date: Jul 2013
Location: Grenoble, France
Posts: 12
Rep Power: 13 |
Now it doesn't work for the 2D case. Can somebody help me? Please!!
|
|
July 2, 2013, 16:10 |
|
#3 |
Senior Member
ahmad
Join Date: Feb 2012
Posts: 101
Rep Power: 14 |
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 } |
|
July 3, 2013, 03:50 |
|
#4 |
New Member
lucas s
Join Date: Jul 2013
Location: Grenoble, France
Posts: 12
Rep Power: 13 |
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... |
|
June 24, 2014, 17:00 |
|
#5 |
New Member
Mohsen Besharat
Join Date: Jan 2014
Location: Lisbon, Portugal
Posts: 4
Rep Power: 12 |
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 |
|
|
|
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 10:25 |
OF Parallel Processing with Core i7 - How to Handle Hyperthreading | dancfd | OpenFOAM Running, Solving & CFD | 5 | March 5, 2012 22:43 |
HP MPI warning...Distributed parallel processing | Peter | CFX | 10 | May 14, 2011 07:17 |
bubbly flow and parallel processing | mvee | FLUENT | 0 | September 12, 2007 06:08 |
About parallel processing in Linux | tuks | CFX | 10 | August 8, 2005 09:22 |