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

Computation of Derivatives

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2000, 07:24
Default Computation of Derivatives
  #1
Andrea
Guest
 
Posts: n/a
Hello

I have obtained a solution using Fluent V5, but now I am trying to post-process my results. I want to compute and store the derivative of a variable such as total pressure (i.e. for a variable that is derived from the variables actually solved for).

I can see that in the "Adaptation" section, there is an option that computes the derivatives of such a function, but it is not possible to store the result anywhere (I want to combine it with other things).

It is important for me that Fluent does the computation, using it's own differencing. I know that I can take the data outside of Fluent, and write a small program to compute these things myself, but I want to see what the results are using Fluent's differencing.

Does anyone have an idea about how I can get Fluent to compute the derivative of any derived varable, and allow me to store it inside Fluent?

Any help would be much appreciated.
  Reply With Quote

Old   June 15, 2000, 17:00
Default Re: Computation of Derivatives
  #2
Graham Goldin
Guest
 
Posts: n/a
One approach is to use a User Defined Function. Allocate 4 User Defined Scalars and turn off their solution. Then, in an ADJUST function, set the first UDS to the function that you want (eg pressure)...

C_UDSI(c,t,0) = C_P(c,t);

Then, copy the gradient of C_UDSI(c,t,0) into the other 3 UDSs as

C_UDSI(c,t,1) = C_UDSI_G(c,t,0)[0]; C_UDSI(c,t,2) = C_UDSI_G(c,t,0)[1]; C_UDSI(c,t,3) = C_UDSI_G(c,t,0)[2]; /* for 3D only */

Now you can plot the gradients.
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDM derivatives for - for EHD flow Sandilya Garimella FLUENT 7 September 9, 2013 03:17
problem in the CFX12.1 parallel computation BalanceChen ANSYS 2 July 7, 2011 10:26
Discussion on the computation of the multi-stage axial compressor BalanceChen CFX 5 January 5, 2011 02:23
How Star-cd v3.22 do parallelling computation? Williams Siemens 8 July 16, 2007 14:21
Cell face values computation un unstructured grids Sergio Rossi Main CFD Forum 2 May 28, 2006 10:04


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