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

Second Partial Derivative Source term in OF

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

Like Tree1Likes
  • 1 Post By Tempest

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 7, 2018, 00:06
Default Second Partial Derivative Source term in OF
  #1
Member
 
Anirudh Kulkarni
Join Date: May 2016
Posts: 56
Rep Power: 6
Tempest is on a distinguished road
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
Is this correct? Or what can be the correct way to do it?
Attached Images
File Type: png Screenshot from 2018-02-07 09-34-13.png (7.7 KB, 3 views)
Kummi likes this.
Tempest is offline   Reply With Quote

Old   February 11, 2018, 14:58
Default
  #2
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 313
Rep Power: 12
Santiago is on a distinguished road
Quote:
Originally Posted by Tempest View Post
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
Is this correct? Or what can be the correct way to do it?
Isnt that a laplacian? OF implements a laplacian object in the fvm/fvc namespace
Santiago is offline   Reply With Quote

Reply

Tags
openfoam 2.1, second partial derivative, source terms

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


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


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