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

How to write an simple diffusion equation.

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 25, 2011, 12:47
Default How to write an simple diffusion equation.
  #1
New Member
 
Jimmy Hill
Join Date: Jan 2011
Posts: 1
Rep Power: 0
Jimmy-Hill is on a distinguished road
Hi Foamers,


I am new to OpenFOAM and I need to write a diffusion equation , I have read the examples and I can't identify my case

d[ nu (dT/dx) ] /dx + d[ nu (dT/dy) ] /dy + d[ nu (dT/dz) ] /dz = 0 ;

nu and T are scalar Fields , nu can be a constant to

Thanks for your help


Jimmy
Jimmy-Hill is offline   Reply With Quote

Old   January 25, 2011, 16:06
Default
  #2
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 15
stevenvanharen is on a distinguished road
This is written as:

Code:
fvm::laplacian(nu,T)

Take a look at laplacianFoam, this solver solves the diffusion equation.
stevenvanharen 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
Diffusion equation solved using Parallel Computing Sachin Paramane Main CFD Forum 0 June 12, 2007 00:48
SIMPLE and energy equation convergence Fabio Main CFD Forum 0 June 1, 2007 07:06
Open Boundary Condition for Diffusion Equation wen long Main CFD Forum 0 January 21, 2007 11:43
SIMPLE EQUATION YOUSEF EL HASSADI Main CFD Forum 1 July 14, 2003 21:14
Diffusion Equation izardy amiruddin Main CFD Forum 2 July 4, 2002 09:14


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