# How to write this equation?

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

 September 16, 2014, 11:00 How to write this equation? #1 New Member   Gennaro Join Date: May 2014 Posts: 23 Rep Power: 4 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

 September 16, 2014, 13:05 #2 New Member   mohsen cheraghi Join Date: Jun 2010 Location: Switzerland Posts: 27 Rep Power: 8 Hi, divergence of x is written like: dev(x) cheers

 Tags chtmultiregionfoam, heat equation

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post lzw2003 Main CFD Forum 8 April 8, 2012 22:13 cuteapathy CFX 14 March 20, 2012 07:45 Ardalan Main CFD Forum 6 April 17, 2010 23:40 Rafal Main CFD Forum 4 November 29, 2006 10:27 Miguel Baritto CFX 4 August 31, 2006 12:02

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