CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Any Integration Algoritms? (https://www.cfd-online.com/Forums/main/14640-any-integration-algoritms.html)

Rif January 15, 2008 08:02

Any Integration Algoritms?
 
Hi, I am wondering how to integrate data points. What i am trying to do is to get my lift and drag forces from my airfoil simulation. for that, i need to integrate pressure dx ,wall shear stress dy, etc. But i cannot use the simpson's integration algorithm because i have variable steps. do u have an algorithm to recommend besides the trapezoidal rule?

Cheerios Rif

Ertan Karaismail CFD&AMP January 15, 2008 14:53

Re: Any Integration Algoritms?
 
You can use the Simpson method with nonuniform grid. Look at the zip file in the following link to see how it is performed

http://www.mathworks.com/matlabcentr...bjectType=File

HTH



All times are GMT -4. The time now is 22:37.