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

How to write this equation?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 16, 2014, 12:00
Default How to write this equation?
  #1
New Member
 
Gennaro
Join Date: May 2014
Posts: 23
Rep Power: 12
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, 14:05
Default
  #2
New Member
 
mohsen cheraghi
Join Date: Jun 2010
Location: Switzerland
Posts: 28
Rep Power: 16
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


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


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