CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Cylinder UDF, oscillate about an origin

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   October 30, 2018, 21:45
Default Cylinder UDF, oscillate about an origin
  #1
New Member
 
Kimster
Join Date: Oct 2018
Posts: 9
Rep Power: 7
iceman53y is on a distinguished road
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;
}
iceman53y is offline   Reply With Quote

 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 18:18.