CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Gradient of a User defined Variable

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 17, 2007, 07:25
Default Gradient of a User defined Variable
  #1
Ramadas
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.
  Reply With Quote

Old   August 19, 2007, 23:17
Default Re: Gradient of a User defined Variable
  #2
Eric
Guest
 
Posts: n/a
I am calculating the Gradient of Density in Tecplot360. But I did not know the Unit of Gradient of Density.

  Reply With Quote

Old   August 21, 2007, 10:19
Default Re: Gradient of a User defined Variable
  #3
Stumpy
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.
  Reply With Quote

Reply


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
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


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