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

Gradient of a variable

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 26, 2005, 05:51
Default Gradient of a variable
  #1
P
Guest
 
Posts: n/a
I have variable let us say A which is not solved in the fluent but it is kind of related to UDS C which is solved now I would. I would like to compuet gradients of this variable A over the domain. How can I dod so. I know getting the gradients a variable which is solved for is easy but how to obtain the gradient of A.

P
  Reply With Quote

Old   October 26, 2005, 06:08
Default Re: Gradient of a variable
  #2
RoM
Guest
 
Posts: n/a
You can abuse an UDS as memory if you set the diffusivity to (almost) zero and adjust the flux function so it will return zero. The you can calculate A, store it in the scalar and retrieve the gradient from the scalar. See chapter 5.6.3 of udf guide for an example.

RoM
  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
emag beta feature: charge density charlotte CFX 4 March 22, 2011 10:14
error in COMSOL:'ERROR:6164 Duplicate Variable' bhushas Main CFD Forum 1 May 30, 2008 04:35
Gradient of a User defined Variable Ramadas CFX 2 August 21, 2007 09:19
Env variable not set gruber2 OpenFOAM Installation 5 December 30, 2005 05:27
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 21:09


All times are GMT -4. The time now is 03:30.