|
[Sponsors] |
August 17, 2007, 07:25 |
Gradient of a User defined Variable
|
#1 |
Guest
Posts: n/a
|
Hi,
I am using CFX 10.0 I need to compute the gradient of a user defined variable with respect to time, say dV_by_dt (where V is a user defined variable) I now need to use this in the source term of another user defined variable. How do I do this? The example in the manual only shows how to use spatial gradient (with respect to x,y,z) Thanks, Ramadas. |
|
August 19, 2007, 23:17 |
Re: Gradient of a User defined Variable
|
#2 |
Guest
Posts: n/a
|
I am calculating the Gradient of Density in Tecplot360. But I did not know the Unit of Gradient of Density.
|
|
August 21, 2007, 10:19 |
Re: Gradient of a User defined Variable
|
#3 |
Guest
Posts: n/a
|
That's fairly difficult to do. You would need to use a Fortran routine to get the value of your variable at the current timestep, then store that value in memory (in the MMS, see doc). You would manually calculate the gradient using the value at the current timestep and the value stored in memory from the previous timestep. Unless you're experienced at using Fortran and the MMS in CFX then you would probably need the assistance of a CFX consulting engineer.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to get the gradient of a user defined scalar? | legendyxg | Fluent UDF and Scheme Programming | 0 | April 27, 2009 11:13 |
User defined function | hari | FLUENT | 0 | October 9, 2007 04:24 |
Source term for user defined scalars | Mech.eng. | Siemens | 0 | March 16, 2006 07:15 |
Env variable not set | gruber2 | OpenFOAM Installation | 5 | December 30, 2005 05:27 |
Usage of user defined functions | Gowrish | FLUENT | 1 | October 26, 2005 08:44 |