|
[Sponsors] |
Problem in parallel simulation with UDF and Rotational domain |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
João de Sousa Bomfim Neto
Join Date: Oct 2017
Location: Maranguape, Ceará, Brasil
Posts: 27
Rep Power: 8 ![]() |
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. ![]() |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
João de Sousa Bomfim Neto
Join Date: Oct 2017
Location: Maranguape, Ceará, Brasil
Posts: 27
Rep Power: 8 ![]() |
To include: Fluent runs by Visual Studio prompt.
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
João de Sousa Bomfim Neto
Join Date: Oct 2017
Location: Maranguape, Ceará, Brasil
Posts: 27
Rep Power: 8 ![]() |
Update: Fluent with UDF runs normally in serial mode, but without directive #if !RP_HOST. Someone have an idea?
|
|
![]() |
![]() |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
João de Sousa Bomfim Neto
Join Date: Oct 2017
Location: Maranguape, Ceará, Brasil
Posts: 27
Rep Power: 8 ![]() |
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!!!! ![]() ![]() ![]() |
|
![]() |
![]() |
![]() |
![]() |
#6 |
New Member
João de Sousa Bomfim Neto
Join Date: Oct 2017
Location: Maranguape, Ceará, Brasil
Posts: 27
Rep Power: 8 ![]() |
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.
|
|
![]() |
![]() |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
![]() |
#8 |
New Member
João de Sousa Bomfim Neto
Join Date: Oct 2017
Location: Maranguape, Ceará, Brasil
Posts: 27
Rep Power: 8 ![]() |
I think I got.
|
|
![]() |
![]() |
![]() |
Tags |
parallel, rotating, udf |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF Changing Rotational Velocity | sdarmayuda | Fluent UDF and Scheme Programming | 0 | September 18, 2017 10:36 |
Problem with UDF for CG Circular Motion | luthlau | Fluent UDF and Scheme Programming | 1 | September 16, 2016 02:08 |
Wankel Engine UDF Problem | Kxt908 | Fluent UDF and Scheme Programming | 0 | February 2, 2014 08:15 |
Dynamic Mesh- Parallel UDF | DE HEART | Fluent UDF and Scheme Programming | 14 | August 11, 2010 01:29 |
udf in MRF to update the rotational speed | Jam | FLUENT | 0 | August 21, 2005 12:50 |