CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] How to calculate flow depth to obtain the hydrostatic pressure in a river?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 1, 2024, 06:19
Default How to calculate flow depth to obtain the hydrostatic pressure in a river?
  #1
New Member
 
Join Date: Feb 2024
Posts: 2
Rep Power: 0
clarinha is on a distinguished road
Hi all,


I'm simulating a river with detailed bed topography in OpenFOAM, using interFoam on a 3D domain. My goal is to obtain the dynamic pressure at the bed.

In ParaView, my rationale is to calculate the vertical distance between the free surface and the bed to obtain the flow depth at each point. Then, I'd calculate the hydrostatic pressure as water density*gravity*flow depth (=rho*g*h). Then, I'd make p minus hydrostatic pressure at the bed to obtain the dynamic pressure at the bed.

As far as I tried using the filters in ParaView, I'm not being successful at obtaining the flow depth! I tried using 'contour' to extract the free surface, setting alpha.water = 0.5. Then I used 'calculator' twice, one to extract coordsZ from the free surface and another to extract coordsZ from the bed. Then I grouped the two calculators using 'group datasets'. Then I used 'calculator' to subtract coordsZ from the two datasets. However, I get the following error message: "Warning: In vtkSMPVRepresentationProxy.cxx, line 288
vtkSMPVRepresentationProxy (000002578E2D7400): Could not determine array range."

Another possible option is to clip the water using alpha.water = 0.5, which would give me coordsZ from the bed to the free surface. But two issues arise: one, the clipped volume does not have 'p' if I use clip by point data, and two, I don't know how to proceed to subtract the elevation between the free surface and the bed.


Any help is appreciated!
Cheers
clarinha is offline   Reply With Quote

Reply

Tags
dynamic pressure, flow depth, free surface, hydrostatic pressure, river


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
Calculate Total Pressure and Temperature compressible flow shock77 OpenFOAM Running, Solving & CFD 2 August 29, 2024 20:14
Intuition for why flow follows convex surfaces lopp Main CFD Forum 47 February 1, 2022 14:14
static vs. total pressure auf dem feld FLUENT 17 February 26, 2016 14:04
Calculate forces without hydrostatic pressure geir_oye FLUENT 4 November 12, 2009 10:12
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 06:13


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