Numerical Integration Cylindrical Coordinates - Volume

Version 1.0.0 (1.94 KB) by Miguel
This script computes a Volume Integral on a circle. It creates a spline from a set of data points, and computes a volume around a circle.
71 Downloads
Updated 26 Dec 2018

View License

Simple program:
Enter a set of points.
Enter a set of coordinates for each point.
The program interpolates and creates a spline.
It then computes the volume integral of this spline, revolved around the axis of the circle.
This does not compute a line integral for the polynomial created by the data set. 
Reason: in order to compute a correct volume integral a correct cylindrical coordinates infinitesimal area element is used in the integral, and this means multiplying the argument of the integral by the radius coordinate variable, which in effect means increasing the degree of the polynomial from polyfit.
Test the example before by hand, the integral of X^2 multiplied by X over a radius, revolved by 2*pi.
INTEGRAL = ( x^2 ) * ( X dX d THETA )
The infinitesimal area element is dS = X * dX * dTHETA.
Remember that the interval of the function inside the integral is from X = 0 to X = 5, THETA from 0 to 2 pi.

Cite As

Miguel (2024). Numerical Integration Cylindrical Coordinates - Volume (https://www.mathworks.com/matlabcentral/fileexchange/69824-numerical-integration-cylindrical-coordinates-volume), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0