- No category
advertisement
SHOC User Manual
file0.bytespervalue 4 file0.vars ALL
4.31.8 Customised parameters
As discussed in section Error! Reference source not found., SHOC source code may be customised to suit special circumstances that the standard model does not support. The customised source may well define its own parameters and read them from the parameter file. In such cases please consult the code directly.
4.31.9 Coastlines
If using the utility jvismeco
, you will probably need to specify coastline data (unless you are modelling simple test cases, or a completely open patch of water). These are specified in
ASCII files containing 2 columns (x and y). A file may contain more than one coastline section
(several islands, for example). It is preferable that each coastline section forms a closed polygon which does not contain any self-intersections. Coastline sections are separated by a blank line (and/or usually one or more comment lines as well). An example coastline file is shown below:
# This is an optional comment line.
# This is another comment line.
0 0
0 1
1 1
1 0
0 0
# A second coastline section
1 0
1 1
2 1
2 0
1 0
You can have as many coastlines as you like, in as many files as you like, but it is usually convenient to keep all the data in one file.
4.31.10 Bathymetric data
In order to define the area to be modelled, you need to specify the bathymetry of the area. To do this, you need an ASCII file containing bathymetric data in 3 columns (x y and depth, free format). An example file is as follows:
# This is an optional comment line.
# This is another comment line.
# The 3 columns are x, y and depth
1000 1000 20
2020.2 1354 10
1520 7322 15
# You can even have comments in the middle of the data
7261 6123 8
8761 7991 5
20/08/2015 Page 124 of 185 Version: 1.00
SHOC User Manual
The data does not need to be on any sort of regular grid - they may be randomly scattered in x and y. This data can be read with jvismeco
, and the the interpolated model bathymetry saved as a text file, suitable for inclusion in a SHOC parameter file.
4.32 Diagnostic files
A summary of the simulation is always printed to the file setup.txt
upon execution of
SHOC. This file is written to the path specified by
OuputPath
and the directory SHOC is run from. Typically this summary contains the following information:
SHOC Simulation Summary
Version : v1.0
Input file = open.prm
Open channel test domain
Grid description : Coarse open channel (120:1)
Simulation start time : Mon Jul 31 16:02:58 2006
Operating in 3D mode
3D time step = 40.000
2D time step = 5.000
Tracer time step = 40.000
Sub-stepping stability compensation; excluding surface layer
Thin layer adjustment implemented
Exit on fatal eta instabilities when |eta| > 10.00
Exit when above variables = NaN
Grid dimension : 212 x 52 x 25
Vertical structure
Vertical coordinate system = 'z'
-40.0 -30.0 -25.0 -21.0 -18.0 -15.0 -13.0 -11.0 -9.0 -8.0 -7.5 -7.0 -
6.5 -6.0 -5.5 -5.0 -4.5 -4.0 -3.5 -3.0 -2.5 -2.0 -1.5 -1.0 -0.5
2nd order momentum advection scheme.
QUICKEST (flux form : variable grid) tracer advection scheme.
Ultimate filter invoked.
Free slip condition.
Horizontal diffusion (x direction) = 2.000
Horizontal diffusion (y direction) = 2.000
Horizontal viscosity (x direction) = 20.000
Horizontal viscosity (y direction) = 20.000
Mean horizontal grid spacing : e1 = 275.01, e2 = 228.49
Vertical mixing scheme : mellor_yamada_2_0
Surface roughness length scale = 0.100
Background diffusivity = 1.000e-07
Background viscosity = 5.000e-07
Bottom roughness length scale = 0.000100
Number of tracers = 2
Tracer #0 : salt [0.00e+00 : 4.00e+01]
Tracer #1 : temp [0.00e+00 : 4.00e+01]
Number of open boundaries = 2
Boundary #0 : west
Normal velocity = NOGRAD
20/08/2015 Page 125 of 185 Version: 1.00
SHOC User Manual
Tangential velocity = CLAMPD
Elevation = FILEIN|MILLER
Tracer #0 (salt) = FILEIN|UPSTRM
Tracer #1 (temp) = FILEIN|UPSTRM
Relaxation constant = 0.008 (hours)
Boundary data file #0 : /home/mgs/dent/c2/west_ets.nc
Boundary #1 : east
Normal velocity = NOGRAD
Tangential velocity = CLAMPD
Elevation = FILEIN
Tracer #0 (salt) = FILEIN|UPSTRM
Tracer #1 (temp) = FILEIN|UPSTRM
Boundary data file #0 : /home/mgproja/derwent/st_meco/east_ets.nc
Wind forcing from file /home/mgproja/dent/wind/wind_grid.nc
Wind speed scale = 1.00
Wind speed threshold #1 = 10.00
Wind speed threshold #2 = 26.00
Surface drag coefficient #1 = 0.00114
Surface drag coefficient #2 = 0.00218
Heat flux calculated
Heat flux calculated : bulk formulation
Bulk scheme = Kondo (1975)
Reference height for air temperature/humidity = 4.00
Air temperature file : /home/mgproja/dent/heat_obs/airport_3hr.ts
Wet bulb temperature file :
/home/mgproja/dent/heat_obs/airport_3hr.ts
Cloud cover file : /home/mgproja/dent/heat_obs/airport_3hr.ts
Atmospheric pressure file :
/home/mgproja/dent/press_meco/press_grid2.nc
No salt flux specified
Number of output file dumps = 6
Output file #0 : /home/swirl1/test1/test_all
Output file #1 : /home/swirl1/test1/test_sur
At every time step the simulation progress is written to file diag.txt
which is useful to estimate the time remaining for the simulation. This file contains the following information:
Simulation start = 0.0000 (days) : 1990-01-01 00:00:00
Simulation stop = 400.0000 (days) : 1991-02-05 00:00:00
Simulation time = 400.0000 (days) : 1991-02-05 00:00:00
CPU time used this iteration = 0.000 (sec)
Mean CPU time used / iteration = 0.000 (sec)
CPU run time ratio = 1236051.502146
Elapsed time = 0 day(s) 00:08:22
Total time ratio = 68844.621514
Time to completion = 0 day(s) 00:00:00
Percent complete = 100.0%
Running…
Information useful for debugging model crashes may be generated using:
20/08/2015 Page 126 of 185 Version: 1.00
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 6 Introduction
- 7 Installation and operation
- 11 Model setup
- 12 The parameter file
- 20 Defining a Cartesian coordinate system
- 20 Defining a latitude/longitude coordinate system
- 20 Defining a map projected coordinate system
- 24 Rectangular grid
- 25 Polar grid
- 25 Numerical grid
- 26 Geographic rectangular grid
- 34 Tracer initialisation
- 34 Relaxation
- 37 Resetting
- 37 Tracer Increments for State Variables
- 37 Scaling
- 39 Surface fluxes
- 40 Tracer types
- 40 Tracer filling and filtering
- 43 Boundary condition types
- 44 Boundary Implementation (stagger)
- 44 Forcing Data
- 45 Flather Radiation
- 46 Custom Routines
- 46 River Flow Custom Routines
- 48 Forcing with Velocity
- 50 Tracer Equation OBCs
- 50 Relaxation to Forced Data
- 51 Boundary Relaxation
- 51 Phase Speed Smoothing
- 51 Flow Relaxation Scheme
- 52 Linear Conditions
- 52 No Action Taken : NOTHIN
- 53 Sponge Layers
- 53 Atmospheric Pressure
- 53 Advection / flux conditions for tracers
- 55 Profile Methods for Tracers
- 56 Tidal Synthesis for Elevation
- 57 Global Tidal Model
- 57 Custom Tidal Constituents
- 59 Mixing coefficient boundary conditions
- 59 Split conditions for tracers
- 59 Constant boundary bathymetry
- 60 Scaling
- 61 Boundary geographic location
- 61 Standard boundary conditions
- 65 Elevation (and velocity) relaxation
- 68 Generic Storm Systems
- 79 Constant
- 79 Csanady
- 79 Mellor-Yamada
- 80 Mellor-Yamada 2.0 Estuarine
- 80 Mellor-Yamada
- 83 Stability functions
- 83 Waves
- 87 Steady State Approximation
- 91 Particle Status
- 91 Source Colour
- 92 Settling
- 94 Swimming
- 94 Mortality
- 98 Tracer Fluxes
- 99 Means
- 100 Mixed Layer Depth
- 100 Flushing Time
- 101 Age tracer
- 102 Steric Height
- 103 Vorticity
- 104 Mixing Length Scale
- 104 CFL Time-steps
- 105 Momentum Balance Tendencies
- 106 Tracer Tendencies
- 106 Selective Momentum Calculations
- 106 Diagnostic numbers
- 109 Tracer percentiles
- 110 Alerts
- 111 Total mass, volume, heat and salt
- 112 De-correlation length scales
- 113 Mass Budgets
- 116 Diagnostic tracer names
- 118 Variable substitution
- 119 Multiple datafiles
- 119 Model variable initialisation
- 119 Model variable output
- 119 ASCII time-series
- 120 NetCDF dump files
- 123 Multi-dumpfiles
- 124 Customised parameters
- 124 Coastlines
- 124 Bathymetric data
- 127 Run regulation
- 131 Automatic setup (-a option)
- 135 Restarts
- 137 ROAM (-r option)
- 141 Input file generation (-g option)
- 142 Transport mode (-t option)
- 150 Percentile computations (-ps option)
- 151 File formats
- 151 Units
- 152 Utilities
- 152 Units
- 157 Tests
- 161 Tracer Statistics
- 167 Getting Started
- 174 Sediment Transport
- 176 Ecology
- 179 Troubleshooting
- 180 References
- 183 Index