Difference between revisions of "FJORD TIDAL CASE"

From WikiROMS
Jump to navigationJump to search
Line 32: Line 32:
Dummy text... No real information here yet
Dummy text... No real information here yet


==Create header (.h) file==
==Compiling ROMS==
Before we compile ROMS, we need to create a header (.h) file and to modify some analytical Fortran files.
 
===Create header (.h) file===
Create a copy of the basin.h test-case header file, and rename the copy fjord.h
Create a copy of the basin.h test-case header file, and rename the copy fjord.h


'''fjord.h file:''' Start with basin.h ...then '''<font color="red">Erase red</font> and <font color="green">Add green</font>''' (black remains the same).
 
{| style="width:85%; background:white; margin:20px margin-right:60px; line-height:115%; padding:10px; border:2px dashed blue;" cellpadding="0" cellspacing="0"
'''fjord.h file:''' Use basin.h as a template. '''<font color="red">Erase red</font> and <font color="green">Add green</font>''' (black remains the same).
:{| style="width:60%; background:white; line-height:115%; padding:10px; border:2px dashed blue;" cellpadding="0" cellspacing="0"
|-  
|-  
|<nowiki>/*</nowiki>
|<nowiki>/*</nowiki>

Revision as of 17:12, 15 April 2008

Fjord Tidal Test Case
Warning This WikiROMS article is currently under HEAVY construction. This message will be erased when active construction is finished (in 1 or 2 days).
April 14, 2008

This tutorial will go over some of the basic steps to set up a ROMS realistic application (yet, this is a very simple one). This tutorial is also a demonstration of how to use EASYGRID, a "quick-and-dirty" matlab script to make ROMS grids and initialization files.


Warning PREREQUISITES: This tutorial assumes that you have (1) downloaded ROMS, (2) installed it in your computer (or cluster), (3) tested it by compiling and running one of the included test cases, and (4) installed MEXNC, SNCTOOLS and the ROMS Matlab tool-kit. If you haven't done all the above, check the "Getting Started" and "Tutorials" WikiROMS sections.




Geographical Setting: This application is for Ship Harbour, an estuarine fjord in Nova Scotia, Canada. Click here to see the location in Google. Tides are semidiurnal and tidal range is 1.4 m on average and 2 m on spring tides. For now I will only include tidal forcing, however, there is a river at the uppermost end of the estuary, which discharges freshwater at an annual average rate of 18 m3 s-1. I plan to write another tutorial on how to add a river, but for now is only tides. Ship Harbour has a shallow sill of approximately 7 m depth. Average depth of the inner basin is 15 m with a maximum of 25 m.



Grid Generation

The first step to set up a realistic application is to set up a realistic grid. There are several software packages to generate ROMS grids. Here I will use EASYGRID.

Get bathymetry and coastline

Dummy text... No real information here yet

Download EASYGRID

Dummy text... No real information here yet

Initialization

Dummy text... No real information here yet

Compiling ROMS

Before we compile ROMS, we need to create a header (.h) file and to modify some analytical Fortran files.

Create header (.h) file

Create a copy of the basin.h test-case header file, and rename the copy fjord.h


fjord.h file: Use basin.h as a template. Erase red and Add green (black remains the same).

/*
** svn $Id: basin.h 139 2008-01-10 00:17:29Z arango $
*******************************************************************************
** Copyright (c) 2002-2008 The ROMS/TOMS Group **
** Licensed under a MIT/X style license **
** See License_ROMS.txt **
*******************************************************************************
**
** Options for Big Bad Basin.
** Options for Tidal Fjord.
**
** Application flag: BASIN
** Application flag: FJORD
** Input script: ocean_basin.in
** Input script: ocean_fjord.in
*/

#define UV_ADV
#define UV_COR
#define UV_QDRAG
#define UV_VIS4
#define MIX_S_UV
#define DJ_GRADPS
#define TS_U3HADVECTION
#define TS_C4VADVECTION
#define SOLVE3D
#define SPLINES
#define EASTERN_WALL
#define WESTERN_WALL
#define SOUTHERN_WALL
#define NORTHERN_WALL
#define BODYFORCE
#define ANA_GRID
#define ANA_INITIAL
#define ANA_SMFLUX
#define ANA_STFLUX
#define MASKING
#define EAST_FSCHAPMAN
#define EAST_M2FLATHER
#define EAST_M3RADIATION
#define EAST_TRADIATION
#define ANA_FSOBC
#define ANA_M2OBC

Tidal Forcing

Dummy text... No real information here yet