|
[Sponsors] |
How to extract Angular Velocity from Simulation? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 12, 2020, 17:09 |
How to extract Angular Velocity from Simulation?
|
#1 |
New Member
David
Join Date: Aug 2020
Posts: 5
Rep Power: 6 |
Hello, I currently am simulating the rotation of a propeller in ANSYS (transient solver). I've used a UDF macro (DEFINE_ZONE_MOTION) to have my propeller cell zone to rotate at a constantly changing RPM. However, I'd like to be able to see the angular velocity values for each time step, and see it's graph. I don't see an option to graph angular velocity in the report definitions, nor could I figure out how to do it through another UDF or expression. Can anybody help me figure out how to extract the angular velocity? Thank you, I'd appreciate it alot.
|
|
August 12, 2020, 22:07 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
this is definition of DEFINE_ZONE_MOTION
Code:
DEFINE_ZONE_MOTION (name, omega, axis, origin, velocity, time, dtime)
__________________
best regards ****************************** press LIKE if this message was helpful |
|
August 13, 2020, 19:48 |
|
#3 |
New Member
David
Join Date: Aug 2020
Posts: 5
Rep Power: 6 |
Hi AlexanderZ, thank you for your advice, I did exactly just that and was able to export the data to a text file when the simulation runs. I do now have a different problem now since the data is posted twice in the data file as if function was ran twice. I am currently trying to solve that and if you had any advice on that, I'd love it hear it.
|
|
August 14, 2020, 01:26 |
|
#4 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
Code:
#include "udf.h" static int last_ts = -1; DEFINE_ZONE_MOTION (name, omega, axis, origin, velocity, time, dtime) { int curr_ts; curr_ts = N_TIME; if (last_ts != curr_ts) { last_ts = curr_ts; ***your code*** } }
__________________
best regards ****************************** press LIKE if this message was helpful |
|
Tags |
angular velocity |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Velocity Sampling in parallel simulation | Torii_Nagi | Fluent UDF and Scheme Programming | 1 | July 20, 2020 02:29 |
kindly help me .. i have and error at line number 147.. | m zubair | Fluent UDF and Scheme Programming | 0 | February 10, 2019 12:25 |
UDF comilation error. urgent help please | m zubair | Fluent UDF and Scheme Programming | 4 | February 10, 2019 12:19 |
Velocity monitoring in Star-CCM+ after the simulation conducted | aroma | STAR-CCM+ | 3 | January 4, 2016 17:42 |
SixDoFRigidBodyMotion under OF2.3 ( self oscillating cylinder) | Scabbard | OpenFOAM Running, Solving & CFD | 1 | July 22, 2014 05:50 |