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

Click For Summary
SUMMARY

The discussion focuses on integrating a function in 3D space using Fortran 90 and plotting the results for comparison with an analytical solution. The user, TheIsingGuy, successfully integrates the function but seeks guidance on plotting the integrated function. They consider using piecewise integration with trapezoidal approximation to calculate average values. The discussion also references the Numerical Recipes book and NAG libraries as resources for further assistance.

PREREQUISITES
  • Fortran 90 programming
  • Numerical integration techniques, specifically trapezoidal rule
  • 3D plotting libraries compatible with Fortran
  • Understanding of piecewise functions
NEXT STEPS
  • Research 3D plotting libraries for Fortran, such as DISLIN or PLplot
  • Learn about advanced numerical integration methods beyond trapezoidal rule
  • Explore the Numerical Recipes book for additional algorithms and techniques
  • Investigate NAG libraries for optimized numerical routines in Fortran
USEFUL FOR

This discussion is beneficial for Fortran developers, numerical analysts, and researchers working on 3D function integration and visualization.

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 ·
Replies
8
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
7K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 5 ·
Replies
5
Views
2K