Inlet velocity profile for turbulent pipe flow using swak4Foam
Hi, I wanted a fully developed inlet velocity profile for my 3D-case and I decided to implement it using swak4Foam since I couldn't figure out how to do it with native OpenFOAM tools. So, I thought I'd share my solution here since it took me a while to figure it out.
Please note that in my case the inlet pipe centerline run along the y-axis, but it should by easy enough to modify for other cases too. Turbulent velocity profile is calculated using the power law formulation. Code:
pipe_inlet PS: swak4Foam development version compiles for OpenFOAM-2.3.x and at least groovyBC is working fine |
Hi Zor,
Do we have to make any other change in any other folder or the code which you have given is good enough to implement the fully-developed boundary condition? Thanks, Rohit:) |
You need to install swak4Foam according to instructions.
Files that need to be mofidied are 0/U and system/controlDict (add swak4Foam libs, which is shown in the installation instructions). |
Hi,
hope someone helps me as this thread is quite old... Anyway, I set the inlet profile for my pipe simulation according to the upper BC for inlet. When I set the power law coefficient as 1/n<1, simpleFoam crashes (floating point exception). For values 1/n>= 1, simpleFoam works fine, but my inlet profile isn't real. this is my error: Code:
Time = 1 this is my check Mesh -allGeometry -allTopolgy log Code:
............ Thank you very much. |
Hi student666,
I have just encountered the same error. Have you made any progress on this since your last post? Regards, Mitch |
Quote:
|
All times are GMT -4. The time now is 23:14. |