Which software is better to make a curve orthogonal grid?

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
zym1989
Posts: 1
Joined: Tue Feb 18, 2014 2:40 pm
Location: xiamen university

Which software is better to make a curve orthogonal grid?

#1 Unread post by zym1989 »

QQ图片20140520234352.jpg
I am looking for a software which can make a curve orthogonal grid and it can adjust every grid cell .I mean that the software has high freedom to change every grid cell and focus point. Don't laugh at me.I'm new. I was using seagrid ,but it has many limit condition so the grid drawn by seagrid can't fit my requirements. How can I draw a grid like the picture by seagrid?

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Which software is better to make a curve orthogonal grid

#2 Unread post by kate »

I don't have any way to make that exact grid. Both Seagrid and my Fortran code are based on a routine called "rect" which requires your domain to map to a rectangle. Our Python tools instead use a routine called "gridgen" which can have a more complex boundary. However, I don't know how to get gridgen to make curved edges between the boundary points.

The model delft3d has a more capable grid generation tool which appears to be called RGF-grid. Lyon Lanerolle has had good luck with using it to make ROMS grids. I'm not sure what the licensing and costs are on it.

User avatar
wilkin
Posts: 922
Joined: Mon Apr 28, 2003 5:44 pm
Location: Rutgers University
Contact:

Re: Which software is better to make a curve orthogonal grid

#3 Unread post by wilkin »

That's an intriguing grid with some obvious attractive features with respect to enhanced resolution in coastal Vietnam. If you have the numeric grid coordinates you can build the grid file directly by computing the lon/lat of u,v and rho points, and the grid metrics pm, pn, and construct a land/sea mask with other tools we have available.
John Wilkin: DMCS Rutgers University
71 Dudley Rd, New Brunswick, NJ 08901-8521, USA. ph: 609-630-0559 jwilkin@rutgers.edu

User avatar
d.kobashi
Posts: 69
Joined: Tue Sep 28, 2010 11:59 pm
Location: Texas A&M University

Re: Which software is better to make a curve orthogonal grid

#4 Unread post by d.kobashi »

If you are after a GUI tool easy to use and if you use Windows, Delft3D RGFGRID may be your best option so far. You can create detailed curvilinear grids using the tool.

Now you can even save grids as ROMS netcdf grid file with RGFGRID. But you will need to tweak a bit after you create a ROMS grid file (I had to do that a while ago for a older version of RGFGRID). You can get RGFGRID for free of charge until Deltares releases its source code (not sure when).
You can request the tool from the following site.
http://oss.deltares.nl/web/delft3d/sour ... 41089452C6
There is a Linux version as well, but it was not stable when I tried it; whereas, RGFGRID for Windows was (and probably still is) stable.

Also, there is a tool called pygridgen and according to the web site, it comes with GUI. I have never used it, though. You might want to check it out.
https://github.com/hetland/pygridgen

Hope this helps.

DJ

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Which software is better to make a curve orthogonal grid

#5 Unread post by kate »

Once you manage to create this grid, you should know that ROMS will want you to run it as multiple grid patches, as in the dogbone example. Otherwise, you would not be able to apply open boundary conditions where they should be applied. To run as one ROMS grid, you would have to create a much larger rectangular grid and mask out the portions that are not shown. ROMS would then see the boundaries as being internal to that larger grid, with solid walls on the boundaries.

Post Reply