标签:
杂谈 |
分类: MSN搬家 |
ROMS(Regional Ocean Model
System)作为一个比较新的模式,与其他模式相比有许多值得关注的特点,比如:其使用的坐标系-S坐标系(Stretched
Terrain-following
Coordinates)使得温跃层和底边界层等这些让人更感兴趣的层面上有更高的解析度;在水平对流、垂相混合等问题的处理上,也有更多的方案可供选择等。
ROMS作为新兴的海洋模式系统正被广泛应用于各种尺度运动(大至全球尺度环流,小至河川渠道的水体运动)以及各个领域如海洋生物、海洋地质以及海冰研等)。ROMS使用的坐标系-S坐标系(Stretched Terrain-following Coordinates)能够适当的描述流场受到地形的影响;而且该模式在垂直方向上采用非等比例分层等方式,相对采用水深等比例分层的经典模式POM来说,其温跃层和底边界层等这些让人更感兴趣的层面上有更高的解析度。ROMS使用新的水平压力梯度演算,相对POM模式,其在地形变化大的区域的水平压力梯度计算误差累计明显减少。
ROMS作为新兴的海洋模式系统正被广泛应用于各种尺度运动(大至全球尺度环流,小至河川渠道的水体运动)以及各个领域如海洋生物、海洋地质以及海冰研等)。ROMS使用的坐标系-S坐标系(Stretched Terrain-following Coordinates)能够适当的描述流场受到地形的影响;而且该模式在垂直方向上采用非等比例分层等方式,相对采用水深等比例分层的经典模式POM来说,其温跃层和底边界层等这些让人更感兴趣的层面上有更高的解析度。ROMS使用新的水平压力梯度演算,相对POM模式,其在地形变化大的区域的水平压力梯度计算误差累计明显减少。
ROMS由以下文件组成Fortran files (*.F),
头文件(*.h), 变量定义文件 (varinfo.dat), 输入脚本
(*.in), 以及一些 Makefiles. ROMS 需要 NetCDF
作为输入/输出,因此用户需要它的接口文件. ROMS 通过UPWELLING一个案例程序分发.
因此我们可以运行ROMS,察看它的输出结果. 以便我们运行我们自己的模式。
运行ROMS步骤如下:
1) Install (untar or unzip) the distributed
file to a working directory.
2) Install NetCDF library. You may need to get the source code and build the libraries yourself, or there may be precompiled NetCDF libraries already out there. You just need to get them or build them, and place the libraries on your computer in the right location.
3) Make the program. Depending on the operating system, you need to select which Makefile to use.
4) to run ROMS in windows with cygwin, for example, type
./oceanS.exe < ocean_upw.in > & ocean_upw.out &
5) To look at the output, you can use free NetCDFviewers such as ncbrowse, check the following link:
http://www.unidata.ucar.edu/packages/netcdf/software.html
How To Develop Your Own Application
Look in the test cases for an existing application that is similar to what you are doing. Then modify it. For each application, the user will most likely edit the following files:
cppdefs.h
ocean_*.in
mod_param.F
analytical.F
cppdefs.h: The flexibility in ROMS comes from the many options available in the code. For each application, the user needs to develop a set of CPP (C pre-processor) definitions that will activate sections of the code. This is all accomplished in cppdefs.h. This file specifies (defines) all the options that should be used for each application. At the top of cppdefs.h is a list of applications. Only one application should be defined at any given time. The default application that ROMS has defined is UPWELLING.
2) Install NetCDF library. You may need to get the source code and build the libraries yourself, or there may be precompiled NetCDF libraries already out there. You just need to get them or build them, and place the libraries on your computer in the right location.
3) Make the program. Depending on the operating system, you need to select which Makefile to use.
4) to run ROMS in windows with cygwin, for example, type
./oceanS.exe < ocean_upw.in > & ocean_upw.out &
5) To look at the output, you can use free NetCDFviewers such as ncbrowse, check the following link:
http://www.unidata.ucar.edu/packages/netcdf/software.html
How To Develop Your Own Application
Look in the test cases for an existing application that is similar to what you are doing. Then modify it. For each application, the user will most likely edit the following files:
cppdefs.h
ocean_*.in
mod_param.F
analytical.F
cppdefs.h: The flexibility in ROMS comes from the many options available in the code. For each application, the user needs to develop a set of CPP (C pre-processor) definitions that will activate sections of the code. This is all accomplished in cppdefs.h. This file specifies (defines) all the options that should be used for each application. At the top of cppdefs.h is a list of applications. Only one application should be defined at any given time. The default application that ROMS has defined is UPWELLING.
前一篇:SeaGrid生成网格