|
[Sponsors] |
February 7, 2018, 00:06 |
Second Partial Derivative Source term in OF
|
#1 |
Member
Anirudh Kulkarni
Join Date: May 2016
Posts: 62
Rep Power: 10 |
Hello OFers,
I am trying to add a source term in the energy equation (see image) for simulating a lid driven cavity. This involves second partial derivative of Temperature. For this, I am doing something like this: Code:
volVectorField gradT = fvc::grad(T); volScalarField Ty = gradT.component(1); // T_y volVectorField gradT2 = fvc::grad(Ty); // (T_xy, T_yy, T_zy) volScalarField Tyy = gradT2.component(1); // T_yy |
|
February 11, 2018, 14:58 |
|
#2 | |
Senior Member
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 16 |
Quote:
|
||
Tags |
openfoam 2.1, second partial derivative, source terms |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
momentum source term | zwdi | FLUENT | 14 | June 27, 2017 16:40 |
Trouble compiling utilities using source-built OpenFOAM | Artur | OpenFOAM Programming & Development | 14 | October 29, 2013 11:59 |
[swak4Foam] funkySetFields compilation error | tayo | OpenFOAM Community Contributions | 39 | December 3, 2012 06:18 |
pisoFoam compiling error with OF 1.7.1 on MAC OSX | Greg Givogue | OpenFOAM Programming & Development | 3 | March 4, 2011 18:18 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 02:24 |