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

How to get summation of one variable at x directio

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 19, 2003, 22:18
Default How to get summation of one variable at x directio
  #1
zhou1
Guest
 
Posts: n/a
I simulate a 2-D fluid flow in a rectangle channel. I need to get the summation of one transport variable along x-direction at every y coordinate. How can I get it using UDF in FLUENT or other methods? Thanks.
  Reply With Quote

Old   October 20, 2003, 13:01
Default Re: How to get summation of one variable at x dire
  #2
ap
Guest
 
Posts: n/a
I'm not sure if I understood your problem.

If you just need to integrate a variable along x-direction at a fixed y during post-processing, you have to create a line along x-direction, at the y value you want. Then integrate the flow variable un that line, using the Surface Integral tool.

Hi

ap
  Reply With Quote

Old   October 20, 2003, 15:29
Default Re: How to get summation of one variable at x dire
  #3
zhou1
Guest
 
Posts: n/a
Yes, i want to integrate one variable along x-direction. I know your method works. However, i need to integrate it at every fixed y value and use this intergration in new iteration. For example, y=0 to 1 and step size is 0.0001. If i use line-creation, it will cost too much lines. So, is there any others method to get this intergration? Thanks.
  Reply With Quote

Old   October 21, 2003, 11:17
Default Re: How to get summation of one variable at x dire
  #4
ap
Guest
 
Posts: n/a
You should be able to do that using geometry macros to retrieve positions and then integrate your variable using an algorithm of your choice, but I've neved done it.

This, however requires your grid to be as fine in the y direction as the step you want to use for your y variable.

Maybe there are better and easier methods.

Hi

ap
  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
Additional Variable tav98f CFX 3 April 28, 2011 13:33
emag beta feature: charge density charlotte CFX 4 March 22, 2011 10:14
error in COMSOL:'ERROR:6164 Duplicate Variable' bhushas COMSOL 1 May 30, 2008 05:35
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 14:47.