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

Implicit momentum source based on the wall shear stress

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 7, 2018, 10:12
Default Implicit momentum source based on the wall shear stress
  #1
New Member
 
eco
Join Date: Jan 2017
Posts: 5
Rep Power: 9
magnushaese is on a distinguished road
Hello,
i want to achieve a momentum source term that is adjusted, based on the wall shear stress \tau_{\tau}. The reference case is a 1-D flow of a turbulent channel with viscous walls and periodic inlet/outlet. The flow is driven by the pressure gradient and symmetric. The governing equation is
0 = -\frac{1}{\rho}\frac{\partial P}{\partial x} + \frac{\partial}{\partial y}\left( (\nu + \nu_t) \frac{\partial U}{\partial y}\right),
where -\frac{1}{\rho}\frac{\partial P}{\partial x}
is to be assed in order to obain a fixed Re_{\tau} = u_{\tau} h/\nu.
I want to get the solution in an iterative manner by starting with the approximation of (Grundestam, Olof, Stefan Wallin, and Arne V. Johansson. "Direct numerical simulations of rotating turbulent channel flow." Journal of Fluid Mechanics 598 (2008): 177-199.), which relates the pressure gradient to the wallshearvelocity u_{\tau}=\sqrt{\tau_{\tau}} with
-\frac{1}{\rho}\frac{\partial P}{\partial x} = \frac{u_{\tau}^2}{h}.
NOTE again: this is only an approximation.
Searching for available code reveals the fvOptions framework with the pressureGradientExplicitSource function. Moreover, the postprocessing tool of wallShearStress helps for the calculation of wall shear stresses. I have merged them into a working new momentumSource.
The idea is to adjust the delta in pressure gradient, need to achieve a net pressure gradient to give prescribed \tau_{\tau}, which follows the idea of pressureGradientExplicitSource.C. Here, i apply
\Delta \left(-\frac{1}{\rho}\frac{\partial P}{\partial x} \right) = \text{relax} * \left( \frac{u_{\tau eff}^2}{h}-\frac{u_{\tau 0}^2}{h} \right).
Here, u_{\tau eff} is the numerical wall shear velociy, u_{\tau 0} a presribed value, relax a relaxation factor.

SOLVING:
Anyhow, by using u_{\tau 0}^2/h as initial value for the pressure gradient, the solution does not converge. The "hope" of \Delta \left(-\frac{1}{\rho}\frac{\partial P}{\partial x} \right) converging to 0 is not met, instead, the pressure gradient correction rises continuously, even when relaxating it with very low values.
The calculation of wallShearStress does work correctly, i have verified this with the wallShearStress postprocessing utility.

I would appreciate comments on this approach and other ideas on adjusting the momentumSource.
magnushaese is offline   Reply With Quote

Old   June 27, 2018, 05:51
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
what kind of solver are you using. Maybe if you post the equation i can try to help you.
mAlletto is offline   Reply With Quote

Old   June 27, 2018, 06:03
Default
  #3
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
maybe you could try:



The following code was used to generate the image you clicked on:



\Delta \left(-\frac{1}{\rho}\frac{\partial P}{\partial x} \right) = \frac{u_{\tau 0}^2}{h} + \text{relax} * \left(  \frac{u_{\tau 0}^2}{h} - \frac{u_{\tau eff}^2}{h} \right).


in this way if the actual wall shear stress is to height the pressure gradient is reduced and if it is too low it is increased. Too heigh pressure gradient means in may understanding too heigh mass flow.



mAlletto is offline   Reply With Quote

Reply

Tags
channel flow, momentum source, wallshearstress


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 18:18
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
What is the detail definition of wall shear stress zjm FLUENT 0 January 2, 2002 08:43


All times are GMT -4. The time now is 13:52.