Numerical Integration in 3D Space: Fortran 90 Help and Insights | TheIsingGuy

AI Thread Summary
The discussion centers on integrating a function in 3D space using Fortran 90 and plotting the results for comparison with an analytical solution. The user is implementing piecewise integration with small intervals and trapezoidal approximation to determine the average value of the function. They express a need for guidance on plotting the integrated function. A suggestion is made to refer to a numerical recipes book for additional resources. Ultimately, the user resolves the issue independently, noting that their own solution is more concise than the extensive examples found in the recommended resources.
TheIsingGuy
Messages
20
Reaction score
0
I want to integrate a function in 3D space, and then plot the integrated function, to compare with my analytical solution, I am using Fortran 90, I have no problem integrating, I am just not sure how I can plot the resulting function out. I am currently thinking about piecewise integration, using small intervals with only 1 trapezium, where I take each trapezium, find its area and divide by dx(its height) to give the average value of the 2 bases, which I am approximating as the value of the function.

I would be grateful if someone could share some insights on this problem.

must appreciated. TheIsingGuy
 
Physics news on Phys.org
CFDFEAGURU said:
You should visit the following site.

http://www.nrbook.com/a/bookf90pdf.php

Hope this helps.

Thanks. I have figured it out anyways. I already knew about the recipes book and NAG libraries but what I had in about 8 lines of code it took them about 2 pages...
 

Similar threads

Replies
8
Views
3K
Replies
1
Views
3K
Replies
2
Views
2K
Replies
1
Views
1K
Replies
6
Views
7K
Replies
6
Views
4K
Back
Top