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 Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 25, 2011, 11: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, 15: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


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 11, 2007 23:48
SIMPLE and energy equation convergence Fabio Main CFD Forum 0 June 1, 2007 06:06
Open Boundary Condition for Diffusion Equation wen long Main CFD Forum 0 January 21, 2007 10:43
SIMPLE EQUATION YOUSEF EL HASSADI Main CFD Forum 1 July 14, 2003 20:14
Diffusion Equation izardy amiruddin Main CFD Forum 2 July 4, 2002 08:14


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