|
[Sponsors] |
September 22, 2010, 10:07 |
rotating valve
|
#1 |
Member
andres
Join Date: Sep 2010
Posts: 44
Rep Power: 15 |
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? thanks 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); } |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 10:11 |
Valve Forces in CFdesign | Mike Clapp | Main CFD Forum | 3 | March 8, 2001 15:09 |