Difference between revisions of "FJORD TIDAL CASE"

From WikiROMS
Jump to navigationJump to search
Line 35: Line 35:
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:100%; background:white; margin:20px; padding:10px; border:2px dashed blue;" cellpadding="0" cellspacing="0"
{| style="width:100%; background:white; margin:20px margin-right:60px; line-height:115%; padding:10px; border:2px dashed blue;" cellpadding="0" cellspacing="0"
|-  
|-  
|<nowiki>/*</nowiki>
|<nowiki>/*</nowiki>
Line 54: Line 54:
|<nowiki>**</nowiki>
|<nowiki>**</nowiki>
|-  
|-  
|<nowiki>** Options for Big Bad Basin.</nowiki>
|<font color="red"><nowiki>** Options for Big Bad Basin.</nowiki></font>
|-
|<font color="green">'''<nowiki>** Options for Tidal Fjord.</nowiki>'''</font>
|-  
|-  
|<nowiki>**</nowiki>
|<nowiki>**</nowiki>
|-  
|-  
|<nowiki>** Application flag:  BASIN</nowiki>
|<font color="red"><nowiki>** Application flag:  BASIN</nowiki></font>
|-  
|-  
|<nowiki>** Input script:      ocean_basin.in</nowiki>
|<font color="green">'''<nowiki>** Application flag:  FJORD</nowiki>'''</font>
|-
|<font color="red"><nowiki>** Input script:      ocean_basin.in</nowiki></font>
|-
|<font color="green">'''<nowiki>** Input script:      ocean_fjord.in</nowiki>'''</font>
|-  
|-  
|<nowiki>*/</nowiki>
|<nowiki>*/</nowiki>
Line 86: Line 92:
|<nowiki>#define SPLINES</nowiki>
|<nowiki>#define SPLINES</nowiki>
|-  
|-  
|<nowiki>#define EASTERN_WALL</nowiki>
|<font color="red"><nowiki>#define EASTERN_WALL</nowiki></font>
|-
|<font color="red"><nowiki>#define WESTERN_WALL</nowiki></font>
|-
|<font color="red"><nowiki>#define SOUTHERN_WALL</nowiki></font>
|-
|<font color="red"><nowiki>#define NORTHERN_WALL</nowiki></font>
|-
|<font color="red"><nowiki>#define BODYFORCE</nowiki></font>
|-
|<font color="red"><nowiki>#define ANA_GRID</nowiki></font>
|-
|<font color="red"><nowiki>#define ANA_INITIAL</nowiki></font>
|-  
|-  
|<nowiki>#define WESTERN_WALL</nowiki>
|<font color="red"><nowiki>#define ANA_SMFLUX</nowiki></font>
|-  
|-  
|<nowiki>#define SOUTHERN_WALL</nowiki>
|<font color="red"><nowiki>#define ANA_STFLUX</nowiki></font>
|-  
|-  
|<nowiki>#define NORTHERN_WALL</nowiki>
|<font color="green"><nowiki>#define MASKING</nowiki></font>
|-  
|-  
|<nowiki>#define BODYFORCE</nowiki>
|<font color="green"><nowiki>#define EAST_FSCHAPMAN</nowiki></font>
|-  
|-  
|<nowiki>#define ANA_GRID</nowiki>
|<font color="green"><nowiki>#define EAST_M2FLATHER</nowiki></font>
|-  
|-  
|<nowiki>#define ANA_INITIAL</nowiki>
|<font color="green"><nowiki>#define EAST_M3RADIATION</nowiki></font>
|-  
|-  
|<nowiki>#define ANA_SMFLUX</nowiki>
|<font color="green"><nowiki>#define EAST_TRADIATION </nowiki></font>
|-  
|-  
|<nowiki>#define ANA_STFLUX</nowiki>
|<font color="green"><nowiki>#define ANA_FSOBC</nowiki></font>
|-  
|-  
|<nowiki>#define ANA_BTFLUX</nowiki>
|<font color="green"><nowiki>#define ANA_M2OBC</nowiki></font>
|}
|}



Revision as of 16:16, 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

Create header (.h) file

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 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