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

1D burgers equation - first order derivative

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 14, 2012, 00:13
Default 1D burgers equation - first order derivative
  #1
Senior Member
 
Join Date: Nov 2009
Location: Michigan
Posts: 135
Rep Power: 16
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, 02:42
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
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.
akidess is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
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 12:29
Exact solution of Burgers equation mcaro Main CFD Forum 3 January 25, 2011 06: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 04:55
Diffusion Equation izardy amiruddin Main CFD Forum 2 July 4, 2002 08:14


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