How to get summation of one variable at x directio
I simulate a 2D fluid flow in a rectangle channel. I need to get the summation of one transport variable along xdirection at every y coordinate. How can I get it using UDF in FLUENT or other methods? Thanks.

Re: How to get summation of one variable at x dire
I'm not sure if I understood your problem.
If you just need to integrate a variable along xdirection at a fixed y during postprocessing, you have to create a line along xdirection, at the y value you want. Then integrate the flow variable un that line, using the Surface Integral tool. Hi :) ap 
Re: How to get summation of one variable at x dire
Yes, i want to integrate one variable along xdirection. 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 linecreation, it will cost too much lines. So, is there any others method to get this intergration? Thanks.

Re: How to get summation of one variable at x dire
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 
All times are GMT 4. The time now is 06:15. 