CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Advice on the numerical solution of the 1D Navier-Stokes equations

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 4, 2016, 15:30
Default Advice on the numerical solution of the 1D Navier-Stokes equations
  #1
New Member
 
Daniel Potter
Join Date: May 2016
Posts: 1
Rep Power: 0
Deiniol is on a distinguished road
Hi all, the last few days I have been reading up on numerical methods, I was hoping to write a MATLAB code to solve the 1D Navier-Stokes equations for a uniform rectangular channel of depth h and width b:

\frac{\partial\hat{u}}{\partial t}-\hat{u}\frac{\partial\hat{u}}{\partial x}=-g\frac{\partial\eta}{\partial x}-\frac{1}{h+\eta}c_f\hat{u}|\hat{u}|

(momentum) and:

\frac{\partial\eta}{\partial t}+h\frac{\partial\hat{u}}{\partial x}+\frac{\partial(\eta\hat{u})}{\partial x} = 0

(continuity). where \hat{u} is the cross-sectionally averaged flow velocity and \eta is the water surface elevation. The only forcing I am interested in is that of the tide.

I would appreciate any pointers on how two go about solving these equations, from what I have read so far I am thinking of using the finite difference method, on a staggered grid, but with the coupling and the non-linear terms I am finding it tough going. If anyone would be able to point me in the right direction for any code or worked examples for analogous cases I would be very grateful, or even a good book with worked examples and code (MATLAB/FORTRAN/python) for CFD in general would be helpful.

Thanks in advance and I hope this is the correct forum for this post.
Deiniol is offline   Reply With Quote

Old   May 4, 2016, 15:44
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,772
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Deiniol View Post
Hi all, the last few days I have been reading up on numerical methods, I was hoping to write a MATLAB code to solve the 1D Navier-Stokes equations for a uniform rectangular channel of depth h and width b:

\frac{\partial\hat{u}}{\partial t}-\hat{u}\frac{\partial\hat{u}}{\partial x}=-g\frac{\partial\eta}{\partial x}-\frac{1}{h+\eta}c_f\hat{u}|\hat{u}|

(momentum) and:

\frac{\partial\eta}{\partial t}+h\frac{\partial\hat{u}}{\partial x}+\frac{\partial(\eta\hat{u})}{\partial x} = 0

(continuity). where \hat{u} is the cross-sectionally averaged flow velocity and \eta is the water surface elevation. The only forcing I am interested in is that of the tide.

I would appreciate any pointers on how two go about solving these equations, from what I have read so far I am thinking of using the finite difference method, on a staggered grid, but with the coupling and the non-linear terms I am finding it tough going. If anyone would be able to point me in the right direction for any code or worked examples for analogous cases I would be very grateful, or even a good book with worked examples and code (MATLAB/FORTRAN/python) for CFD in general would be helpful.

Thanks in advance and I hope this is the correct forum for this post.

You are not solving the NS equations.... however, for your problem you can see the book of Leveque and the problems here
http://www.clawpack.org/galleries.html
FMDenaro 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
Convergence Centurion2011 FLUENT 48 June 14, 2022 23:29
Exact solution - Euler equations jakubstary Main CFD Forum 9 May 6, 2013 18:14
Navier Stokes Equations on Grad School Statement of Purpose pyroknife Main CFD Forum 0 January 22, 2013 14:15
Naca 0012 (compressible and inviscid) flow convergence problem bipulsaha FLUENT 1 July 6, 2011 07:51
Navier stokes and the standard Galerkin method micheldup Main CFD Forum 0 March 1, 2011 09:24


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