Fortran code for projecting a grid on to a surface

In summary: I don't necessary need it in Fortran there are packages written to Matlab and so, which may be a bit more straightforward.
  • #1
laminatedevildoll
211
0
Does anyone know the fortran code for projecting a grid (cartesian or not) onto a surface?

Thnx
 
Computer science news on Phys.org
  • #2
huh?...do you mean to make your own grid of a finite mesh?
 
  • #3
yes, so that I can project a triangle mesh on to it.
 
  • #4
quad mesh is easier..but i don't have it in fortan.
 
  • #5
think might have somewhere or could find a reference or extract from some code, you want it for linears, quads ... ?
 
  • #6
PerennialII said:
think might have somewhere or could find a reference or extract from some code, you want it for linears, quads ... ?

yeah, that'd be great.
 
  • #7
if your willing to do it your self...the equation of a sphere is easy...then you do equal interval divisions along the latitude and longitude. The connecting points for the mesh is an easy pattern for either the quadmesh or trimesh(being alittle complicated then the former).
 
  • #8
laminatedevildoll said:
yeah, that'd be great.

Ok, I'll look something up.

neurocomp2003 said:
if your willing to do it your self...the equation of a sphere is easy...then you do equal interval divisions along the latitude and longitude. The connecting points for the mesh is an easy pattern for either the quadmesh or trimesh(being alittle complicated then the former).

yeah, it's actually pretty simple and when not making it as general as possible even more so. One way many routines approach it is element splitting, first make quads and split them to tris while preserving/fulfilling geometry etc. restraints (to simplify it further that is).
 
  • #9
You can find a number of mesh/grid generators from :

http://www-users.informatik.rwth-aachen.de/%7Eroberts/software.html
http://www.andrew.cmu.edu/user/sowen/mesh.html

... for example the Geompack is written in Fortran, source is available and supports triangle meshes :

http://members.allstream.net/~bjoe/

If you don't necessary need it in Fortran there are packages written to Matlab and so, which may be a bit more straightforward.
 
Last edited by a moderator:
  • #10
does fortran now have a 3D display or do you have to convert still to MATLAB or c?
 
  • #11
Been under the impression that Fortran and 3D don't really mix ... although I think for 90/95 there is/are some 3D sets which ougth to enable development using solely fortran :confused: .
 
  • #12
Thank you so much!
 

1. What is Fortran code for projecting a grid on to a surface?

Fortran is a programming language commonly used in scientific and engineering applications. The code for projecting a grid on to a surface involves using mathematical algorithms to map a two-dimensional grid onto a three-dimensional surface.

2. What is the purpose of projecting a grid on to a surface?

The purpose of projecting a grid on to a surface is to visualize and analyze data that is represented on a two-dimensional grid in a more realistic and accurate manner. This is often used in geospatial analysis and computer graphics.

3. What are the steps involved in projecting a grid on to a surface using Fortran?

The exact steps may vary depending on the specific code used, but generally, the process involves defining the grid points, identifying the surface to be projected on, and using mathematical equations to calculate the coordinates of the projected points.

4. Can Fortran code for projecting a grid on to a surface be used for any type of surface?

Yes, Fortran code can be used to project a grid onto any type of surface, as long as the mathematical equations used are appropriate for the specific surface being projected on. This includes both regular and irregular surfaces.

5. Are there any limitations to using Fortran code for projecting a grid on to a surface?

As with any programming language, there may be limitations or challenges when using Fortran code for projecting a grid on to a surface. This can include complex data structures, handling large amounts of data, and potential errors in the code. However, with proper knowledge and understanding of the language, these limitations can be overcome.

Similar threads

  • Computing and Technology
Replies
3
Views
2K
  • Programming and Computer Science
2
Replies
62
Views
3K
Replies
18
Views
1K
  • Programming and Computer Science
Replies
2
Views
904
Replies
1
Views
152
  • Computing and Technology
Replies
6
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
7
Views
1K
Replies
15
Views
5K
  • Programming and Computer Science
Replies
4
Views
573
  • Programming and Computer Science
Replies
9
Views
3K
Back
Top