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

How to write this equation?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 16, 2014, 11:00
Default How to write this equation?
  #1
New Member
 
Gennaro
Join Date: May 2014
Posts: 23
Rep Power: 4
Gennaro is on a distinguished road
Dear all,

I'm solving, in my customized solver based on CHTMutliregionFoam, the following equation:
Code:
d/dt = alphaEff * laplacian (T)
which is a classic heat transfer equation, where alphaEff (Effective thermal diffusivity) is a scalar field. I'm solving it in the following way:
Code:
    fvScalarMatrix EEqn
    (
   fvm::ddt (T)
-  fvm::laplacian(alphaEff, T)
    );
Now I would like to solve
Code:
rho*Cp*d/dt = divergence (Keff * gradient(T))
where rho is the density, Cp is the specific heat and Keff is the effective thermal conductivity, i.e they are all scalar fields.

How can I write it in OpenFOAM?

Thanks in advance

Kind regards

Gennaro
Gennaro is offline   Reply With Quote

Old   September 16, 2014, 13:05
Default
  #2
New Member
 
mohsen cheraghi
Join Date: Jun 2010
Location: Switzerland
Posts: 27
Rep Power: 8
mohsen cheraghi is on a distinguished road
Hi,

divergence of x is written like: dev(x)

cheers
mohsen cheraghi is offline   Reply With Quote

Reply

Tags
chtmultiregionfoam, heat equation

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
About theory:how to get the pressure equation when solving u-p simultaneously? lzw2003 Main CFD Forum 8 April 8, 2012 22:13
error message cuteapathy CFX 14 March 20, 2012 07:45
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 6 April 17, 2010 23:40
continuity equation Rafal Main CFD Forum 4 November 29, 2006 10:27
Two-Phase Buoyant Flow Issue Miguel Baritto CFX 4 August 31, 2006 12:02


All times are GMT -4. The time now is 22:32.