Fortran code for projecting a grid on to a surface

Click For Summary

Discussion Overview

The discussion revolves around the implementation of Fortran code for projecting a grid onto a surface, specifically focusing on techniques for creating and manipulating triangle and quad meshes. The scope includes programming, computational geometry, and mesh generation.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant inquires about Fortran code for projecting a grid onto a surface.
  • Another participant questions whether the inquiry pertains to creating a finite mesh grid.
  • A participant confirms the intention to project a triangle mesh onto the grid.
  • There is a suggestion that quad meshes are easier to work with, although the participant lacks Fortran code for this purpose.
  • One participant offers to help find references or extract code for linear and quad meshes.
  • A suggestion is made that if the individual is willing to do it themselves, the equation of a sphere can be used with equal interval divisions along latitude and longitude to create the mesh.
  • Another participant mentions that many routines approach mesh creation through element splitting, starting with quads and splitting them into triangles while adhering to geometric constraints.
  • Links to various mesh/grid generators are provided, including references to Geompack, which supports triangle meshes and is written in Fortran.
  • A question is raised about the capability of Fortran to handle 3D displays or if conversion to MATLAB or C is still necessary.
  • One participant expresses the belief that Fortran and 3D graphics do not integrate well, although there may be some 3D sets available for Fortran 90/95.

Areas of Agreement / Disagreement

Participants express varying levels of familiarity with Fortran's capabilities regarding 3D graphics and mesh generation. There is no consensus on the best approach or the availability of suitable code, indicating multiple competing views and unresolved questions.

Contextual Notes

Some participants mention the simplicity of certain mesh generation techniques, but the discussion lacks detailed mathematical formulations or specific assumptions that may affect the proposed methods.

laminatedevildoll
Messages
211
Reaction score
0
Does anyone know the fortran code for projecting a grid (cartesian or not) onto a surface?

Thnx
 
Computer science news on Phys.org
huh?...do you mean to make your own grid of a finite mesh?
 
yes, so that I can project a triangle mesh on to it.
 
quad mesh is easier..but i don't have it in fortan.
 
think might have somewhere or could find a reference or extract from some code, you want it for linears, quads ... ?
 
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.
 
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).
 
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).
 
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!
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
4K
Replies
64
Views
11K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
Replies
7
Views
3K