dengwirda / jigsaw-geo-tutorial

A tutorial on mesh generation for geoscientific modelling using JIGSAW.
6 stars 3 forks source link

Help with recreate the Antarctic banner. #3

Closed pwongpan closed 4 years ago

pwongpan commented 4 years ago

Hi Darren, I really like your JIGSAW software. I finally can install the JIGSAW-matlab on my computer. I was wondering how to create the figure like your banner that I attached with JIGSAW? How did you render the 3D Antarctic continent? Did you use one of the examples included in the tutorial. Thanks in advance for your help, Pat

pwongpan commented 4 years ago

Hi Darren, I really like your JIGSAW software. I finally can install the JIGSAW-matlab on my computer. I was wondering how to create the figure like your banner that I attached with JIGSAW? How did you render the 3D Antarctic continent? Did you use one of the examples included in the tutorial. Thanks in advance for your help, Pat

This banner I mean. Thanks again. banner

dengwirda commented 4 years ago

Hi Pat, The mesh in the banner was made more for the image than as an actual climate config., but it is indeed possible to set something like this up in jigsaw for MPAS-O|[SI|LI].

The tutorial / example code will hopefully point you in the right direction here --- essentially you need to define a "spacing" function (in lon-lat coord.'s) that describes the variation in cell edge-length that you desire. Once you have this, jigsaw will build a mesh that satisfies those constraints, while trying to keep the cells "nicely" shaped.

I rendered the banner image direct in MATLAB, but Paraview is possibly easier to work with.

pwongpan commented 4 years ago

Thanks Darren. Can JIGSAW create Voronoi mesh like the banner or MPAS mesh instead of the Delaunay triangular mesh in the example?

dengwirda commented 4 years ago

Hi Pat, Yes, Delaunay and Voronoi meshes are the "duals" of each other, so jigsaw can be used to generate grids for MPAS --- generally, it's the standard package used for ocean, sea-ice, land-ice, meshes, etc.

Are you an MPAS user / developer? If so, there's a range of tools here that may be helpful in setting up MPAS-format mesh files. The process typically involves building the triangulation using jigsaw, and then assembling the Voronoi mesh + data-structures using MPAS-Tools...

What are you looking to set up?

pwongpan commented 4 years ago

Thanks a lot Darren. I am just studying and try to understand how the MPAS mesh was generated which is really cool. Thanks again.