[MITgcm-support] Re: matlab script files for Rotating-tank!'
Andrew Eichmann
afe at ocean.mit.edu
Mon Mar 28 14:12:36 EST 2005
* Van Thinh Nguyen <vtnguyen at moisie.math.uwaterloo.ca> wrote on Wed, Mar 23, 2005 at 01:41:56PM -0500
> Hi,
>
> I just started to use Mitgcm, my interest is on lake modelling which is
> a closed domain. So I have worked on tutorial "Rotating-tank"
> (../verification/rotating-tank). I have run this example, because I hope
> this may help me some ideas to simulate a lake. I have got a
> computational result, however I still have problem to see this result by
> matlab (I still don't use NetCDF). Anyone may have a matlab script file to
> see this problem, please help me out!
> I also used matlab scripts to see the result from exp0, it worked
> perfectly, but in this case it is diffenrent may be due to cylinderical
> coordination.
Van Thinh,
Sorry for the delay in getting back to you.
There are a a number of utilities in MITgcm_contrib/osse/utils
(accessible through cvs) that should be able to help you.
cart2cyl.m and cyl2cart.m convert scalar fields between cylindrical
and cartesian coordinates, and cart2cyluv.m and cyl2cartuv.m do the
same for vector fields. If you are satisfied with having azimuthal and
radial vectors in cartesian coordinates the scalar versions will work.
The scripts test*.m will demonstrate their use.
These functions, in particular the scalar versions, are very
experimental, and the documentation consists of the above paragraph.
You have to be careful about orientation and direction of your axes,
and I suggest playing with fields of unit vectors to appreciate what's
happening.
I also put together a demo page: <http://mitgcm.org/~afe/cylcart/>
I will be retesting them in the next week or so, so feel free to
contact me directly if you find any problems!
--
Andrew Eichmann
MIT-PAOC
Rm 54-1519
77 Massachusetts Ave.
Cambridge, MA 02139
617-253-7916
More information about the MITgcm-support
mailing list