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

How To simulate a pulsating flow in OpenFOAM

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 15, 2008, 15:22
Default Hi everyone, I am trying to
  #1
Member
 
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 8
fw407 is on a distinguished road
Hi everyone,

I am trying to modify icoFoam so that it can simulate a pulsating flow in a straight flexible pipe. the flow velocity at the inlet is uniformly distributed but the velocity magnitude changs with time:

U = U_0 + U_A*sin(wt)

I have noticed the "timeVaryingUniformFixedValueFvPatchField " may be what I want, but it needs to read the data from a data file. Actually I prefer to implement it in the code somthing like:

U.boundaryField()[patchI] == U_0 + U_A * sin (wt)

and read the "w", "U_0" and "U_A" in a dictionary.

So far I haven't got an idea of how to do that, Could anyone give me some hints?

Kind regards

feng
fw407 is offline   Reply With Quote

Old   July 15, 2008, 16:12
Default Hi ! Take a look at the osc
  #2
Member
 
Mathieu Olivier
Join Date: Mar 2009
Location: Quebec City, Canada
Posts: 76
Rep Power: 8
mathieu is on a distinguished road
Hi !

Take a look at the oscillatingFixedValueFvPatchField, I think it is exactly what you need.

Mathieu
mathieu is offline   Reply With Quote

Old   July 15, 2008, 16:28
Default Hi Feng As a start, assume
  #3
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,594
Rep Power: 24
ngj will become famous soon enoughngj will become famous soon enough
Hi Feng

As a start, assume you know w, U_0 and U_A, then simply do this, which you have already done:

U.boundaryField()[patchI] == U_0 + U_A * sin (wt);

and add the line:

U.correctBoundaryConditions();

It should to the trick.

With respect to be reading from a dictionary, look for instance at

OpenFOAM/OpenFOAM-1.4.1/applications/solvers/DNSandLES/dnsFoam

and search for IOdictionary.

Have fun,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   July 16, 2008, 06:23
Default Hi Mathieu, Thanks for your
  #4
Member
 
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 8
fw407 is on a distinguished road
Hi Mathieu,

Thanks for your help, I really appreciate it. oscillatingFixedValueFvPatchField is working fine with me.

Kind regards

feng
fw407 is offline   Reply With Quote

Old   July 16, 2008, 06:27
Default Hi Niels, I really apprecia
  #5
Member
 
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 8
fw407 is on a distinguished road
Hi Niels,

I really appreciate your help. I will try more complex functions with your method.

Kind regards

feng
fw407 is offline   Reply With Quote

Old   August 13, 2008, 04:57
Default Hi, I also work on pulsatil
  #6
Member
 
Tobias Holzinger
Join Date: Mar 2009
Location: Munich, Germany
Posts: 46
Rep Power: 8
woody is on a distinguished road
Hi,

I also work on pulsatile flows. I am especially interested in heat transfer effects, that occur in turbulent problems containing flow reversal.

So far I tried to simulate my very long (l/D=120) channel with a constant wall temperature, pulsating velocity and oscillatory temperature BC at the inlet. I introduced a special turbulence Model (Wang & Zhang: "Numerical analysis of heat transfer in pulsating turbulent flow in a pipe", Heat and Mass Transfer, 2005) containing wallfunctions. As compressible fluids should be considered, the rhoTurbFoam solver seemed to be the best fitting choice.

When run my computations, the temperature cant follow the backflow conditions, and is increased non-physical.

Scanning the tutorials, I found some other remarks, that backflow causes instabilities and some suggestions, which are not commented to have been worked out or taken to be valid.

Is anybody out there who handled similar problems and has some information, hints etc.???

Thanks Tobias
__________________
Tobias Holzinger

Chair of Thermodynamics, TU München
woody is offline   Reply With Quote

Old   August 13, 2008, 05:08
Default Sorry, I scanned the forum
  #7
Member
 
Tobias Holzinger
Join Date: Mar 2009
Location: Munich, Germany
Posts: 46
Rep Power: 8
woody is on a distinguished road
Sorry,

I scanned the forum ... and not the tutorial...

;-)

Tobias
__________________
Tobias Holzinger

Chair of Thermodynamics, TU München
woody 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
What kind of computer is needed to simulate with OpenFoam anita OpenFOAM Running, Solving & CFD 8 February 21, 2008 12:25
UDF for pulsating flow Bing FLUENT 0 October 7, 2006 11:16
pulsating static pressure around zero at pipe flow David Kim FLUENT 0 May 16, 2006 13:47
Pulsating flow in Fluent Ryan FLUENT 0 December 9, 2005 00:32
pulsating flow Pete Main CFD Forum 2 December 9, 2003 12:39


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