|
[Sponsors] |
How to calculate the second-order divergence of a user-defined-scalar |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 13, 2012, 03:13 |
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: 17 |
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. |
|
December 16, 2012, 01:20 |
|
#2 |
Senior Member
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 15 |
You can store divergence of c into another UDS, then divergence of this new UDS. So easy.
|
|
December 16, 2012, 02:23 |
|
#3 |
New Member
Yang Xiaoguang
Join Date: Apr 2009
Posts: 24
Rep Power: 17 |
Thank u very much Saeed!
|
|
|
|
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 13: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 11:21 |
user defined scalar | saghir | FLUENT | 1 | December 4, 2006 06:25 |