|
[Sponsors] |
October 30, 2018, 21:45 |
Cylinder UDF, oscillate about an origin
|
#1 |
New Member
Kimster
Join Date: Oct 2018
Posts: 9
Rep Power: 7 |
Hi,
I have this UDF where I am trying to move a cylinder at a certain frequency. But the cylinder moves to the right and comes back to its original position. I want it to oscillate about its origin. I want it to move right and left from its origin position. What do I change in this UDF. Please help. /* Moving Grid problem - CG movement of a cylinder */ #include "udf.h" static real velx = 0.0; DEFINE_CG_MOTION(cylinder, dt, vel, omega, time, dtime) { NV_S(vel, =, 0.0); NV_S(omega, =, 0.0); velx = 0.005 * sin(3.1415927 * time / 5.); vel[0] = velx; } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF of natural convection in 3D cylinder | a_Sarlak | Fluent UDF and Scheme Programming | 0 | November 7, 2015 08:19 |
WILLING TO PAY/ FREELANCER REQUIRED / small UDF coding force loads over body / 6DOF | acasas | CFD Freelancers | 1 | January 23, 2015 07:26 |
Accelarating of a cylinder UDF | Ashutosh | FLUENT | 4 | August 3, 2010 06:52 |
[blockMesh] Specifying boundary faces failes in blockMesh | blaise | OpenFOAM Meshing & Mesh Conversion | 0 | May 10, 2010 03:56 |
moving cylinder and UDF | Achilleas | FLUENT | 1 | June 1, 2005 14:44 |