Fortran code for projecting a grid on to a surface

  • #1
laminatedevildoll
210
0
Does anyone know the fortran code for projecting a grid (cartesian or not) onto a surface?

Thnx
 

Answers and Replies

  • #2
neurocomp2003
1,366
3
huh?....do you mean to make your own grid of a finite mesh?
 
  • #3
laminatedevildoll
210
0
yes, so that I can project a triangle mesh on to it.
 
  • #4
neurocomp2003
1,366
3
quad mesh is easier..but i don't have it in fortan.
 
  • #5
PerennialII
Science Advisor
Gold Member
901
1
think might have somewhere or could find a reference or extract from some code, you want it for linears, quads ... ?
 
  • #6
laminatedevildoll
210
0
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
neurocomp2003
1,366
3
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
PerennialII
Science Advisor
Gold Member
901
1
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
PerennialII
Science Advisor
Gold Member
901
1
You can find a number of mesh/grid generators from :

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

... 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
neurocomp2003
1,366
3
does fortran now have a 3D display or do you have to convert still to matlab or c?
 
  • #11
PerennialII
Science Advisor
Gold Member
901
1
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
laminatedevildoll
210
0
Thank you so much!
 

Suggested for: Fortran code for projecting a grid on to a surface

  • Last Post
Replies
2
Views
337
Replies
3
Views
394
  • Last Post
Replies
9
Views
836
Replies
20
Views
693
Replies
7
Views
566
Replies
8
Views
343
  • Last Post
2
Replies
35
Views
694
Replies
5
Views
185
Replies
5
Views
439
Top