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

1D burgers equation - first order derivative

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 14, 2012, 01:13
Default 1D burgers equation - first order derivative
  #1
Senior Member
 
Join Date: Nov 2009
Location: Michigan
Posts: 135
Rep Power: 7
doubtsincfd is on a distinguished road
How can I implement the first order derivative in OF? For eg 1D burger's equation:

du/dt+u du/dx = nu d2u/dx2
doubtsincfd is offline   Reply With Quote

Old   March 14, 2012, 03:42
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 17
akidess will become famous soon enough
Does this work?

Code:
fvm::ddt(U)+U*fvm::grad(U)=fvm::laplacian(nu,U)
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology
akidess is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
2nd order upwind vs 2nd order upwind!!! Far Main CFD Forum 7 March 14, 2013 13:29
Exact solution of Burgers equation mcaro Main CFD Forum 3 January 25, 2011 07:46
Constant velocity of the material Sas CFX 15 July 13, 2010 08:56
exact solution of burger's equation sajar Main CFD Forum 9 March 4, 2004 05:55
Diffusion Equation izardy amiruddin Main CFD Forum 2 July 4, 2002 08:14


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