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

Gradient of a User defined Variable

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 17, 2007, 06: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, 22: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, 09: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

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
How to get the gradient of a user defined scalar? legendyxg Fluent UDF and Scheme Programming 0 April 27, 2009 10:13
User defined function hari FLUENT 0 October 9, 2007 03:24
Source term for user defined scalars Mech.eng. CD-adapco 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 07:44


All times are GMT -4. The time now is 02:48.