CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Flow around cylinder, forcing term

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 14, 2012, 08:07
Default Flow around cylinder, forcing term
  #1
New Member
 
Join Date: Feb 2012
Posts: 6
Rep Power: 4
krsp is on a distinguished road
Hi everyone,

I am a new FOAM user and I am trying to model an oscillating (sinusoidal) flow around a free circular cylinder in 2D. I have some trouble, trying to add a forcing term to the UEqn. (I use a pimpleFoam solver).

The UEqn looks like this:

================================================== ======
dimensionedVector forcing(
"forcing",
dimensionSet(0,1,-2,0,0,0,0),
(Um1*omega*Foam::cos(omega*runTime.value()) + slope)*forceDir
);

fvVectorMatrix UEqn
(
fvm::ddt(U)
+ fvm::div(phi, U)
+ turbulence->divDevReff(U)
- forcing
);
if (ocorr != nOuterCorr-1)
{
UEqn.relax();
}
if (momentumPredictor)
{
solve(UEqn == -fvc::grad(p)); // forcing is included in UEqn
}
================================================== ======

It all runs fine with no errors, however the velcity accelerates. This means that if Um1 is eg. 0.2 m/s, then in the beginning Ux oscillates between (-0.2 ; 0.2). But after some time it increases/decreases to oscillate between eg. (0 ; 0.4), (0.2 ;0.6), (0.4 ; 0.8) etc.
I'm thinking, that a pressure gradient is developing, but I don't know why..

I have zeroGradient conditions for both velocity and pressure at inlet+outlet. The top and bottom boundaries are both slip.

Does anyone have an idea of, what I have done wrong? (I use OpenFoam 1.6-ext).

Thanks in advance

Last edited by krsp; June 15, 2012 at 04:33.
krsp is offline   Reply With Quote

Reply

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
benchmark: flow over a circular cylinder goodegg Main CFD Forum 12 January 22, 2013 11:47
flow around a cylinder pXYZ Main CFD Forum 14 July 25, 2011 10:05
Flow induced vibration of a mobile cylinder Hooman Main CFD Forum 0 December 31, 2010 08:48
pressure gradient term in low speed flow Atit Koonsrisuk Main CFD Forum 2 January 10, 2002 10:52
Inviscid Drag at subsonic, subcritical Mach # Axel Rohde Main CFD Forum 1 November 19, 2001 12:19


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