CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

How to calculate the second-order divergence of a user-defined-scalar

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

Like Tree2Likes
  • 1 Post By legendyxg
  • 1 Post By msaeedsadeghi

Reply
 
LinkBack Thread Tools Display Modes
Old   December 13, 2012, 03:13
Default How to calculate the second-order divergence of a user-defined-scalar
  #1
New Member
 
Yang Xiaoguang
Join Date: Apr 2009
Posts: 24
Rep Power: 8
legendyxg is on a distinguished road
Hi everyone. In my program, I need to add the following term into the source term of the UDS, i.e. source = ▽(D▽c), where c is a UDS in my case. Could anyone tell me how to write this term in UDF? I know we can get the gradient of a UDS through C_UDSI_G(c,t,i), but how to get the divergence of the gradient of a UDS?

Thanks very much.
weloveUDF likes this.
legendyxg is offline   Reply With Quote

Old   December 16, 2012, 01:20
Default
  #2
Senior Member
 
SSL
Join Date: Oct 2012
Posts: 227
Rep Power: 5
msaeedsadeghi is on a distinguished road
You can store divergence of c into another UDS, then divergence of this new UDS. So easy.
weloveUDF likes this.
msaeedsadeghi is offline   Reply With Quote

Old   December 16, 2012, 02:23
Default
  #3
New Member
 
Yang Xiaoguang
Join Date: Apr 2009
Posts: 24
Rep Power: 8
legendyxg is on a distinguished road
Thank u very much Saeed!
legendyxg is offline   Reply With Quote

Reply

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
dieselFoam problem!! trying to introduce a new heat transfer model vivek070176 OpenFOAM Programming & Development 10 December 24, 2014 00:48
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21
Is it possible to use divergence in the source term of an scalar transport equation? jannnesss CFX 0 January 8, 2010 20:53
solving passive scalar by user function in AVLFIRE huyp Main CFD Forum 0 September 4, 2008 10:21
user defined scalar saghir FLUENT 1 December 4, 2006 06:25


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