- **OpenFOAM Running, Solving & CFD**
(*http://www.cfd-online.com/Forums/openfoam-solving/*)

- - **How To simulate a pulsating flow in OpenFOAM**
(*http://www.cfd-online.com/Forums/openfoam-solving/58655-how-simulate-pulsating-flow-openfoam.html*)

Hi everyone,
I am trying toHi 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 |

Hi !
Take a look at the oscHi !
Take a look at the oscillatingFixedValueFvPatchField, I think it is exactly what you need. Mathieu |

Hi Feng
As a start, assume 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 |

Hi Mathieu,
Thanks for yourHi Mathieu,
Thanks for your help, I really appreciate it. oscillatingFixedValueFvPatchField is working fine with me. Kind regards feng |

Hi Niels,
I really appreciaHi Niels,
I really appreciate your help. I will try more complex functions with your method. Kind regards feng |

Hi,
I also work on pulsatilHi,
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 |

Sorry,
I scanned the forumSorry,
I scanned the forum ... and not the tutorial... ;-) Tobias |

All times are GMT -4. The time now is 02:34. |