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

Questions on shallowWaterFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By loic_d
  • 3 Post By randolph

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2013, 05:25
Default Questions on shallowWaterFoam
  #1
Senior Member
 
Join Date: Jul 2011
Posts: 120
Rep Power: 14
haze_1986 is on a distinguished road
Hi all, just would like to verify certain parts of the code:
http://www.tfd.chalmers.se/~hani/kur...vistReport.pdf

From the tutorial it was mentioned that h is the mean surface height and h0 is the deviation from the mean surface height? Should it be the other way round? In the code h is used in most of the momentum equations and theoretically this should be the mean plus the deviation.

Code:
fvVectorMatrix hUEqn
(
fvm::ddt(hU)
+ fvm::div(phiv, hU)
);
On the other hand, in the mometum predictor, h+h0 is used in the code. Theoretically, we need to use the deviation from the mean inside the grad, which based on the tutorial definition should be h0.
Code:
solve(hUEqn + (F ^ hU) == -magg*h*fvc::grad(h + h0));
Is there something I am missing here?
haze_1986 is offline   Reply With Quote

Old   May 6, 2015, 15:13
Default
  #2
New Member
 
Loïc Dagnas
Join Date: Jan 2015
Location: France
Posts: 9
Rep Power: 11
loic_d is on a distinguished road
Hi all,
I faced this problem last month.
This tutorial contains a lot of errors, h is the water height and h0 the bed height.
randolph likes this.
loic_d is offline   Reply With Quote

Old   November 1, 2019, 11:24
Default
  #3
New Member
 
Join Date: Oct 2019
Posts: 6
Rep Power: 6
RoderickZ is on a distinguished road
Quote:
Originally Posted by loic_d View Post
Hi all,
I faced this problem last month.
This tutorial contains a lot of errors, h is the water height and h0 the bed height.
With water height (h) you refer to the elevation of the free surface relative to the geoid and h_0 is the bathymetry ?
or h the height from topography to free surface?

(https://users.oden.utexas.edu/~arbog.../dawson_v2.pdf)
RoderickZ is offline   Reply With Quote

Old   November 1, 2019, 12:46
Default
  #4
Senior Member
 
Reviewer #2
Join Date: Jul 2015
Location: Knoxville, TN
Posts: 141
Rep Power: 10
randolph is on a distinguished road
In OpenFOAM, your coordinate origin should be defined somewhere below the bottom floor. h0 is your bottom elevation (vertical distance from the bottom to your coordinate origin). h is your water column depth (from your water surface to the top of your bottom floor). And the htotal is a dummy; as defined as htotal = h0+h, which is your total water surface elevation (water surface to your origin).

Further information can be found at: A high-order arbitrarily unstructured finite-volume model of the global atmosphere: Tests solving the shallow-water equations.


Thanks,
Rdf
ashvinc9, Aliosat and RoderickZ like this.
randolph is offline   Reply With Quote

Old   May 4, 2020, 13:54
Default shallowFoam Example
  #5
New Member
 
TomS's Avatar
 
Join Date: Oct 2010
Posts: 21
Rep Power: 15
TomS is on a distinguished road
You will find an example of a shallowFoam application and details of verification and set-up here:

https://www.mts-cfd.com/ballater

Tom
TomS is offline   Reply With Quote

Reply


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
New User, Basic Questions (Yacht Design) nyskiffie STAR-CCM+ 0 March 13, 2013 16:01
possible interview questions atturh Main CFD Forum 1 February 21, 2012 08:53
NACA0012 Validation Case Questions ozzythewise Main CFD Forum 3 August 3, 2010 14:39
novice star ccm+ questions apc3161 STAR-CCM+ 2 August 25, 2009 10:15
turbulence modeling questions llowen Main CFD Forum 3 September 11, 1998 04:24


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