CFD Online Logo CFD Online URL
Home > Forums > General Forums > Main CFD Forum

rotating valve

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   September 22, 2010, 09:07
Default rotating valve
Join Date: Sep 2010
Posts: 44
Rep Power: 9
cfdhydraulic is on a distinguished road
Hi friends,
I need some help, please.
I am trying to move a butterfly valve using UDF but even though I got a desired move, I canīt control when stop it.

the purpose is to open the valve and leave it opened and after 10 seconds, close de valve again.
My code makes the valve oscilate all the time without time control...
any idea to get it done?

butterfly move code

DEFINE_CG_MOTION(rotating_body, dt, vel, omega, time, dtime)
real ampl,disp,omg,count;

/* reset velocities */
NV_S (vel, =, 0.0);
NV_S (omega, =, 0.0);

/* motion */
ampl = 0.785423 ; /* amplitude of rotation in radians (0.5deg) *///rad = deg * Pi /180
omg = 516.0219; /* angular frequency (18.465Hz) */
disp = ampl * sin(omg * time); /* resultant displacement */

omega[2] = 0.785423*sin(time);

cfdhydraulic is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rotating Impeller Naith FloEFD, FloWorks & FloTHERM 22 November 5, 2012 09:53
question about governing equation in CFX using rotating/non rotating reference frame rystokes CFX 0 January 12, 2010 07:14
IcoDyMFoam how to define more than one rotating regions naoko_oyama OpenFOAM Running, Solving & CFD 0 November 14, 2008 09:25
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11
Valve Forces in CFdesign Mike Clapp Main CFD Forum 3 March 8, 2001 15:09

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