|
[Sponsors] |
Problem in parallel simulation with UDF and Rotational domain |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 12, 2019, 14:35 |
Problem in parallel simulation with UDF and Rotational domain
|
#1 |
New Member
João de Sousa Bomfim Neto
Join Date: Oct 2017
Location: Maranguape, Ceará, Brasil
Posts: 27
Rep Power: 9 |
Dear all,
I'm trying to do a simulation in parallel with deploying a simple UDF, to increase the rotation speed (RPM) smoothly. UDF build and load normally. The UDF is bellow: Code:
#include "udf.h" DEFINE_ZONE_MOTION(fmotion, omega, axis, origin, velocity, time, dtime) { #if! RP_HOST if (time < 0.15) { *omega = 2400.0 * time; } else { *omega = 400.0; } N3V_D(velocity, =, 0.0, 0.0, 0.0); N3V_S(origin, =, 0.0); /* default values, line could be omitted */ N3V_D(axis, =, 0.0, 0.0, 1.0); /* default values, line could be omitted */ #endif return; } Does anyone have any idea how to fix it? All te best for all. |
|
July 12, 2019, 17:16 |
|
#2 |
New Member
João de Sousa Bomfim Neto
Join Date: Oct 2017
Location: Maranguape, Ceará, Brasil
Posts: 27
Rep Power: 9 |
To include: Fluent runs by Visual Studio prompt.
|
|
July 14, 2019, 19:38 |
|
#3 |
New Member
João de Sousa Bomfim Neto
Join Date: Oct 2017
Location: Maranguape, Ceará, Brasil
Posts: 27
Rep Power: 9 |
Update: Fluent with UDF runs normally in serial mode, but without directive #if !RP_HOST. Someone have an idea?
|
|
July 14, 2019, 23:00 |
|
#4 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
you don't special macros for parallel for this code
you don't need: Code:
#if! RP_HOST best regards |
|
July 15, 2019, 10:20 |
|
#5 |
New Member
João de Sousa Bomfim Neto
Join Date: Oct 2017
Location: Maranguape, Ceará, Brasil
Posts: 27
Rep Power: 9 |
I DONT BELIEVE!!!
I swear I Tried this, but I think tried without VS prompt inicialization.AlexanderZ, I'm very very grateful, I dont know how I let this escape. Thanks so much again, have a great Day!!!! |
|
July 15, 2019, 16:22 |
|
#6 |
New Member
João de Sousa Bomfim Neto
Join Date: Oct 2017
Location: Maranguape, Ceará, Brasil
Posts: 27
Rep Power: 9 |
Taking advantage of the post, how could I monitor the angular velocity? Did he have to get tangential velocity and divide by radius? (Simulation of a VAWT with sliding mesh). Or is there an easier way? If I have to use the tangential velocity, which Report Type is most appropriate? Thanks in advance.
|
|
July 16, 2019, 00:43 |
|
#7 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
I have no experience about it, there are several tutorials on youtube
https://www.google.com/search?q=Simu...hrome&ie=UTF-8 best regards |
|
July 16, 2019, 18:10 |
|
#8 |
New Member
João de Sousa Bomfim Neto
Join Date: Oct 2017
Location: Maranguape, Ceará, Brasil
Posts: 27
Rep Power: 9 |
I think I got.
|
|
Tags |
parallel, rotating, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF Changing Rotational Velocity | sdarmayuda | Fluent UDF and Scheme Programming | 0 | September 18, 2017 11:36 |
Problem with UDF for CG Circular Motion | luthlau | Fluent UDF and Scheme Programming | 1 | September 16, 2016 03:08 |
Wankel Engine UDF Problem | Kxt908 | Fluent UDF and Scheme Programming | 0 | February 2, 2014 09:15 |
Dynamic Mesh- Parallel UDF | DE HEART | Fluent UDF and Scheme Programming | 14 | August 11, 2010 02:29 |
udf in MRF to update the rotational speed | Jam | FLUENT | 0 | August 21, 2005 13:50 |