<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.wiki.mohid.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Luisfernandes</id>
		<title>MohidWiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://www.wiki.mohid.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Luisfernandes"/>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Special:Contributions/Luisfernandes"/>
		<updated>2026-04-04T17:02:28Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_Sand&amp;diff=4441</id>
		<title>Module Sand</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_Sand&amp;diff=4441"/>
				<updated>2011-03-08T11:58:55Z</updated>
		
		<summary type="html">&lt;p&gt;Luisfernandes: /* Maps (HDF5 format) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
Module Sand was the result of the accumulated experience gain by Hidromod in the framework of many engineering projects. Many of the projects were done with a old MOHID version programmed in F77. More recently Hidromod develop a new Module using the present [[Mohid Programming]] philosophy. The concepts of this module were described an tested in detail by Carmo (2005) see [http://www.mohid.com/PublicData/products/Thesis/TFC_miguelcarmo.pdf]. However, if the user wants to know exactly what this module is doing it can take a look at the source code (see - [http://mohid.codeplex.com/SourceControl/changeset/view/63225#1208126]).&lt;br /&gt;
=== Algorithm  ===&lt;br /&gt;
From a conceptual point of view this module is very simple. The bed load fluxes are computed in a Arakawa-C grid [http://en.wikipedia.org/wiki/Arakawa_grids#Arakawa_C-grid]. In each centre cell (Z point) the transport flow is computes. In order to compute the transport flows the user can choose from a set of formulations presented below. In a second step the Zonal (or X) component flows are interpolated to the U points and the meridional (or Y) components are interpolated to the V points. &lt;br /&gt;
Finally to estimate the evolution of the sand thickness in the centre cell (Z point) a mass balance is done. The availability of sand in a cell is limited by the depth of the bed rock. &lt;br /&gt;
&lt;br /&gt;
=== Transport formulas implemented ===&lt;br /&gt;
&lt;br /&gt;
In this section the transport formulas implemented in the MOHID system are enumerated. Based in the characteristics of the formulas and  Hidromod experience the formulas can be divided by area of application:&lt;br /&gt;
&lt;br /&gt;
'''Rivers'''&lt;br /&gt;
&lt;br /&gt;
Meyer-Peter, E; Müller, R. (1948)&lt;br /&gt;
&lt;br /&gt;
'''Estuaries''' &lt;br /&gt;
&lt;br /&gt;
Ackers and White (1973)&lt;br /&gt;
&lt;br /&gt;
'''Coastal areas'''&lt;br /&gt;
&lt;br /&gt;
Bijker-Battachraya (1968)&lt;br /&gt;
Van Rijn (1984, 1993)&lt;br /&gt;
Bailard (1981,1984)&lt;br /&gt;
Dibajnia (1992)&lt;br /&gt;
&lt;br /&gt;
== Main options ==&lt;br /&gt;
In this section the available options in Module Sand are briefly described. The different options provided by the module can be defined through an input data file, similarly to other MOHID modules. The name of the Module Sand for run number x is Sand_x.dat (see [[Mohid GUI]])&lt;br /&gt;
&lt;br /&gt;
Keyword TRANSPORT_METHOD is used to choose the transport formula the user wants to test from the list presented above. The options are: no transport, MeyerPeter, Ackers, VanRijn1, VanRijn2, Bailard, Dibajnia, Bijker. Keyword SAND_DT is the time step used to compute the transport formula and by default it is equal to the global model time step (see - [[Choose the model time step]]). The keyword OLD (0 - OFF; 1 - ON) is ON when the user wants to do a hot start (OFF - cold start).  &lt;br /&gt;
&lt;br /&gt;
 TRANSPORT_METHOD : MeyerPeter&lt;br /&gt;
 SAND_DT          : 60.&lt;br /&gt;
 OLD              : 0&lt;br /&gt;
&lt;br /&gt;
The user can choose if the compute bed loads change or not the bathymetry and consequently the hydrodynamics. If the user wants to take in consideration the effect of bathymetry changes in the other Mohid modules then the keyword BATHYM_EVOLUTION : 1 must be defined. The keyword BATIM_DT is used to define the update frequency of the model bathymetry and by default is equal to the global model time step (see - [[Choose the model time step]]).&lt;br /&gt;
&lt;br /&gt;
 BATHYM_EVOLUTION : 1 &lt;br /&gt;
 BATIM_DT         : 60.&lt;br /&gt;
&lt;br /&gt;
If the bathymetry evolution option is ON the user needs to add the follow keywords in the bathymetry file (see - [[Bathymetry]]). Keyword EVOLUTION used to activate the ability of the [[Module GridData]] to write the bathymetry evolution in a [[HDF5]] file and read also from a [[HDF5]] (important for the hot start runs). The keyword EVOLUTION_FILE is used to define the [[HDF5]] filename. The keyword PROPERTY_NAME is used to associate a name to the bathymetry array to be stored in the [[HDF5]] file. &lt;br /&gt;
&lt;br /&gt;
 EVOLUTION      : 1&lt;br /&gt;
 EVOLUTION_FILE : MyModelBathymetryEvolution.hdf5&lt;br /&gt;
 PROPERTY_NAME  : Bathymetry&lt;br /&gt;
&lt;br /&gt;
Regarding keywords used to define boundary conditions, the keyword BOUNDARY is used to define the open boundary condition. The options are 1 (null gradient) and 2 (cyclic boundary - used in academic studies mainly). The keyword DISCHARGES is used to activate a set of sinks or sources of sediments (0 - OFF, 1 - ON). These sinks/sources of sediments are defined in the discharge_x.dat input file see [[Module Discharges]]. To define a set of sinks/sources of sediments see [[How to create discharges in MOHID]].&lt;br /&gt;
&lt;br /&gt;
 BOUNDARY : 1&lt;br /&gt;
&lt;br /&gt;
 DISCHARGES : 0&lt;br /&gt;
&lt;br /&gt;
The following keywords are used to define the sediments diameter. These are one of the main inputs of transport formulas. &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;beginD90&amp;gt;&lt;br /&gt;
 NAME                  : D90&lt;br /&gt;
 UNITS                 : m            &lt;br /&gt;
 DESCRIPTION           : Diameter below which 90 percent of the particles are finer&lt;br /&gt;
 FILE_IN_TIME          : ASCII_FILE            &lt;br /&gt;
 FILENAME              : D90Field.dat &lt;br /&gt;
 &amp;lt;endD90&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;beginD50&amp;gt;&lt;br /&gt;
 NAME                  : D50&lt;br /&gt;
 UNITS                 : m            &lt;br /&gt;
 DESCRIPTION           : Diameter below which 50 percent of the particles are finer&lt;br /&gt;
 FILE_IN_TIME          : ASCII_FILE            &lt;br /&gt;
 FILENAME              : D50Field.dat &lt;br /&gt;
 &amp;lt;endD50&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;beginD35&amp;gt;&lt;br /&gt;
 NAME                  : D35&lt;br /&gt;
 UNITS                 : m            &lt;br /&gt;
 DESCRIPTION           : Diameter below which 35 percent of the particles are finer&lt;br /&gt;
 FILE_IN_TIME          : ASCII_FILE            &lt;br /&gt;
 FILENAME              : D35Field.dat &lt;br /&gt;
 &amp;lt;endD35&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following keywords are used to define the sediments availability (bed rock concept). The SAND_MIN keyword is to define the limit (in meters) below which the transport stops to avoid sediment negative thicknesses.&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;beginrock&amp;gt;&lt;br /&gt;
 NAME                  : bed rock&lt;br /&gt;
 UNITS                 : m            &lt;br /&gt;
 DESCRIPTION           : Depth from sediment surface below which there is no sediment to be transported&lt;br /&gt;
 FILE_IN_TIME          : ASCII_FILE            &lt;br /&gt;
 FILENAME              : BedRock.dat&lt;br /&gt;
 &amp;lt;endrock&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 SAND_MIN : 0.01&lt;br /&gt;
&lt;br /&gt;
The field properties D90, D50, D35 and bed rock are defined using the options available in [[Module Fillmatrix]].&lt;br /&gt;
&lt;br /&gt;
== Advanced options ==&lt;br /&gt;
&lt;br /&gt;
The following keywords are used to convert sediments from mass per square meter in meters (POROSITY - porosity and DENS_SAND - sand density). &lt;br /&gt;
&lt;br /&gt;
 POROSITY : 0.1&lt;br /&gt;
 DENS_SAND : 2650.&lt;br /&gt;
&lt;br /&gt;
The following keywords are used to smooth the solution. The transport formulas are highly non-linear and tend to generate very noisy solutions. Keyword - FILTER_SCHEME, options: No Filter (filter OFF), Modify Lax (filter ON). This filter distributes 50% of the bathymetry evolution in the adjacent cells. The keyword FILTER_RADIUS is used to define the radius (in number of cells) that is used to define the adjacent areas under the effect of sediment redistribution. &lt;br /&gt;
&lt;br /&gt;
 FILTER_SCHEME : No Filter&lt;br /&gt;
 FILTER_RADIUS : 4&lt;br /&gt;
&lt;br /&gt;
Another option is to use a factor to speed up morphodynamic processes. This factor must be used with caution. This factor multiplies by the transport loads&lt;br /&gt;
&lt;br /&gt;
 TRANSPORT_FACTOR : 1.&lt;br /&gt;
&lt;br /&gt;
The maximum limit for the bottom shear stress used in the Meyer Peter formula can be defined with the following keyword:&lt;br /&gt;
&lt;br /&gt;
 TAU_MAX = 10.&lt;br /&gt;
&lt;br /&gt;
To help improve the model performance it the concept of lateral transport was implemented (SMOOTH_SLOP : 0 - OFF, 1 - ON). In this case, it is assumed that when the bathymetry gradient perpendicular to the main bed load flow is above a critical slope (CRITICAL_SLOP) there is a flow in this direction. This bed load flow is equal to a percentage (FLUX_SLOP) of the main flow. This perpendicular bed load flow tend to smooth the slopes. This is important in river flows where the bathymetry gradients perpendicular to the main flow can be very steep. &lt;br /&gt;
&lt;br /&gt;
 SMOOTH_SLOP : 0&lt;br /&gt;
 CRITICAL_SLOP : 0.1&lt;br /&gt;
 FLUX_SLOP : 0.1&lt;br /&gt;
&lt;br /&gt;
== Outputs ==&lt;br /&gt;
The user in this module can output: time series of fields ([[HDF5]] files), time series in a point ([[Time Series]] ASCII files) and time series of integral results for an area ([[Boxes]] ASCII files).&lt;br /&gt;
&lt;br /&gt;
=== Boxes ===&lt;br /&gt;
&lt;br /&gt;
The user can compute the sediment fluxes between boxes (or areas).&lt;br /&gt;
&lt;br /&gt;
 BOXFLUXES : 1&lt;br /&gt;
&lt;br /&gt;
If the user wants to compute fluxes between areas needs to define a network of boxes following the ASCII MOHID format [[Boxes]].&lt;br /&gt;
&lt;br /&gt;
 BOX_FILENAME : Boxes.dat &lt;br /&gt;
&lt;br /&gt;
=== Time series ===&lt;br /&gt;
&lt;br /&gt;
The user can also make outputs of the most significant properties in a point related with bed load following the standard methodology used in the other MOHID modules (see [[Module TimeSerie]]).&lt;br /&gt;
&lt;br /&gt;
For example, if a user wants to activate the output time series option needs to add to the input file (Sand_x.dat) the following keyword:&lt;br /&gt;
&lt;br /&gt;
  TIME_SERIES : 1&lt;br /&gt;
&lt;br /&gt;
=== Maps (HDF5 format) ===&lt;br /&gt;
&lt;br /&gt;
The user can also make outputs of the most significant properties fields related with bed load following the standard methodology used in the other MOHID modules (see [[OUTPUT TIME]]).&lt;br /&gt;
&lt;br /&gt;
For example, if a user wants field results every hour starting from the beginning of the run it needs to define the following (time is seconds).&lt;br /&gt;
&lt;br /&gt;
  OUTPUT_TIME : 0. 3600.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
AHMED, S. M., SATO, S. (2003); A sheetflow transport model for asymmetric oscillatory flows. Part I: Uniform grain size sediments; Coastal Engineering Journal 45, 321-337.&lt;br /&gt;
&lt;br /&gt;
ACKERS, P.; WHITE, W.R. (1973); &amp;quot;Sediment Transport: New Approach and Analysis&amp;quot;. Journal of the Hydraulics Division (ASCE) 99 (11): 2041–2060.&lt;br /&gt;
&lt;br /&gt;
AL SALEM, A. (1993); Sediment transport in oscilatory boundary layers under sheet flow conditions; PhD thesis, Delft Hydraulics, The Netherlands.&lt;br /&gt;
&lt;br /&gt;
BAGNOLD, R. (1966); An approach of sediment transport model from general physics; US Geol. Survey Prof. Paper 422-I.&lt;br /&gt;
&lt;br /&gt;
BAILARD, J. A. (1984); A simplified model for longshore sediment transport. Proceedings of the 19th Coastal Engineering Conference, pp. 1454– 1470.&lt;br /&gt;
&lt;br /&gt;
BAILARD, J. A., INMAN, D. L. (1981); An energetics bedload model for plane sloping beach: local transport. Journal of Geophysical Research 86 (C3), 2035– 2043.&lt;br /&gt;
&lt;br /&gt;
BAYRAM, A., LARSON, M., MILLER, H., KRAUS, N. (2001); Cross-shore distribution of longshore sediment transport: comparison between predictive formulas and field measurements; Coastal Engineering Journal 44, 79– 99.&lt;br /&gt;
&lt;br /&gt;
BIJKER, E. (1968); Littoral drift as function of waves and current; 11th Coastal Eng. Conf. Proc. ASCE; London, UK; pp. 415–435.&lt;br /&gt;
&lt;br /&gt;
CAMENEN, B., LARROUDÉ, P. (2003); Comparison of sediment transport formulae for the coastal environment; Coastal Engineering 48, 111– 132.&lt;br /&gt;
&lt;br /&gt;
DIBAJNIA, M., WATANABE, A. (1992); Sheet flow under nonlinear waves and currents. Coastal Engineering Journal, 2015– 2029.&lt;br /&gt;
&lt;br /&gt;
DU BOYS, P. (1879); Le rhône et les rivières à lit affouillable; Ann; Ponts Chaussées 18 (5), 171– 195.&lt;br /&gt;
&lt;br /&gt;
FERNANDES, L. (2001); Transporte de Poluentes em Estuários; Trabalho Final de Curso da Licenciatura em Engenharia do Ambiente; Instituto Superior Técnico, Universidade Técnica de Lisboa.&lt;br /&gt;
&lt;br /&gt;
FRIJLINK, H. (1952); Discussion des formules de débit solide de Kalinske, Einstein et Meyer-Peter and Muller compte tenue des mesures récentes de transport dans les rivières néerlandaises; 2nd Journal Hydraulique; Société Hydraulique de France, pp. 98– 103.&lt;br /&gt;
&lt;br /&gt;
KOMAR, P. D. (1998); Beach processes and sedimentation; 2nd Ed.; Pearson Education, New Jersey.&lt;br /&gt;
&lt;br /&gt;
LEITÃO, P.C. (2002); Integração de Escalas e de Processos na Modelação do Ambiente Marinho; Dissertação para a obtenção do grau de Doutor em Engenharia do Ambiente; Instituto Superior Técnico, Universidade Técnica de Lisboa.&lt;br /&gt;
&lt;br /&gt;
LIU, Z. (2001); Sediment Transport; Instituttet for Vand, Jord og Miljøteknik; Aalborg Universitet.&lt;br /&gt;
&lt;br /&gt;
MEYER-PETER, E; MULLER, R. (1948); Formulas for bed-load transport. Proceedings of the 2nd Meeting of the International Association for Hydraulic Structures Research. pp. 39–64.&lt;br /&gt;
&lt;br /&gt;
SANCHO, F. (2002); Apontamentos da disciplina de Processos Fluviais e Costeiros, Mestrado em Hidráulica, Recursos Hídricos e Ambiente; Faculdade de Ciências e Tecnologia da Universidade de Coimbra.&lt;br /&gt;
&lt;br /&gt;
SILVA*, A., NEVES**, R., LEITÃO, J.C. (1997); Modelação de Processos de Transporte por Acção Combinada de Ondas e Correntes; *HIDROMOD - Modelação em Engª, Ldª; **Instituto Superior Técnico; Lisboa.&lt;br /&gt;
&lt;br /&gt;
SMITH, J., SHERLOCK, A., RESIO, D. (2001); STWAVE: Steady-State Spectral Wave Model. User’s Manual for STWAVE, Version 3.0; ERDC/CHL, US Army Corps of Engineers; Washington, DC.&lt;br /&gt;
&lt;br /&gt;
TRANCOSO, A. R. (2002); Modelling Macroalgae in Estuaries; Trabalho Final de Curso da Licenciatura em Engenharia do Ambiente; Instituto Superior Técnico, Universidade Técnica de Lisboa.&lt;br /&gt;
&lt;br /&gt;
VAN RIJN, L.C. (1984); Sediment transport: Part I: Bed load transport; Part II: Suspended load transport; Part III: Bed forms and alluvial roughness. Journal of Hydraulic Division 110 (10), 1431– 1456; 110 (11) 1613– 1641; 110 (12) 1733-1754.&lt;br /&gt;
&lt;br /&gt;
VAN RIJN, L.C. (1993); Principles of sediment transport in rivers, estuaries and coastal seas. Aqua Publication, The Netherlands, Amsterdam.&lt;br /&gt;
&lt;br /&gt;
WANG, P., EBERSOLE B., SMITH E. (2002); Longshore Sand Transport – Initial Results from Large-Scale Sediment Transport Facility; ERDC/CHL, US Army Corps of Engineers, Washington, DC.&lt;br /&gt;
&lt;br /&gt;
WINTER, C. (2004); Perfomance of sediment transport models in tidal environments, Workshop HWK, Delmenhorst.&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;br /&gt;
[[Category:MOHID Water]]&lt;/div&gt;</summary>
		<author><name>Luisfernandes</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_Sand&amp;diff=4440</id>
		<title>Module Sand</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_Sand&amp;diff=4440"/>
				<updated>2011-03-08T11:58:31Z</updated>
		
		<summary type="html">&lt;p&gt;Luisfernandes: /* Time series */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
Module Sand was the result of the accumulated experience gain by Hidromod in the framework of many engineering projects. Many of the projects were done with a old MOHID version programmed in F77. More recently Hidromod develop a new Module using the present [[Mohid Programming]] philosophy. The concepts of this module were described an tested in detail by Carmo (2005) see [http://www.mohid.com/PublicData/products/Thesis/TFC_miguelcarmo.pdf]. However, if the user wants to know exactly what this module is doing it can take a look at the source code (see - [http://mohid.codeplex.com/SourceControl/changeset/view/63225#1208126]).&lt;br /&gt;
=== Algorithm  ===&lt;br /&gt;
From a conceptual point of view this module is very simple. The bed load fluxes are computed in a Arakawa-C grid [http://en.wikipedia.org/wiki/Arakawa_grids#Arakawa_C-grid]. In each centre cell (Z point) the transport flow is computes. In order to compute the transport flows the user can choose from a set of formulations presented below. In a second step the Zonal (or X) component flows are interpolated to the U points and the meridional (or Y) components are interpolated to the V points. &lt;br /&gt;
Finally to estimate the evolution of the sand thickness in the centre cell (Z point) a mass balance is done. The availability of sand in a cell is limited by the depth of the bed rock. &lt;br /&gt;
&lt;br /&gt;
=== Transport formulas implemented ===&lt;br /&gt;
&lt;br /&gt;
In this section the transport formulas implemented in the MOHID system are enumerated. Based in the characteristics of the formulas and  Hidromod experience the formulas can be divided by area of application:&lt;br /&gt;
&lt;br /&gt;
'''Rivers'''&lt;br /&gt;
&lt;br /&gt;
Meyer-Peter, E; Müller, R. (1948)&lt;br /&gt;
&lt;br /&gt;
'''Estuaries''' &lt;br /&gt;
&lt;br /&gt;
Ackers and White (1973)&lt;br /&gt;
&lt;br /&gt;
'''Coastal areas'''&lt;br /&gt;
&lt;br /&gt;
Bijker-Battachraya (1968)&lt;br /&gt;
Van Rijn (1984, 1993)&lt;br /&gt;
Bailard (1981,1984)&lt;br /&gt;
Dibajnia (1992)&lt;br /&gt;
&lt;br /&gt;
== Main options ==&lt;br /&gt;
In this section the available options in Module Sand are briefly described. The different options provided by the module can be defined through an input data file, similarly to other MOHID modules. The name of the Module Sand for run number x is Sand_x.dat (see [[Mohid GUI]])&lt;br /&gt;
&lt;br /&gt;
Keyword TRANSPORT_METHOD is used to choose the transport formula the user wants to test from the list presented above. The options are: no transport, MeyerPeter, Ackers, VanRijn1, VanRijn2, Bailard, Dibajnia, Bijker. Keyword SAND_DT is the time step used to compute the transport formula and by default it is equal to the global model time step (see - [[Choose the model time step]]). The keyword OLD (0 - OFF; 1 - ON) is ON when the user wants to do a hot start (OFF - cold start).  &lt;br /&gt;
&lt;br /&gt;
 TRANSPORT_METHOD : MeyerPeter&lt;br /&gt;
 SAND_DT          : 60.&lt;br /&gt;
 OLD              : 0&lt;br /&gt;
&lt;br /&gt;
The user can choose if the compute bed loads change or not the bathymetry and consequently the hydrodynamics. If the user wants to take in consideration the effect of bathymetry changes in the other Mohid modules then the keyword BATHYM_EVOLUTION : 1 must be defined. The keyword BATIM_DT is used to define the update frequency of the model bathymetry and by default is equal to the global model time step (see - [[Choose the model time step]]).&lt;br /&gt;
&lt;br /&gt;
 BATHYM_EVOLUTION : 1 &lt;br /&gt;
 BATIM_DT         : 60.&lt;br /&gt;
&lt;br /&gt;
If the bathymetry evolution option is ON the user needs to add the follow keywords in the bathymetry file (see - [[Bathymetry]]). Keyword EVOLUTION used to activate the ability of the [[Module GridData]] to write the bathymetry evolution in a [[HDF5]] file and read also from a [[HDF5]] (important for the hot start runs). The keyword EVOLUTION_FILE is used to define the [[HDF5]] filename. The keyword PROPERTY_NAME is used to associate a name to the bathymetry array to be stored in the [[HDF5]] file. &lt;br /&gt;
&lt;br /&gt;
 EVOLUTION      : 1&lt;br /&gt;
 EVOLUTION_FILE : MyModelBathymetryEvolution.hdf5&lt;br /&gt;
 PROPERTY_NAME  : Bathymetry&lt;br /&gt;
&lt;br /&gt;
Regarding keywords used to define boundary conditions, the keyword BOUNDARY is used to define the open boundary condition. The options are 1 (null gradient) and 2 (cyclic boundary - used in academic studies mainly). The keyword DISCHARGES is used to activate a set of sinks or sources of sediments (0 - OFF, 1 - ON). These sinks/sources of sediments are defined in the discharge_x.dat input file see [[Module Discharges]]. To define a set of sinks/sources of sediments see [[How to create discharges in MOHID]].&lt;br /&gt;
&lt;br /&gt;
 BOUNDARY : 1&lt;br /&gt;
&lt;br /&gt;
 DISCHARGES : 0&lt;br /&gt;
&lt;br /&gt;
The following keywords are used to define the sediments diameter. These are one of the main inputs of transport formulas. &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;beginD90&amp;gt;&lt;br /&gt;
 NAME                  : D90&lt;br /&gt;
 UNITS                 : m            &lt;br /&gt;
 DESCRIPTION           : Diameter below which 90 percent of the particles are finer&lt;br /&gt;
 FILE_IN_TIME          : ASCII_FILE            &lt;br /&gt;
 FILENAME              : D90Field.dat &lt;br /&gt;
 &amp;lt;endD90&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;beginD50&amp;gt;&lt;br /&gt;
 NAME                  : D50&lt;br /&gt;
 UNITS                 : m            &lt;br /&gt;
 DESCRIPTION           : Diameter below which 50 percent of the particles are finer&lt;br /&gt;
 FILE_IN_TIME          : ASCII_FILE            &lt;br /&gt;
 FILENAME              : D50Field.dat &lt;br /&gt;
 &amp;lt;endD50&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;beginD35&amp;gt;&lt;br /&gt;
 NAME                  : D35&lt;br /&gt;
 UNITS                 : m            &lt;br /&gt;
 DESCRIPTION           : Diameter below which 35 percent of the particles are finer&lt;br /&gt;
 FILE_IN_TIME          : ASCII_FILE            &lt;br /&gt;
 FILENAME              : D35Field.dat &lt;br /&gt;
 &amp;lt;endD35&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following keywords are used to define the sediments availability (bed rock concept). The SAND_MIN keyword is to define the limit (in meters) below which the transport stops to avoid sediment negative thicknesses.&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;beginrock&amp;gt;&lt;br /&gt;
 NAME                  : bed rock&lt;br /&gt;
 UNITS                 : m            &lt;br /&gt;
 DESCRIPTION           : Depth from sediment surface below which there is no sediment to be transported&lt;br /&gt;
 FILE_IN_TIME          : ASCII_FILE            &lt;br /&gt;
 FILENAME              : BedRock.dat&lt;br /&gt;
 &amp;lt;endrock&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 SAND_MIN : 0.01&lt;br /&gt;
&lt;br /&gt;
The field properties D90, D50, D35 and bed rock are defined using the options available in [[Module Fillmatrix]].&lt;br /&gt;
&lt;br /&gt;
== Advanced options ==&lt;br /&gt;
&lt;br /&gt;
The following keywords are used to convert sediments from mass per square meter in meters (POROSITY - porosity and DENS_SAND - sand density). &lt;br /&gt;
&lt;br /&gt;
 POROSITY : 0.1&lt;br /&gt;
 DENS_SAND : 2650.&lt;br /&gt;
&lt;br /&gt;
The following keywords are used to smooth the solution. The transport formulas are highly non-linear and tend to generate very noisy solutions. Keyword - FILTER_SCHEME, options: No Filter (filter OFF), Modify Lax (filter ON). This filter distributes 50% of the bathymetry evolution in the adjacent cells. The keyword FILTER_RADIUS is used to define the radius (in number of cells) that is used to define the adjacent areas under the effect of sediment redistribution. &lt;br /&gt;
&lt;br /&gt;
 FILTER_SCHEME : No Filter&lt;br /&gt;
 FILTER_RADIUS : 4&lt;br /&gt;
&lt;br /&gt;
Another option is to use a factor to speed up morphodynamic processes. This factor must be used with caution. This factor multiplies by the transport loads&lt;br /&gt;
&lt;br /&gt;
 TRANSPORT_FACTOR : 1.&lt;br /&gt;
&lt;br /&gt;
The maximum limit for the bottom shear stress used in the Meyer Peter formula can be defined with the following keyword:&lt;br /&gt;
&lt;br /&gt;
 TAU_MAX = 10.&lt;br /&gt;
&lt;br /&gt;
To help improve the model performance it the concept of lateral transport was implemented (SMOOTH_SLOP : 0 - OFF, 1 - ON). In this case, it is assumed that when the bathymetry gradient perpendicular to the main bed load flow is above a critical slope (CRITICAL_SLOP) there is a flow in this direction. This bed load flow is equal to a percentage (FLUX_SLOP) of the main flow. This perpendicular bed load flow tend to smooth the slopes. This is important in river flows where the bathymetry gradients perpendicular to the main flow can be very steep. &lt;br /&gt;
&lt;br /&gt;
 SMOOTH_SLOP : 0&lt;br /&gt;
 CRITICAL_SLOP : 0.1&lt;br /&gt;
 FLUX_SLOP : 0.1&lt;br /&gt;
&lt;br /&gt;
== Outputs ==&lt;br /&gt;
The user in this module can output: time series of fields ([[HDF5]] files), time series in a point ([[Time Series]] ASCII files) and time series of integral results for an area ([[Boxes]] ASCII files).&lt;br /&gt;
&lt;br /&gt;
=== Boxes ===&lt;br /&gt;
&lt;br /&gt;
The user can compute the sediment fluxes between boxes (or areas).&lt;br /&gt;
&lt;br /&gt;
 BOXFLUXES : 1&lt;br /&gt;
&lt;br /&gt;
If the user wants to compute fluxes between areas needs to define a network of boxes following the ASCII MOHID format [[Boxes]].&lt;br /&gt;
&lt;br /&gt;
 BOX_FILENAME : Boxes.dat &lt;br /&gt;
&lt;br /&gt;
=== Time series ===&lt;br /&gt;
&lt;br /&gt;
The user can also make outputs of the most significant properties in a point related with bed load following the standard methodology used in the other MOHID modules (see [[Module TimeSerie]]).&lt;br /&gt;
&lt;br /&gt;
For example, if a user wants to activate the output time series option needs to add to the input file (Sand_x.dat) the following keyword:&lt;br /&gt;
&lt;br /&gt;
  TIME_SERIES : 1&lt;br /&gt;
&lt;br /&gt;
=== Maps (HDF5 format) ===&lt;br /&gt;
&lt;br /&gt;
The user can also do output of the most signifcant properties fields related with bed load following the standard methodology used in the other MOHID modules (see [[OUTPUT TIME]]).&lt;br /&gt;
&lt;br /&gt;
For example, if a user wants field results every hour starting from the beginning of the run it needs to define the follow (time is seconds).&lt;br /&gt;
&lt;br /&gt;
  OUTPUT_TIME : 0. 3600.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
AHMED, S. M., SATO, S. (2003); A sheetflow transport model for asymmetric oscillatory flows. Part I: Uniform grain size sediments; Coastal Engineering Journal 45, 321-337.&lt;br /&gt;
&lt;br /&gt;
ACKERS, P.; WHITE, W.R. (1973); &amp;quot;Sediment Transport: New Approach and Analysis&amp;quot;. Journal of the Hydraulics Division (ASCE) 99 (11): 2041–2060.&lt;br /&gt;
&lt;br /&gt;
AL SALEM, A. (1993); Sediment transport in oscilatory boundary layers under sheet flow conditions; PhD thesis, Delft Hydraulics, The Netherlands.&lt;br /&gt;
&lt;br /&gt;
BAGNOLD, R. (1966); An approach of sediment transport model from general physics; US Geol. Survey Prof. Paper 422-I.&lt;br /&gt;
&lt;br /&gt;
BAILARD, J. A. (1984); A simplified model for longshore sediment transport. Proceedings of the 19th Coastal Engineering Conference, pp. 1454– 1470.&lt;br /&gt;
&lt;br /&gt;
BAILARD, J. A., INMAN, D. L. (1981); An energetics bedload model for plane sloping beach: local transport. Journal of Geophysical Research 86 (C3), 2035– 2043.&lt;br /&gt;
&lt;br /&gt;
BAYRAM, A., LARSON, M., MILLER, H., KRAUS, N. (2001); Cross-shore distribution of longshore sediment transport: comparison between predictive formulas and field measurements; Coastal Engineering Journal 44, 79– 99.&lt;br /&gt;
&lt;br /&gt;
BIJKER, E. (1968); Littoral drift as function of waves and current; 11th Coastal Eng. Conf. Proc. ASCE; London, UK; pp. 415–435.&lt;br /&gt;
&lt;br /&gt;
CAMENEN, B., LARROUDÉ, P. (2003); Comparison of sediment transport formulae for the coastal environment; Coastal Engineering 48, 111– 132.&lt;br /&gt;
&lt;br /&gt;
DIBAJNIA, M., WATANABE, A. (1992); Sheet flow under nonlinear waves and currents. Coastal Engineering Journal, 2015– 2029.&lt;br /&gt;
&lt;br /&gt;
DU BOYS, P. (1879); Le rhône et les rivières à lit affouillable; Ann; Ponts Chaussées 18 (5), 171– 195.&lt;br /&gt;
&lt;br /&gt;
FERNANDES, L. (2001); Transporte de Poluentes em Estuários; Trabalho Final de Curso da Licenciatura em Engenharia do Ambiente; Instituto Superior Técnico, Universidade Técnica de Lisboa.&lt;br /&gt;
&lt;br /&gt;
FRIJLINK, H. (1952); Discussion des formules de débit solide de Kalinske, Einstein et Meyer-Peter and Muller compte tenue des mesures récentes de transport dans les rivières néerlandaises; 2nd Journal Hydraulique; Société Hydraulique de France, pp. 98– 103.&lt;br /&gt;
&lt;br /&gt;
KOMAR, P. D. (1998); Beach processes and sedimentation; 2nd Ed.; Pearson Education, New Jersey.&lt;br /&gt;
&lt;br /&gt;
LEITÃO, P.C. (2002); Integração de Escalas e de Processos na Modelação do Ambiente Marinho; Dissertação para a obtenção do grau de Doutor em Engenharia do Ambiente; Instituto Superior Técnico, Universidade Técnica de Lisboa.&lt;br /&gt;
&lt;br /&gt;
LIU, Z. (2001); Sediment Transport; Instituttet for Vand, Jord og Miljøteknik; Aalborg Universitet.&lt;br /&gt;
&lt;br /&gt;
MEYER-PETER, E; MULLER, R. (1948); Formulas for bed-load transport. Proceedings of the 2nd Meeting of the International Association for Hydraulic Structures Research. pp. 39–64.&lt;br /&gt;
&lt;br /&gt;
SANCHO, F. (2002); Apontamentos da disciplina de Processos Fluviais e Costeiros, Mestrado em Hidráulica, Recursos Hídricos e Ambiente; Faculdade de Ciências e Tecnologia da Universidade de Coimbra.&lt;br /&gt;
&lt;br /&gt;
SILVA*, A., NEVES**, R., LEITÃO, J.C. (1997); Modelação de Processos de Transporte por Acção Combinada de Ondas e Correntes; *HIDROMOD - Modelação em Engª, Ldª; **Instituto Superior Técnico; Lisboa.&lt;br /&gt;
&lt;br /&gt;
SMITH, J., SHERLOCK, A., RESIO, D. (2001); STWAVE: Steady-State Spectral Wave Model. User’s Manual for STWAVE, Version 3.0; ERDC/CHL, US Army Corps of Engineers; Washington, DC.&lt;br /&gt;
&lt;br /&gt;
TRANCOSO, A. R. (2002); Modelling Macroalgae in Estuaries; Trabalho Final de Curso da Licenciatura em Engenharia do Ambiente; Instituto Superior Técnico, Universidade Técnica de Lisboa.&lt;br /&gt;
&lt;br /&gt;
VAN RIJN, L.C. (1984); Sediment transport: Part I: Bed load transport; Part II: Suspended load transport; Part III: Bed forms and alluvial roughness. Journal of Hydraulic Division 110 (10), 1431– 1456; 110 (11) 1613– 1641; 110 (12) 1733-1754.&lt;br /&gt;
&lt;br /&gt;
VAN RIJN, L.C. (1993); Principles of sediment transport in rivers, estuaries and coastal seas. Aqua Publication, The Netherlands, Amsterdam.&lt;br /&gt;
&lt;br /&gt;
WANG, P., EBERSOLE B., SMITH E. (2002); Longshore Sand Transport – Initial Results from Large-Scale Sediment Transport Facility; ERDC/CHL, US Army Corps of Engineers, Washington, DC.&lt;br /&gt;
&lt;br /&gt;
WINTER, C. (2004); Perfomance of sediment transport models in tidal environments, Workshop HWK, Delmenhorst.&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;br /&gt;
[[Category:MOHID Water]]&lt;/div&gt;</summary>
		<author><name>Luisfernandes</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_Sand&amp;diff=4439</id>
		<title>Module Sand</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_Sand&amp;diff=4439"/>
				<updated>2011-03-08T11:57:32Z</updated>
		
		<summary type="html">&lt;p&gt;Luisfernandes: /* Advanced options */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
Module Sand was the result of the accumulated experience gain by Hidromod in the framework of many engineering projects. Many of the projects were done with a old MOHID version programmed in F77. More recently Hidromod develop a new Module using the present [[Mohid Programming]] philosophy. The concepts of this module were described an tested in detail by Carmo (2005) see [http://www.mohid.com/PublicData/products/Thesis/TFC_miguelcarmo.pdf]. However, if the user wants to know exactly what this module is doing it can take a look at the source code (see - [http://mohid.codeplex.com/SourceControl/changeset/view/63225#1208126]).&lt;br /&gt;
=== Algorithm  ===&lt;br /&gt;
From a conceptual point of view this module is very simple. The bed load fluxes are computed in a Arakawa-C grid [http://en.wikipedia.org/wiki/Arakawa_grids#Arakawa_C-grid]. In each centre cell (Z point) the transport flow is computes. In order to compute the transport flows the user can choose from a set of formulations presented below. In a second step the Zonal (or X) component flows are interpolated to the U points and the meridional (or Y) components are interpolated to the V points. &lt;br /&gt;
Finally to estimate the evolution of the sand thickness in the centre cell (Z point) a mass balance is done. The availability of sand in a cell is limited by the depth of the bed rock. &lt;br /&gt;
&lt;br /&gt;
=== Transport formulas implemented ===&lt;br /&gt;
&lt;br /&gt;
In this section the transport formulas implemented in the MOHID system are enumerated. Based in the characteristics of the formulas and  Hidromod experience the formulas can be divided by area of application:&lt;br /&gt;
&lt;br /&gt;
'''Rivers'''&lt;br /&gt;
&lt;br /&gt;
Meyer-Peter, E; Müller, R. (1948)&lt;br /&gt;
&lt;br /&gt;
'''Estuaries''' &lt;br /&gt;
&lt;br /&gt;
Ackers and White (1973)&lt;br /&gt;
&lt;br /&gt;
'''Coastal areas'''&lt;br /&gt;
&lt;br /&gt;
Bijker-Battachraya (1968)&lt;br /&gt;
Van Rijn (1984, 1993)&lt;br /&gt;
Bailard (1981,1984)&lt;br /&gt;
Dibajnia (1992)&lt;br /&gt;
&lt;br /&gt;
== Main options ==&lt;br /&gt;
In this section the available options in Module Sand are briefly described. The different options provided by the module can be defined through an input data file, similarly to other MOHID modules. The name of the Module Sand for run number x is Sand_x.dat (see [[Mohid GUI]])&lt;br /&gt;
&lt;br /&gt;
Keyword TRANSPORT_METHOD is used to choose the transport formula the user wants to test from the list presented above. The options are: no transport, MeyerPeter, Ackers, VanRijn1, VanRijn2, Bailard, Dibajnia, Bijker. Keyword SAND_DT is the time step used to compute the transport formula and by default it is equal to the global model time step (see - [[Choose the model time step]]). The keyword OLD (0 - OFF; 1 - ON) is ON when the user wants to do a hot start (OFF - cold start).  &lt;br /&gt;
&lt;br /&gt;
 TRANSPORT_METHOD : MeyerPeter&lt;br /&gt;
 SAND_DT          : 60.&lt;br /&gt;
 OLD              : 0&lt;br /&gt;
&lt;br /&gt;
The user can choose if the compute bed loads change or not the bathymetry and consequently the hydrodynamics. If the user wants to take in consideration the effect of bathymetry changes in the other Mohid modules then the keyword BATHYM_EVOLUTION : 1 must be defined. The keyword BATIM_DT is used to define the update frequency of the model bathymetry and by default is equal to the global model time step (see - [[Choose the model time step]]).&lt;br /&gt;
&lt;br /&gt;
 BATHYM_EVOLUTION : 1 &lt;br /&gt;
 BATIM_DT         : 60.&lt;br /&gt;
&lt;br /&gt;
If the bathymetry evolution option is ON the user needs to add the follow keywords in the bathymetry file (see - [[Bathymetry]]). Keyword EVOLUTION used to activate the ability of the [[Module GridData]] to write the bathymetry evolution in a [[HDF5]] file and read also from a [[HDF5]] (important for the hot start runs). The keyword EVOLUTION_FILE is used to define the [[HDF5]] filename. The keyword PROPERTY_NAME is used to associate a name to the bathymetry array to be stored in the [[HDF5]] file. &lt;br /&gt;
&lt;br /&gt;
 EVOLUTION      : 1&lt;br /&gt;
 EVOLUTION_FILE : MyModelBathymetryEvolution.hdf5&lt;br /&gt;
 PROPERTY_NAME  : Bathymetry&lt;br /&gt;
&lt;br /&gt;
Regarding keywords used to define boundary conditions, the keyword BOUNDARY is used to define the open boundary condition. The options are 1 (null gradient) and 2 (cyclic boundary - used in academic studies mainly). The keyword DISCHARGES is used to activate a set of sinks or sources of sediments (0 - OFF, 1 - ON). These sinks/sources of sediments are defined in the discharge_x.dat input file see [[Module Discharges]]. To define a set of sinks/sources of sediments see [[How to create discharges in MOHID]].&lt;br /&gt;
&lt;br /&gt;
 BOUNDARY : 1&lt;br /&gt;
&lt;br /&gt;
 DISCHARGES : 0&lt;br /&gt;
&lt;br /&gt;
The following keywords are used to define the sediments diameter. These are one of the main inputs of transport formulas. &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;beginD90&amp;gt;&lt;br /&gt;
 NAME                  : D90&lt;br /&gt;
 UNITS                 : m            &lt;br /&gt;
 DESCRIPTION           : Diameter below which 90 percent of the particles are finer&lt;br /&gt;
 FILE_IN_TIME          : ASCII_FILE            &lt;br /&gt;
 FILENAME              : D90Field.dat &lt;br /&gt;
 &amp;lt;endD90&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;beginD50&amp;gt;&lt;br /&gt;
 NAME                  : D50&lt;br /&gt;
 UNITS                 : m            &lt;br /&gt;
 DESCRIPTION           : Diameter below which 50 percent of the particles are finer&lt;br /&gt;
 FILE_IN_TIME          : ASCII_FILE            &lt;br /&gt;
 FILENAME              : D50Field.dat &lt;br /&gt;
 &amp;lt;endD50&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;beginD35&amp;gt;&lt;br /&gt;
 NAME                  : D35&lt;br /&gt;
 UNITS                 : m            &lt;br /&gt;
 DESCRIPTION           : Diameter below which 35 percent of the particles are finer&lt;br /&gt;
 FILE_IN_TIME          : ASCII_FILE            &lt;br /&gt;
 FILENAME              : D35Field.dat &lt;br /&gt;
 &amp;lt;endD35&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following keywords are used to define the sediments availability (bed rock concept). The SAND_MIN keyword is to define the limit (in meters) below which the transport stops to avoid sediment negative thicknesses.&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;beginrock&amp;gt;&lt;br /&gt;
 NAME                  : bed rock&lt;br /&gt;
 UNITS                 : m            &lt;br /&gt;
 DESCRIPTION           : Depth from sediment surface below which there is no sediment to be transported&lt;br /&gt;
 FILE_IN_TIME          : ASCII_FILE            &lt;br /&gt;
 FILENAME              : BedRock.dat&lt;br /&gt;
 &amp;lt;endrock&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 SAND_MIN : 0.01&lt;br /&gt;
&lt;br /&gt;
The field properties D90, D50, D35 and bed rock are defined using the options available in [[Module Fillmatrix]].&lt;br /&gt;
&lt;br /&gt;
== Advanced options ==&lt;br /&gt;
&lt;br /&gt;
The following keywords are used to convert sediments from mass per square meter in meters (POROSITY - porosity and DENS_SAND - sand density). &lt;br /&gt;
&lt;br /&gt;
 POROSITY : 0.1&lt;br /&gt;
 DENS_SAND : 2650.&lt;br /&gt;
&lt;br /&gt;
The following keywords are used to smooth the solution. The transport formulas are highly non-linear and tend to generate very noisy solutions. Keyword - FILTER_SCHEME, options: No Filter (filter OFF), Modify Lax (filter ON). This filter distributes 50% of the bathymetry evolution in the adjacent cells. The keyword FILTER_RADIUS is used to define the radius (in number of cells) that is used to define the adjacent areas under the effect of sediment redistribution. &lt;br /&gt;
&lt;br /&gt;
 FILTER_SCHEME : No Filter&lt;br /&gt;
 FILTER_RADIUS : 4&lt;br /&gt;
&lt;br /&gt;
Another option is to use a factor to speed up morphodynamic processes. This factor must be used with caution. This factor multiplies by the transport loads&lt;br /&gt;
&lt;br /&gt;
 TRANSPORT_FACTOR : 1.&lt;br /&gt;
&lt;br /&gt;
The maximum limit for the bottom shear stress used in the Meyer Peter formula can be defined with the following keyword:&lt;br /&gt;
&lt;br /&gt;
 TAU_MAX = 10.&lt;br /&gt;
&lt;br /&gt;
To help improve the model performance it the concept of lateral transport was implemented (SMOOTH_SLOP : 0 - OFF, 1 - ON). In this case, it is assumed that when the bathymetry gradient perpendicular to the main bed load flow is above a critical slope (CRITICAL_SLOP) there is a flow in this direction. This bed load flow is equal to a percentage (FLUX_SLOP) of the main flow. This perpendicular bed load flow tend to smooth the slopes. This is important in river flows where the bathymetry gradients perpendicular to the main flow can be very steep. &lt;br /&gt;
&lt;br /&gt;
 SMOOTH_SLOP : 0&lt;br /&gt;
 CRITICAL_SLOP : 0.1&lt;br /&gt;
 FLUX_SLOP : 0.1&lt;br /&gt;
&lt;br /&gt;
== Outputs ==&lt;br /&gt;
The user in this module can output: time series of fields ([[HDF5]] files), time series in a point ([[Time Series]] ASCII files) and time series of integral results for an area ([[Boxes]] ASCII files).&lt;br /&gt;
&lt;br /&gt;
=== Boxes ===&lt;br /&gt;
&lt;br /&gt;
The user can compute the sediment fluxes between boxes (or areas).&lt;br /&gt;
&lt;br /&gt;
 BOXFLUXES : 1&lt;br /&gt;
&lt;br /&gt;
If the user wants to compute fluxes between areas needs to define a network of boxes following the ASCII MOHID format [[Boxes]].&lt;br /&gt;
&lt;br /&gt;
 BOX_FILENAME : Boxes.dat &lt;br /&gt;
&lt;br /&gt;
=== Time series ===&lt;br /&gt;
&lt;br /&gt;
The user can also do output of the most signifcant properties in a point related with bed load following the standard methodology used in the other MOHID modules (see [[Module TimeSerie]]).&lt;br /&gt;
&lt;br /&gt;
For example, if a user wants to activate the output time series option needs to add to the input file (Sand_x.dat) the follow keyword:&lt;br /&gt;
&lt;br /&gt;
  TIME_SERIES : 1&lt;br /&gt;
&lt;br /&gt;
=== Maps (HDF5 format) ===&lt;br /&gt;
&lt;br /&gt;
The user can also do output of the most signifcant properties fields related with bed load following the standard methodology used in the other MOHID modules (see [[OUTPUT TIME]]).&lt;br /&gt;
&lt;br /&gt;
For example, if a user wants field results every hour starting from the beginning of the run it needs to define the follow (time is seconds).&lt;br /&gt;
&lt;br /&gt;
  OUTPUT_TIME : 0. 3600.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
AHMED, S. M., SATO, S. (2003); A sheetflow transport model for asymmetric oscillatory flows. Part I: Uniform grain size sediments; Coastal Engineering Journal 45, 321-337.&lt;br /&gt;
&lt;br /&gt;
ACKERS, P.; WHITE, W.R. (1973); &amp;quot;Sediment Transport: New Approach and Analysis&amp;quot;. Journal of the Hydraulics Division (ASCE) 99 (11): 2041–2060.&lt;br /&gt;
&lt;br /&gt;
AL SALEM, A. (1993); Sediment transport in oscilatory boundary layers under sheet flow conditions; PhD thesis, Delft Hydraulics, The Netherlands.&lt;br /&gt;
&lt;br /&gt;
BAGNOLD, R. (1966); An approach of sediment transport model from general physics; US Geol. Survey Prof. Paper 422-I.&lt;br /&gt;
&lt;br /&gt;
BAILARD, J. A. (1984); A simplified model for longshore sediment transport. Proceedings of the 19th Coastal Engineering Conference, pp. 1454– 1470.&lt;br /&gt;
&lt;br /&gt;
BAILARD, J. A., INMAN, D. L. (1981); An energetics bedload model for plane sloping beach: local transport. Journal of Geophysical Research 86 (C3), 2035– 2043.&lt;br /&gt;
&lt;br /&gt;
BAYRAM, A., LARSON, M., MILLER, H., KRAUS, N. (2001); Cross-shore distribution of longshore sediment transport: comparison between predictive formulas and field measurements; Coastal Engineering Journal 44, 79– 99.&lt;br /&gt;
&lt;br /&gt;
BIJKER, E. (1968); Littoral drift as function of waves and current; 11th Coastal Eng. Conf. Proc. ASCE; London, UK; pp. 415–435.&lt;br /&gt;
&lt;br /&gt;
CAMENEN, B., LARROUDÉ, P. (2003); Comparison of sediment transport formulae for the coastal environment; Coastal Engineering 48, 111– 132.&lt;br /&gt;
&lt;br /&gt;
DIBAJNIA, M., WATANABE, A. (1992); Sheet flow under nonlinear waves and currents. Coastal Engineering Journal, 2015– 2029.&lt;br /&gt;
&lt;br /&gt;
DU BOYS, P. (1879); Le rhône et les rivières à lit affouillable; Ann; Ponts Chaussées 18 (5), 171– 195.&lt;br /&gt;
&lt;br /&gt;
FERNANDES, L. (2001); Transporte de Poluentes em Estuários; Trabalho Final de Curso da Licenciatura em Engenharia do Ambiente; Instituto Superior Técnico, Universidade Técnica de Lisboa.&lt;br /&gt;
&lt;br /&gt;
FRIJLINK, H. (1952); Discussion des formules de débit solide de Kalinske, Einstein et Meyer-Peter and Muller compte tenue des mesures récentes de transport dans les rivières néerlandaises; 2nd Journal Hydraulique; Société Hydraulique de France, pp. 98– 103.&lt;br /&gt;
&lt;br /&gt;
KOMAR, P. D. (1998); Beach processes and sedimentation; 2nd Ed.; Pearson Education, New Jersey.&lt;br /&gt;
&lt;br /&gt;
LEITÃO, P.C. (2002); Integração de Escalas e de Processos na Modelação do Ambiente Marinho; Dissertação para a obtenção do grau de Doutor em Engenharia do Ambiente; Instituto Superior Técnico, Universidade Técnica de Lisboa.&lt;br /&gt;
&lt;br /&gt;
LIU, Z. (2001); Sediment Transport; Instituttet for Vand, Jord og Miljøteknik; Aalborg Universitet.&lt;br /&gt;
&lt;br /&gt;
MEYER-PETER, E; MULLER, R. (1948); Formulas for bed-load transport. Proceedings of the 2nd Meeting of the International Association for Hydraulic Structures Research. pp. 39–64.&lt;br /&gt;
&lt;br /&gt;
SANCHO, F. (2002); Apontamentos da disciplina de Processos Fluviais e Costeiros, Mestrado em Hidráulica, Recursos Hídricos e Ambiente; Faculdade de Ciências e Tecnologia da Universidade de Coimbra.&lt;br /&gt;
&lt;br /&gt;
SILVA*, A., NEVES**, R., LEITÃO, J.C. (1997); Modelação de Processos de Transporte por Acção Combinada de Ondas e Correntes; *HIDROMOD - Modelação em Engª, Ldª; **Instituto Superior Técnico; Lisboa.&lt;br /&gt;
&lt;br /&gt;
SMITH, J., SHERLOCK, A., RESIO, D. (2001); STWAVE: Steady-State Spectral Wave Model. User’s Manual for STWAVE, Version 3.0; ERDC/CHL, US Army Corps of Engineers; Washington, DC.&lt;br /&gt;
&lt;br /&gt;
TRANCOSO, A. R. (2002); Modelling Macroalgae in Estuaries; Trabalho Final de Curso da Licenciatura em Engenharia do Ambiente; Instituto Superior Técnico, Universidade Técnica de Lisboa.&lt;br /&gt;
&lt;br /&gt;
VAN RIJN, L.C. (1984); Sediment transport: Part I: Bed load transport; Part II: Suspended load transport; Part III: Bed forms and alluvial roughness. Journal of Hydraulic Division 110 (10), 1431– 1456; 110 (11) 1613– 1641; 110 (12) 1733-1754.&lt;br /&gt;
&lt;br /&gt;
VAN RIJN, L.C. (1993); Principles of sediment transport in rivers, estuaries and coastal seas. Aqua Publication, The Netherlands, Amsterdam.&lt;br /&gt;
&lt;br /&gt;
WANG, P., EBERSOLE B., SMITH E. (2002); Longshore Sand Transport – Initial Results from Large-Scale Sediment Transport Facility; ERDC/CHL, US Army Corps of Engineers, Washington, DC.&lt;br /&gt;
&lt;br /&gt;
WINTER, C. (2004); Perfomance of sediment transport models in tidal environments, Workshop HWK, Delmenhorst.&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;br /&gt;
[[Category:MOHID Water]]&lt;/div&gt;</summary>
		<author><name>Luisfernandes</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_Sand&amp;diff=4438</id>
		<title>Module Sand</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_Sand&amp;diff=4438"/>
				<updated>2011-03-08T11:54:08Z</updated>
		
		<summary type="html">&lt;p&gt;Luisfernandes: /* Main options */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
Module Sand was the result of the accumulated experience gain by Hidromod in the framework of many engineering projects. Many of the projects were done with a old MOHID version programmed in F77. More recently Hidromod develop a new Module using the present [[Mohid Programming]] philosophy. The concepts of this module were described an tested in detail by Carmo (2005) see [http://www.mohid.com/PublicData/products/Thesis/TFC_miguelcarmo.pdf]. However, if the user wants to know exactly what this module is doing it can take a look at the source code (see - [http://mohid.codeplex.com/SourceControl/changeset/view/63225#1208126]).&lt;br /&gt;
=== Algorithm  ===&lt;br /&gt;
From a conceptual point of view this module is very simple. The bed load fluxes are computed in a Arakawa-C grid [http://en.wikipedia.org/wiki/Arakawa_grids#Arakawa_C-grid]. In each centre cell (Z point) the transport flow is computes. In order to compute the transport flows the user can choose from a set of formulations presented below. In a second step the Zonal (or X) component flows are interpolated to the U points and the meridional (or Y) components are interpolated to the V points. &lt;br /&gt;
Finally to estimate the evolution of the sand thickness in the centre cell (Z point) a mass balance is done. The availability of sand in a cell is limited by the depth of the bed rock. &lt;br /&gt;
&lt;br /&gt;
=== Transport formulas implemented ===&lt;br /&gt;
&lt;br /&gt;
In this section the transport formulas implemented in the MOHID system are enumerated. Based in the characteristics of the formulas and  Hidromod experience the formulas can be divided by area of application:&lt;br /&gt;
&lt;br /&gt;
'''Rivers'''&lt;br /&gt;
&lt;br /&gt;
Meyer-Peter, E; Müller, R. (1948)&lt;br /&gt;
&lt;br /&gt;
'''Estuaries''' &lt;br /&gt;
&lt;br /&gt;
Ackers and White (1973)&lt;br /&gt;
&lt;br /&gt;
'''Coastal areas'''&lt;br /&gt;
&lt;br /&gt;
Bijker-Battachraya (1968)&lt;br /&gt;
Van Rijn (1984, 1993)&lt;br /&gt;
Bailard (1981,1984)&lt;br /&gt;
Dibajnia (1992)&lt;br /&gt;
&lt;br /&gt;
== Main options ==&lt;br /&gt;
In this section the available options in Module Sand are briefly described. The different options provided by the module can be defined through an input data file, similarly to other MOHID modules. The name of the Module Sand for run number x is Sand_x.dat (see [[Mohid GUI]])&lt;br /&gt;
&lt;br /&gt;
Keyword TRANSPORT_METHOD is used to choose the transport formula the user wants to test from the list presented above. The options are: no transport, MeyerPeter, Ackers, VanRijn1, VanRijn2, Bailard, Dibajnia, Bijker. Keyword SAND_DT is the time step used to compute the transport formula and by default it is equal to the global model time step (see - [[Choose the model time step]]). The keyword OLD (0 - OFF; 1 - ON) is ON when the user wants to do a hot start (OFF - cold start).  &lt;br /&gt;
&lt;br /&gt;
 TRANSPORT_METHOD : MeyerPeter&lt;br /&gt;
 SAND_DT          : 60.&lt;br /&gt;
 OLD              : 0&lt;br /&gt;
&lt;br /&gt;
The user can choose if the compute bed loads change or not the bathymetry and consequently the hydrodynamics. If the user wants to take in consideration the effect of bathymetry changes in the other Mohid modules then the keyword BATHYM_EVOLUTION : 1 must be defined. The keyword BATIM_DT is used to define the update frequency of the model bathymetry and by default is equal to the global model time step (see - [[Choose the model time step]]).&lt;br /&gt;
&lt;br /&gt;
 BATHYM_EVOLUTION : 1 &lt;br /&gt;
 BATIM_DT         : 60.&lt;br /&gt;
&lt;br /&gt;
If the bathymetry evolution option is ON the user needs to add the follow keywords in the bathymetry file (see - [[Bathymetry]]). Keyword EVOLUTION used to activate the ability of the [[Module GridData]] to write the bathymetry evolution in a [[HDF5]] file and read also from a [[HDF5]] (important for the hot start runs). The keyword EVOLUTION_FILE is used to define the [[HDF5]] filename. The keyword PROPERTY_NAME is used to associate a name to the bathymetry array to be stored in the [[HDF5]] file. &lt;br /&gt;
&lt;br /&gt;
 EVOLUTION      : 1&lt;br /&gt;
 EVOLUTION_FILE : MyModelBathymetryEvolution.hdf5&lt;br /&gt;
 PROPERTY_NAME  : Bathymetry&lt;br /&gt;
&lt;br /&gt;
Regarding keywords used to define boundary conditions, the keyword BOUNDARY is used to define the open boundary condition. The options are 1 (null gradient) and 2 (cyclic boundary - used in academic studies mainly). The keyword DISCHARGES is used to activate a set of sinks or sources of sediments (0 - OFF, 1 - ON). These sinks/sources of sediments are defined in the discharge_x.dat input file see [[Module Discharges]]. To define a set of sinks/sources of sediments see [[How to create discharges in MOHID]].&lt;br /&gt;
&lt;br /&gt;
 BOUNDARY : 1&lt;br /&gt;
&lt;br /&gt;
 DISCHARGES : 0&lt;br /&gt;
&lt;br /&gt;
The following keywords are used to define the sediments diameter. These are one of the main inputs of transport formulas. &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;beginD90&amp;gt;&lt;br /&gt;
 NAME                  : D90&lt;br /&gt;
 UNITS                 : m            &lt;br /&gt;
 DESCRIPTION           : Diameter below which 90 percent of the particles are finer&lt;br /&gt;
 FILE_IN_TIME          : ASCII_FILE            &lt;br /&gt;
 FILENAME              : D90Field.dat &lt;br /&gt;
 &amp;lt;endD90&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;beginD50&amp;gt;&lt;br /&gt;
 NAME                  : D50&lt;br /&gt;
 UNITS                 : m            &lt;br /&gt;
 DESCRIPTION           : Diameter below which 50 percent of the particles are finer&lt;br /&gt;
 FILE_IN_TIME          : ASCII_FILE            &lt;br /&gt;
 FILENAME              : D50Field.dat &lt;br /&gt;
 &amp;lt;endD50&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;beginD35&amp;gt;&lt;br /&gt;
 NAME                  : D35&lt;br /&gt;
 UNITS                 : m            &lt;br /&gt;
 DESCRIPTION           : Diameter below which 35 percent of the particles are finer&lt;br /&gt;
 FILE_IN_TIME          : ASCII_FILE            &lt;br /&gt;
 FILENAME              : D35Field.dat &lt;br /&gt;
 &amp;lt;endD35&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following keywords are used to define the sediments availability (bed rock concept). The SAND_MIN keyword is to define the limit (in meters) below which the transport stops to avoid sediment negative thicknesses.&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;beginrock&amp;gt;&lt;br /&gt;
 NAME                  : bed rock&lt;br /&gt;
 UNITS                 : m            &lt;br /&gt;
 DESCRIPTION           : Depth from sediment surface below which there is no sediment to be transported&lt;br /&gt;
 FILE_IN_TIME          : ASCII_FILE            &lt;br /&gt;
 FILENAME              : BedRock.dat&lt;br /&gt;
 &amp;lt;endrock&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 SAND_MIN : 0.01&lt;br /&gt;
&lt;br /&gt;
The field properties D90, D50, D35 and bed rock are defined using the options available in [[Module Fillmatrix]].&lt;br /&gt;
&lt;br /&gt;
== Advanced options ==&lt;br /&gt;
&lt;br /&gt;
The follow keywords are used to convert sediments from mass per sqaure meter in meters (POROSITY - porosity and DENS_SAND - sand density). &lt;br /&gt;
&lt;br /&gt;
 POROSITY : 0.1&lt;br /&gt;
 DENS_SAND : 2650.&lt;br /&gt;
&lt;br /&gt;
The follow keywords are used to smooth the solution. The transport formulas are highly non-linear and tend to generate very noisy solutions. Keyword - FILTER_SCHEME, options: No Filter (filter OFF), Modify Lax (filter ON). This filter distributes 50% of the bathymetry evolution in the adjecent cells. The keyword FILTER_RADIUS is used to define the radius (in number of cells) that is used to define the adjcent areas under the effect of sediment redistribution. &lt;br /&gt;
&lt;br /&gt;
 FILTER_SCHEME : No Filter&lt;br /&gt;
 FILTER_RADIUS : 4&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A factor to speed up morphodynamic processes. This factor must be use with caution. This factor multiplies by he transport loads&lt;br /&gt;
&lt;br /&gt;
 TRANSPORT_FACTOR : 1.&lt;br /&gt;
&lt;br /&gt;
The maximum limit for the bottom shear stress used in the Meyer Peter formula can be defined with the follow keyword:&lt;br /&gt;
&lt;br /&gt;
 TAU_MAX = 10.&lt;br /&gt;
&lt;br /&gt;
To help improve to model performance it was implemented the concept of lateral transport (SMOOTH_SLOP : 0 - OFF, 1 - ON). In this case is assumed when the bathymetry gradient perpendicular to the main bed load flow is above a critical slop (CRITICAL_SLOP) there is a flow in this direction. This bed load flow is equal to a percentage (FLUX_SLOP) of the main flow. This perpendicular bed load flow tend to smooth the slopes. This is important in river flows where the bathymetry gradients perpendicular to the main flow can be very steep. &lt;br /&gt;
&lt;br /&gt;
 SMOOTH_SLOP : 0&lt;br /&gt;
 CRITICAL_SLOP : 0.1&lt;br /&gt;
 FLUX_SLOP : 0.1&lt;br /&gt;
&lt;br /&gt;
== Outputs ==&lt;br /&gt;
The user in this module can output: time series of fields ([[HDF5]] files), time series in a point ([[Time Series]] ASCII files) and time series of integral results for an area ([[Boxes]] ASCII files).&lt;br /&gt;
&lt;br /&gt;
=== Boxes ===&lt;br /&gt;
&lt;br /&gt;
The user can compute the sediment fluxes between boxes (or areas).&lt;br /&gt;
&lt;br /&gt;
 BOXFLUXES : 1&lt;br /&gt;
&lt;br /&gt;
If the user wants to compute fluxes between areas needs to define a network of boxes following the ASCII MOHID format [[Boxes]].&lt;br /&gt;
&lt;br /&gt;
 BOX_FILENAME : Boxes.dat &lt;br /&gt;
&lt;br /&gt;
=== Time series ===&lt;br /&gt;
&lt;br /&gt;
The user can also do output of the most signifcant properties in a point related with bed load following the standard methodology used in the other MOHID modules (see [[Module TimeSerie]]).&lt;br /&gt;
&lt;br /&gt;
For example, if a user wants to activate the output time series option needs to add to the input file (Sand_x.dat) the follow keyword:&lt;br /&gt;
&lt;br /&gt;
  TIME_SERIES : 1&lt;br /&gt;
&lt;br /&gt;
=== Maps (HDF5 format) ===&lt;br /&gt;
&lt;br /&gt;
The user can also do output of the most signifcant properties fields related with bed load following the standard methodology used in the other MOHID modules (see [[OUTPUT TIME]]).&lt;br /&gt;
&lt;br /&gt;
For example, if a user wants field results every hour starting from the beginning of the run it needs to define the follow (time is seconds).&lt;br /&gt;
&lt;br /&gt;
  OUTPUT_TIME : 0. 3600.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
AHMED, S. M., SATO, S. (2003); A sheetflow transport model for asymmetric oscillatory flows. Part I: Uniform grain size sediments; Coastal Engineering Journal 45, 321-337.&lt;br /&gt;
&lt;br /&gt;
ACKERS, P.; WHITE, W.R. (1973); &amp;quot;Sediment Transport: New Approach and Analysis&amp;quot;. Journal of the Hydraulics Division (ASCE) 99 (11): 2041–2060.&lt;br /&gt;
&lt;br /&gt;
AL SALEM, A. (1993); Sediment transport in oscilatory boundary layers under sheet flow conditions; PhD thesis, Delft Hydraulics, The Netherlands.&lt;br /&gt;
&lt;br /&gt;
BAGNOLD, R. (1966); An approach of sediment transport model from general physics; US Geol. Survey Prof. Paper 422-I.&lt;br /&gt;
&lt;br /&gt;
BAILARD, J. A. (1984); A simplified model for longshore sediment transport. Proceedings of the 19th Coastal Engineering Conference, pp. 1454– 1470.&lt;br /&gt;
&lt;br /&gt;
BAILARD, J. A., INMAN, D. L. (1981); An energetics bedload model for plane sloping beach: local transport. Journal of Geophysical Research 86 (C3), 2035– 2043.&lt;br /&gt;
&lt;br /&gt;
BAYRAM, A., LARSON, M., MILLER, H., KRAUS, N. (2001); Cross-shore distribution of longshore sediment transport: comparison between predictive formulas and field measurements; Coastal Engineering Journal 44, 79– 99.&lt;br /&gt;
&lt;br /&gt;
BIJKER, E. (1968); Littoral drift as function of waves and current; 11th Coastal Eng. Conf. Proc. ASCE; London, UK; pp. 415–435.&lt;br /&gt;
&lt;br /&gt;
CAMENEN, B., LARROUDÉ, P. (2003); Comparison of sediment transport formulae for the coastal environment; Coastal Engineering 48, 111– 132.&lt;br /&gt;
&lt;br /&gt;
DIBAJNIA, M., WATANABE, A. (1992); Sheet flow under nonlinear waves and currents. Coastal Engineering Journal, 2015– 2029.&lt;br /&gt;
&lt;br /&gt;
DU BOYS, P. (1879); Le rhône et les rivières à lit affouillable; Ann; Ponts Chaussées 18 (5), 171– 195.&lt;br /&gt;
&lt;br /&gt;
FERNANDES, L. (2001); Transporte de Poluentes em Estuários; Trabalho Final de Curso da Licenciatura em Engenharia do Ambiente; Instituto Superior Técnico, Universidade Técnica de Lisboa.&lt;br /&gt;
&lt;br /&gt;
FRIJLINK, H. (1952); Discussion des formules de débit solide de Kalinske, Einstein et Meyer-Peter and Muller compte tenue des mesures récentes de transport dans les rivières néerlandaises; 2nd Journal Hydraulique; Société Hydraulique de France, pp. 98– 103.&lt;br /&gt;
&lt;br /&gt;
KOMAR, P. D. (1998); Beach processes and sedimentation; 2nd Ed.; Pearson Education, New Jersey.&lt;br /&gt;
&lt;br /&gt;
LEITÃO, P.C. (2002); Integração de Escalas e de Processos na Modelação do Ambiente Marinho; Dissertação para a obtenção do grau de Doutor em Engenharia do Ambiente; Instituto Superior Técnico, Universidade Técnica de Lisboa.&lt;br /&gt;
&lt;br /&gt;
LIU, Z. (2001); Sediment Transport; Instituttet for Vand, Jord og Miljøteknik; Aalborg Universitet.&lt;br /&gt;
&lt;br /&gt;
MEYER-PETER, E; MULLER, R. (1948); Formulas for bed-load transport. Proceedings of the 2nd Meeting of the International Association for Hydraulic Structures Research. pp. 39–64.&lt;br /&gt;
&lt;br /&gt;
SANCHO, F. (2002); Apontamentos da disciplina de Processos Fluviais e Costeiros, Mestrado em Hidráulica, Recursos Hídricos e Ambiente; Faculdade de Ciências e Tecnologia da Universidade de Coimbra.&lt;br /&gt;
&lt;br /&gt;
SILVA*, A., NEVES**, R., LEITÃO, J.C. (1997); Modelação de Processos de Transporte por Acção Combinada de Ondas e Correntes; *HIDROMOD - Modelação em Engª, Ldª; **Instituto Superior Técnico; Lisboa.&lt;br /&gt;
&lt;br /&gt;
SMITH, J., SHERLOCK, A., RESIO, D. (2001); STWAVE: Steady-State Spectral Wave Model. User’s Manual for STWAVE, Version 3.0; ERDC/CHL, US Army Corps of Engineers; Washington, DC.&lt;br /&gt;
&lt;br /&gt;
TRANCOSO, A. R. (2002); Modelling Macroalgae in Estuaries; Trabalho Final de Curso da Licenciatura em Engenharia do Ambiente; Instituto Superior Técnico, Universidade Técnica de Lisboa.&lt;br /&gt;
&lt;br /&gt;
VAN RIJN, L.C. (1984); Sediment transport: Part I: Bed load transport; Part II: Suspended load transport; Part III: Bed forms and alluvial roughness. Journal of Hydraulic Division 110 (10), 1431– 1456; 110 (11) 1613– 1641; 110 (12) 1733-1754.&lt;br /&gt;
&lt;br /&gt;
VAN RIJN, L.C. (1993); Principles of sediment transport in rivers, estuaries and coastal seas. Aqua Publication, The Netherlands, Amsterdam.&lt;br /&gt;
&lt;br /&gt;
WANG, P., EBERSOLE B., SMITH E. (2002); Longshore Sand Transport – Initial Results from Large-Scale Sediment Transport Facility; ERDC/CHL, US Army Corps of Engineers, Washington, DC.&lt;br /&gt;
&lt;br /&gt;
WINTER, C. (2004); Perfomance of sediment transport models in tidal environments, Workshop HWK, Delmenhorst.&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;br /&gt;
[[Category:MOHID Water]]&lt;/div&gt;</summary>
		<author><name>Luisfernandes</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_Sand&amp;diff=4437</id>
		<title>Module Sand</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_Sand&amp;diff=4437"/>
				<updated>2011-03-08T11:48:36Z</updated>
		
		<summary type="html">&lt;p&gt;Luisfernandes: /* Overview */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
Module Sand was the result of the accumulated experience gain by Hidromod in the framework of many engineering projects. Many of the projects were done with a old MOHID version programmed in F77. More recently Hidromod develop a new Module using the present [[Mohid Programming]] philosophy. The concepts of this module were described an tested in detail by Carmo (2005) see [http://www.mohid.com/PublicData/products/Thesis/TFC_miguelcarmo.pdf]. However, if the user wants to know exactly what this module is doing it can take a look at the source code (see - [http://mohid.codeplex.com/SourceControl/changeset/view/63225#1208126]).&lt;br /&gt;
=== Algorithm  ===&lt;br /&gt;
From a conceptual point of view this module is very simple. The bed load fluxes are computed in a Arakawa-C grid [http://en.wikipedia.org/wiki/Arakawa_grids#Arakawa_C-grid]. In each centre cell (Z point) the transport flow is computes. In order to compute the transport flows the user can choose from a set of formulations presented below. In a second step the Zonal (or X) component flows are interpolated to the U points and the meridional (or Y) components are interpolated to the V points. &lt;br /&gt;
Finally to estimate the evolution of the sand thickness in the centre cell (Z point) a mass balance is done. The availability of sand in a cell is limited by the depth of the bed rock. &lt;br /&gt;
&lt;br /&gt;
=== Transport formulas implemented ===&lt;br /&gt;
&lt;br /&gt;
In this section the transport formulas implemented in the MOHID system are enumerated. Based in the characteristics of the formulas and  Hidromod experience the formulas can be divided by area of application:&lt;br /&gt;
&lt;br /&gt;
'''Rivers'''&lt;br /&gt;
&lt;br /&gt;
Meyer-Peter, E; Müller, R. (1948)&lt;br /&gt;
&lt;br /&gt;
'''Estuaries''' &lt;br /&gt;
&lt;br /&gt;
Ackers and White (1973)&lt;br /&gt;
&lt;br /&gt;
'''Coastal areas'''&lt;br /&gt;
&lt;br /&gt;
Bijker-Battachraya (1968)&lt;br /&gt;
Van Rijn (1984, 1993)&lt;br /&gt;
Bailard (1981,1984)&lt;br /&gt;
Dibajnia (1992)&lt;br /&gt;
&lt;br /&gt;
== Main options ==&lt;br /&gt;
In this section it is briefly described the options available in Module Sand. The different options provided by the module can be defined through an input data file, similarly to other MOHID modules. The name of the Module Sand for run number x is Sand_x.dat (see [[Mohid GUI]])&lt;br /&gt;
&lt;br /&gt;
Keyword TRANSPORT_METHOD  is used to choose from the list presented above the transport formula the user wants to test. The options are: no transport, MeyerPeter, Ackers, VanRijn1, VanRijn2, Bailard, Dibajnia, Bijker. Keyword SAND_DT is the time step used to compute the transport formula by default is equal to the global model time step (see - [[Choose the model time step]]). The keyword OLD (0 - OFF; 1 - ON) is ON when the user wants to do a hot start (OFF - cold start).  &lt;br /&gt;
&lt;br /&gt;
 TRANSPORT_METHOD : MeyerPeter&lt;br /&gt;
 SAND_DT          : 60.&lt;br /&gt;
 OLD              : 0&lt;br /&gt;
&lt;br /&gt;
The user can choose if the compute bed loads change or not the bathymetry and consequently the hydrodynamics. If the user wants to take in consideration the effect of bathymetry changes in the other Mohid modules than BATHYM_EVOLUTION : 1. The keyword BATIM_DT is used to define the frequency of actualization of the model bathymetry by default is equal to the global model time step (see - [[Choose the model time step]]).&lt;br /&gt;
&lt;br /&gt;
 BATHYM_EVOLUTION : 1 &lt;br /&gt;
 BATIM_DT         : 60.&lt;br /&gt;
&lt;br /&gt;
If the bathymetry evolution option is ON the user needs to add the follow keywords in the bathymetry file (see - [[Bathymetry]]). Keyword EVOLUTION used to activate the ability of the [[Module GridData]] to write the bathymetry evolution in a [[HDF5]] file and read also from a [[HDF5]] (important for the hot start runs). The keyword EVOLUTION_FILE is used to define the [[HDF5]] filename. The keyword PROPERTY_NAME is used to associate a name to the bathymetry matrixes to be store in the [[HDF5]] file. &lt;br /&gt;
&lt;br /&gt;
 EVOLUTION      : 1&lt;br /&gt;
 EVOLUTION_FILE : MyModelBathymetryEvolution.hdf5&lt;br /&gt;
 PROPERTY_NAME  : Bathymetry&lt;br /&gt;
&lt;br /&gt;
Keywords to define the boundary condtions. The keyword BOUNDARY is used to define the open boundary condition. The options are 1 (null gradient)and 2 (cyclic boundary - used in academic studies mainly). The keyword DISCHARGES is use to activate a set of sinks or sources of sediments (0 - OFF, 1 - ON). These sikns/sources of sediments are define in the discharge_x.dat input file see [[Module Discharges]]. To define a set of sinks/sources of sediments see [[How to create discharges in MOHID]].&lt;br /&gt;
&lt;br /&gt;
 BOUNDARY : 1&lt;br /&gt;
&lt;br /&gt;
 DISCHARGES : 0&lt;br /&gt;
&lt;br /&gt;
The follow keywords are used to define the sediments diameter. This are one of the main inputs of transport formulas. &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;beginD90&amp;gt;&lt;br /&gt;
 NAME                  : D90&lt;br /&gt;
 UNITS                 : m            &lt;br /&gt;
 DESCRIPTION           : Diameter below which 90 percent of the particles are finer&lt;br /&gt;
 FILE_IN_TIME          : ASCII_FILE            &lt;br /&gt;
 FILENAME              : D90Field.dat &lt;br /&gt;
 &amp;lt;endD90&amp;gt;&lt;br /&gt;
 &amp;lt;beginD50&amp;gt;&lt;br /&gt;
 NAME                  : D50&lt;br /&gt;
 UNITS                 : m            &lt;br /&gt;
 DESCRIPTION           : Diameter below which 50 percent of the particles are finer&lt;br /&gt;
 FILE_IN_TIME          : ASCII_FILE            &lt;br /&gt;
 FILENAME              : D50Field.dat &lt;br /&gt;
 &amp;lt;endD50&amp;gt;&lt;br /&gt;
 &amp;lt;beginD35&amp;gt;&lt;br /&gt;
 NAME                  : D35&lt;br /&gt;
 UNITS                 : m            &lt;br /&gt;
 DESCRIPTION           : Diameter below which 35 percent of the particles are finer&lt;br /&gt;
 FILE_IN_TIME          : ASCII_FILE            &lt;br /&gt;
 FILENAME              : D35Field.dat &lt;br /&gt;
 &amp;lt;endD35&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The follow keywords are used to define the sediments availability (bed rock concept). The SAND_MIN keyword is to define the limit (in meters) below which the transport stops to avoid sediment negative thicknesses.&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;beginrock&amp;gt;&lt;br /&gt;
 NAME                  : bed rock&lt;br /&gt;
 UNITS                 : m            &lt;br /&gt;
 DESCRIPTION           : Depth from sediment surface below which there is no sediment to be transported&lt;br /&gt;
 FILE_IN_TIME          : ASCII_FILE            &lt;br /&gt;
 FILENAME              : BedRock.dat&lt;br /&gt;
 &amp;lt;endrock&amp;gt;&lt;br /&gt;
 SAND_MIN : 0.01&lt;br /&gt;
&lt;br /&gt;
The field properties D90, D50, D35 and bed rock are defined using the options available in [[Module Fillmatrix]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Advanced options ==&lt;br /&gt;
&lt;br /&gt;
The follow keywords are used to convert sediments from mass per sqaure meter in meters (POROSITY - porosity and DENS_SAND - sand density). &lt;br /&gt;
&lt;br /&gt;
 POROSITY : 0.1&lt;br /&gt;
 DENS_SAND : 2650.&lt;br /&gt;
&lt;br /&gt;
The follow keywords are used to smooth the solution. The transport formulas are highly non-linear and tend to generate very noisy solutions. Keyword - FILTER_SCHEME, options: No Filter (filter OFF), Modify Lax (filter ON). This filter distributes 50% of the bathymetry evolution in the adjecent cells. The keyword FILTER_RADIUS is used to define the radius (in number of cells) that is used to define the adjcent areas under the effect of sediment redistribution. &lt;br /&gt;
&lt;br /&gt;
 FILTER_SCHEME : No Filter&lt;br /&gt;
 FILTER_RADIUS : 4&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A factor to speed up morphodynamic processes. This factor must be use with caution. This factor multiplies by he transport loads&lt;br /&gt;
&lt;br /&gt;
 TRANSPORT_FACTOR : 1.&lt;br /&gt;
&lt;br /&gt;
The maximum limit for the bottom shear stress used in the Meyer Peter formula can be defined with the follow keyword:&lt;br /&gt;
&lt;br /&gt;
 TAU_MAX = 10.&lt;br /&gt;
&lt;br /&gt;
To help improve to model performance it was implemented the concept of lateral transport (SMOOTH_SLOP : 0 - OFF, 1 - ON). In this case is assumed when the bathymetry gradient perpendicular to the main bed load flow is above a critical slop (CRITICAL_SLOP) there is a flow in this direction. This bed load flow is equal to a percentage (FLUX_SLOP) of the main flow. This perpendicular bed load flow tend to smooth the slopes. This is important in river flows where the bathymetry gradients perpendicular to the main flow can be very steep. &lt;br /&gt;
&lt;br /&gt;
 SMOOTH_SLOP : 0&lt;br /&gt;
 CRITICAL_SLOP : 0.1&lt;br /&gt;
 FLUX_SLOP : 0.1&lt;br /&gt;
&lt;br /&gt;
== Outputs ==&lt;br /&gt;
The user in this module can output: time series of fields ([[HDF5]] files), time series in a point ([[Time Series]] ASCII files) and time series of integral results for an area ([[Boxes]] ASCII files).&lt;br /&gt;
&lt;br /&gt;
=== Boxes ===&lt;br /&gt;
&lt;br /&gt;
The user can compute the sediment fluxes between boxes (or areas).&lt;br /&gt;
&lt;br /&gt;
 BOXFLUXES : 1&lt;br /&gt;
&lt;br /&gt;
If the user wants to compute fluxes between areas needs to define a network of boxes following the ASCII MOHID format [[Boxes]].&lt;br /&gt;
&lt;br /&gt;
 BOX_FILENAME : Boxes.dat &lt;br /&gt;
&lt;br /&gt;
=== Time series ===&lt;br /&gt;
&lt;br /&gt;
The user can also do output of the most signifcant properties in a point related with bed load following the standard methodology used in the other MOHID modules (see [[Module TimeSerie]]).&lt;br /&gt;
&lt;br /&gt;
For example, if a user wants to activate the output time series option needs to add to the input file (Sand_x.dat) the follow keyword:&lt;br /&gt;
&lt;br /&gt;
  TIME_SERIES : 1&lt;br /&gt;
&lt;br /&gt;
=== Maps (HDF5 format) ===&lt;br /&gt;
&lt;br /&gt;
The user can also do output of the most signifcant properties fields related with bed load following the standard methodology used in the other MOHID modules (see [[OUTPUT TIME]]).&lt;br /&gt;
&lt;br /&gt;
For example, if a user wants field results every hour starting from the beginning of the run it needs to define the follow (time is seconds).&lt;br /&gt;
&lt;br /&gt;
  OUTPUT_TIME : 0. 3600.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
AHMED, S. M., SATO, S. (2003); A sheetflow transport model for asymmetric oscillatory flows. Part I: Uniform grain size sediments; Coastal Engineering Journal 45, 321-337.&lt;br /&gt;
&lt;br /&gt;
ACKERS, P.; WHITE, W.R. (1973); &amp;quot;Sediment Transport: New Approach and Analysis&amp;quot;. Journal of the Hydraulics Division (ASCE) 99 (11): 2041–2060.&lt;br /&gt;
&lt;br /&gt;
AL SALEM, A. (1993); Sediment transport in oscilatory boundary layers under sheet flow conditions; PhD thesis, Delft Hydraulics, The Netherlands.&lt;br /&gt;
&lt;br /&gt;
BAGNOLD, R. (1966); An approach of sediment transport model from general physics; US Geol. Survey Prof. Paper 422-I.&lt;br /&gt;
&lt;br /&gt;
BAILARD, J. A. (1984); A simplified model for longshore sediment transport. Proceedings of the 19th Coastal Engineering Conference, pp. 1454– 1470.&lt;br /&gt;
&lt;br /&gt;
BAILARD, J. A., INMAN, D. L. (1981); An energetics bedload model for plane sloping beach: local transport. Journal of Geophysical Research 86 (C3), 2035– 2043.&lt;br /&gt;
&lt;br /&gt;
BAYRAM, A., LARSON, M., MILLER, H., KRAUS, N. (2001); Cross-shore distribution of longshore sediment transport: comparison between predictive formulas and field measurements; Coastal Engineering Journal 44, 79– 99.&lt;br /&gt;
&lt;br /&gt;
BIJKER, E. (1968); Littoral drift as function of waves and current; 11th Coastal Eng. Conf. Proc. ASCE; London, UK; pp. 415–435.&lt;br /&gt;
&lt;br /&gt;
CAMENEN, B., LARROUDÉ, P. (2003); Comparison of sediment transport formulae for the coastal environment; Coastal Engineering 48, 111– 132.&lt;br /&gt;
&lt;br /&gt;
DIBAJNIA, M., WATANABE, A. (1992); Sheet flow under nonlinear waves and currents. Coastal Engineering Journal, 2015– 2029.&lt;br /&gt;
&lt;br /&gt;
DU BOYS, P. (1879); Le rhône et les rivières à lit affouillable; Ann; Ponts Chaussées 18 (5), 171– 195.&lt;br /&gt;
&lt;br /&gt;
FERNANDES, L. (2001); Transporte de Poluentes em Estuários; Trabalho Final de Curso da Licenciatura em Engenharia do Ambiente; Instituto Superior Técnico, Universidade Técnica de Lisboa.&lt;br /&gt;
&lt;br /&gt;
FRIJLINK, H. (1952); Discussion des formules de débit solide de Kalinske, Einstein et Meyer-Peter and Muller compte tenue des mesures récentes de transport dans les rivières néerlandaises; 2nd Journal Hydraulique; Société Hydraulique de France, pp. 98– 103.&lt;br /&gt;
&lt;br /&gt;
KOMAR, P. D. (1998); Beach processes and sedimentation; 2nd Ed.; Pearson Education, New Jersey.&lt;br /&gt;
&lt;br /&gt;
LEITÃO, P.C. (2002); Integração de Escalas e de Processos na Modelação do Ambiente Marinho; Dissertação para a obtenção do grau de Doutor em Engenharia do Ambiente; Instituto Superior Técnico, Universidade Técnica de Lisboa.&lt;br /&gt;
&lt;br /&gt;
LIU, Z. (2001); Sediment Transport; Instituttet for Vand, Jord og Miljøteknik; Aalborg Universitet.&lt;br /&gt;
&lt;br /&gt;
MEYER-PETER, E; MULLER, R. (1948); Formulas for bed-load transport. Proceedings of the 2nd Meeting of the International Association for Hydraulic Structures Research. pp. 39–64.&lt;br /&gt;
&lt;br /&gt;
SANCHO, F. (2002); Apontamentos da disciplina de Processos Fluviais e Costeiros, Mestrado em Hidráulica, Recursos Hídricos e Ambiente; Faculdade de Ciências e Tecnologia da Universidade de Coimbra.&lt;br /&gt;
&lt;br /&gt;
SILVA*, A., NEVES**, R., LEITÃO, J.C. (1997); Modelação de Processos de Transporte por Acção Combinada de Ondas e Correntes; *HIDROMOD - Modelação em Engª, Ldª; **Instituto Superior Técnico; Lisboa.&lt;br /&gt;
&lt;br /&gt;
SMITH, J., SHERLOCK, A., RESIO, D. (2001); STWAVE: Steady-State Spectral Wave Model. User’s Manual for STWAVE, Version 3.0; ERDC/CHL, US Army Corps of Engineers; Washington, DC.&lt;br /&gt;
&lt;br /&gt;
TRANCOSO, A. R. (2002); Modelling Macroalgae in Estuaries; Trabalho Final de Curso da Licenciatura em Engenharia do Ambiente; Instituto Superior Técnico, Universidade Técnica de Lisboa.&lt;br /&gt;
&lt;br /&gt;
VAN RIJN, L.C. (1984); Sediment transport: Part I: Bed load transport; Part II: Suspended load transport; Part III: Bed forms and alluvial roughness. Journal of Hydraulic Division 110 (10), 1431– 1456; 110 (11) 1613– 1641; 110 (12) 1733-1754.&lt;br /&gt;
&lt;br /&gt;
VAN RIJN, L.C. (1993); Principles of sediment transport in rivers, estuaries and coastal seas. Aqua Publication, The Netherlands, Amsterdam.&lt;br /&gt;
&lt;br /&gt;
WANG, P., EBERSOLE B., SMITH E. (2002); Longshore Sand Transport – Initial Results from Large-Scale Sediment Transport Facility; ERDC/CHL, US Army Corps of Engineers, Washington, DC.&lt;br /&gt;
&lt;br /&gt;
WINTER, C. (2004); Perfomance of sediment transport models in tidal environments, Workshop HWK, Delmenhorst.&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;br /&gt;
[[Category:MOHID Water]]&lt;/div&gt;</summary>
		<author><name>Luisfernandes</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Grid&amp;diff=2467</id>
		<title>Grid</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Grid&amp;diff=2467"/>
				<updated>2009-09-21T15:03:16Z</updated>
		
		<summary type="html">&lt;p&gt;Luisfernandes: /* Header Section */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
A grid in Mohid is stored in an ASCII text file and is directly handled by [[Module HorizontalGrid]]. The organization of this file is divided into a header section, and a grid spacing section. &lt;br /&gt;
&lt;br /&gt;
Mohid supports orthogonal horizontal grids, which can be [[rectangular]] or [[curvilinear]]. Grid files can be created manually or automatically via [[MohidGIS#Create_New_Data_Items|MOHID GIS]] or via the [[GenerateGrid]] tool. The default extension for Grid files in [[MohidGIS]] is '''*.grd'''.&lt;br /&gt;
&lt;br /&gt;
[[Image:grids.png|425px|thumb|center|'''Types of grids supported by MOHID''']]&lt;br /&gt;
&lt;br /&gt;
Note that in MOHID the '''i''' index refers to the YY axis and the '''j''' index to the XX axis. For example grid cell (5, 2) is the fifth grid cell in the YY axis and the second in the XX axis.&lt;br /&gt;
&lt;br /&gt;
== Header Section ==&lt;br /&gt;
&lt;br /&gt;
The header section contains information related to the grid global definitions, such as the number of cells, the type of coordinate used, the origin coordinates of the grid, etc. Below are shown the [[keywords]] supported in the header section of a Grid file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px blue; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
*'''ILB_IUB''' - Two integer numbers defining the '''minimum''' and '''maximum''' '''I''' values along the Y-axis of the grid.&lt;br /&gt;
*'''JLB_JUB''' - Two integer numbers defining the '''minimum''' and '''maximum''' '''J''' values along the X-axis of the grid.&lt;br /&gt;
*'''COORD_TIP''' - A flag which indicates the used [[coordinates type]]. &lt;br /&gt;
*'''ORIGIN''' - Two real values, which indicate the origin of the lower left corner of the grid. &lt;br /&gt;
*'''ZONE''' - Integer values defining the UTM Zone where the bathymetry is located.&lt;br /&gt;
*'''GRID_ANGLE''' - Counter-clock mesh rotation relative to the north. The base point is the origin of the grid.&lt;br /&gt;
*'''LATITUDE''' - Average latitude value used to compute [[Coriolis frequency]] and [[Module_Atmosphere#Solar_radiation|solar radiation]] when metric coordinates cannot be converted to WGS84 [[geographic coordinates]]. &lt;br /&gt;
*'''LONGITUDE''' - Average longitude value used to compute [[Coriolis frequency]] and [[Module_Atmosphere#Solar_radiation|solar radiation]] when metric coordinates cannot be converted to WGS84 [[geographic coordinates]]. &lt;br /&gt;
*'''CONSTANT_SPACING_X''' - Boolean defining if the spacing in the X axis is constant&lt;br /&gt;
*'''CONSTANT_SPACING_Y''' - Boolean defining if the spacing in the Y axis is constant&lt;br /&gt;
*'''DX''' - Constant spacing distance in XX axis&lt;br /&gt;
*'''DY''' - Constant spacing distance in YY axis&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Grid Spacing Section ==&lt;br /&gt;
The grid spacing section contains information about the grid spacing in the XX and YY axis, if the spacing is not constant, namely through defining the grid cells corners coordinates. &lt;br /&gt;
&lt;br /&gt;
=== Rectangular grids ===&lt;br /&gt;
The information is stored in [[blocks]], one for each direction. The data is stored inside a block defined by the following keywords: '''&amp;lt;BeginXX&amp;gt;''' and '''&amp;lt;EndXX&amp;gt;''' for the XX axis and '''&amp;lt;BeginYY&amp;gt;''' and '''&amp;lt;EndYY&amp;gt;''' for the YY axis. Note that these block definition tags are case sensitive. Each value must be stored in a single line.&lt;br /&gt;
&lt;br /&gt;
Note that if, for example, a grid has 100x100 grid cells, there should be 101 XX values and 101 YY values. &lt;br /&gt;
&lt;br /&gt;
The values are read from left to right corner in the XX axis and from bottom to top in the YY axis. The first value is always zero in both directions, being the following values cumulative.&lt;br /&gt;
&lt;br /&gt;
=== Curvilinear grids ===&lt;br /&gt;
When defining a curvilinear grid, the information is stored in only one [[block]] defined by the following keywords: '''&amp;lt;CornersXY&amp;gt;''' and '''&amp;lt;\CornersXY&amp;gt; '''. This block contains two columns with the XX and YY coordinates of each grid cell corner. Each set of XX and YY values must be stored in a single line.&lt;br /&gt;
&lt;br /&gt;
The values are read from left to right corner in the XX axis and from bottom to top in the YY axis. The first value is always zero in both directions, being the following values cumulative.&lt;br /&gt;
&lt;br /&gt;
== Sample Grid File ==&lt;br /&gt;
&lt;br /&gt;
 ILB_IUB         :  1   52&lt;br /&gt;
 JLB_JUB         :  1   19&lt;br /&gt;
 ORIGIN          : -9.0 39.0&lt;br /&gt;
 GRID_ANGLE      :  0.0&lt;br /&gt;
 COORD_TIP       : 5 &lt;br /&gt;
 &amp;lt;BeginXX&amp;gt;&lt;br /&gt;
  0.0000000&lt;br /&gt;
  0.1052632    &lt;br /&gt;
  0.2105263    &lt;br /&gt;
  0.3157895    &lt;br /&gt;
  0.4210526    &lt;br /&gt;
  0.5263158    &lt;br /&gt;
  0.6315790    &lt;br /&gt;
  0.7368422    &lt;br /&gt;
  0.8421053    &lt;br /&gt;
  0.9473685    &lt;br /&gt;
   1.052632    &lt;br /&gt;
   1.157895    &lt;br /&gt;
   1.263158    &lt;br /&gt;
   1.368421    &lt;br /&gt;
   1.473684    &lt;br /&gt;
   1.578947    &lt;br /&gt;
   1.684210    &lt;br /&gt;
   1.789473    &lt;br /&gt;
   1.894737    &lt;br /&gt;
   2.000000    &lt;br /&gt;
 &amp;lt;EndXX&amp;gt;&lt;br /&gt;
 &amp;lt;BeginYY&amp;gt;&lt;br /&gt;
  0.0000000&lt;br /&gt;
  0.0996386&lt;br /&gt;
  0.1945154    &lt;br /&gt;
  0.2848571    &lt;br /&gt;
  0.3708795    &lt;br /&gt;
  0.4527884    &lt;br /&gt;
  0.5307797    &lt;br /&gt;
  0.6050400    &lt;br /&gt;
  0.6757467    &lt;br /&gt;
  0.7430694    &lt;br /&gt;
  0.8071689    &lt;br /&gt;
  0.8681989    &lt;br /&gt;
  0.9263055    &lt;br /&gt;
  0.9816279    &lt;br /&gt;
   1.034299    &lt;br /&gt;
   1.084444    &lt;br /&gt;
   1.132185    &lt;br /&gt;
   1.177634    &lt;br /&gt;
   1.220903    &lt;br /&gt;
   1.262094    &lt;br /&gt;
   1.301306    &lt;br /&gt;
   1.338633    &lt;br /&gt;
   1.374166    &lt;br /&gt;
   1.407990    &lt;br /&gt;
   1.440186    &lt;br /&gt;
   1.470831    &lt;br /&gt;
   1.500000    &lt;br /&gt;
   1.529169    &lt;br /&gt;
   1.559814    &lt;br /&gt;
   1.592010    &lt;br /&gt;
   1.625834    &lt;br /&gt;
   1.661367    &lt;br /&gt;
   1.698694    &lt;br /&gt;
   1.737906    &lt;br /&gt;
   1.779097    &lt;br /&gt;
   1.822366    &lt;br /&gt;
   1.867815    &lt;br /&gt;
   1.915556    &lt;br /&gt;
   1.965701    &lt;br /&gt;
   2.018372    &lt;br /&gt;
   2.073694    &lt;br /&gt;
   2.131801    &lt;br /&gt;
   2.192831    &lt;br /&gt;
   2.256931    &lt;br /&gt;
   2.324253    &lt;br /&gt;
   2.394960    &lt;br /&gt;
   2.469220    &lt;br /&gt;
   2.547212    &lt;br /&gt;
   2.629121    &lt;br /&gt;
   2.715143    &lt;br /&gt;
   2.805485    &lt;br /&gt;
   2.900361    &lt;br /&gt;
   3.000000    &lt;br /&gt;
 &amp;lt;EndYY&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
*[[GenerateGrid|Generate Grid Tool]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Input Data Formats]]&lt;/div&gt;</summary>
		<author><name>Luisfernandes</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Mohid_GIS&amp;diff=2406</id>
		<title>Mohid GIS</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Mohid_GIS&amp;diff=2406"/>
				<updated>2009-09-16T15:54:13Z</updated>
		
		<summary type="html">&lt;p&gt;Luisfernandes: /* Using the Animators */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
Mohid GIS is a [http://en.wikipedia.org/wiki/Gis geographical information system] specifically designed to support [[Mohid Water Modelling System]] which handles spatial and temporal variable data required or produces by the MOHID numerical programs. It allows to load and to visualize data stored in different formats:&lt;br /&gt;
*'''MOHID Data Files''' – files which contain geographical information like [[XYZ points|points]], [[lines]], [[polygons]], [[grids]], etc formatted in a proper way. All these files are ASCII files;&lt;br /&gt;
*'''ESRI Shape Files''' – files which are the used by the ESRI ArcView software;&lt;br /&gt;
*'''MOHID HDF5 Files''' – files written in standard [[HDF5]], but with some special data sets which contain spatial and temporal information.&lt;br /&gt;
[[Image:MohidGIS.jpg|425px|thumb|center|'''MOHID GIS interface''']]&lt;br /&gt;
The main window of MOHID GIS (above image ''''MOHID GIS interface'''') has one main menu and a client area where the child windows are located. A child window is divided into two areas: (i) a list view docked to the left border of the window and (ii) the display area, which occupies the rest of the window, where the information is displayed.&lt;br /&gt;
&lt;br /&gt;
== Concepts == &lt;br /&gt;
&lt;br /&gt;
=== Data Items ===&lt;br /&gt;
A data item is set of single data entities. Data items can be off different types:&lt;br /&gt;
*[[XYZ Points|Points]] – a set of XYZ points with optional name, stored in MOHID internal data format;&lt;br /&gt;
*[[Polygons]] – a set of polygons, without holes, stored in MOHID internal data format;&lt;br /&gt;
*[[Lines]] – a set of lines, stored in MOHID internal data format;&lt;br /&gt;
*[[Grids]] – a file which defines a grid, as used by MOHID numerical programs;&lt;br /&gt;
*[[Grid Data]] – a file which defines a grid and the respective center cell values, as used by MOHID numerical programs;&lt;br /&gt;
*[[Background Image]] – an ASCII file which indicates the path to an image to be displayed and its geo-reference settings;&lt;br /&gt;
*[[Drainage Network]] - a file which defines a drainage network, as used by MOHID numerical programs;&lt;br /&gt;
*[[River Cross Sections]] - a file which defines river cross sections, as used by MOHID numerical programs;&lt;br /&gt;
*[[Time Series]] – a file which contains a time series, as used by MOHID numerical programs.&lt;br /&gt;
*[[HDF5 File]] – a file written in HDF5, but with some special data sets which contain spatial and temporal information;&lt;br /&gt;
*[[ESRI Shapefile]] – any valid ESRI Shapefile, containing points, multi points, lines, multi lines, polygons or multi polygons.&lt;br /&gt;
The first nine data items are files written in the so called MOHID internal data format, while the HDF 5 files and the ESRI Shapefiles are written in other formats.&lt;br /&gt;
&lt;br /&gt;
=== Display List ===&lt;br /&gt;
&lt;br /&gt;
=== View === &lt;br /&gt;
&lt;br /&gt;
== Step by Step ==&lt;br /&gt;
&lt;br /&gt;
=== Creating a Project ===&lt;br /&gt;
To create a new project, MOHID GIS must be started by selecting Start -&amp;gt; Programs -&amp;gt; Mohid -&amp;gt; MOHID GIS. '''An empty window of MOHID GIS''' (image below) will appear.&lt;br /&gt;
[[Image:EmpptyMohidGIS.small.jpg|425px|thumb|center|'''An empty window of MOHID GIS''']]&lt;br /&gt;
A new project can be created by selecting File -&amp;gt; New -&amp;gt; Project… from MOHID GIS’s main menu. A dialog box will appear where one has to specify location and name of the project file (extension should be *.mgp). After closing the dialog box, MOHID GIS adds automatically a new XY View to the project and the main menu activates.&lt;br /&gt;
&lt;br /&gt;
=== Adding a View ===&lt;br /&gt;
To add further views to the project, one has to select File -&amp;gt; New -&amp;gt; XY View… or File -&amp;gt; New -&amp;gt; 3D View… from MOHID GIS’s main menu.&lt;br /&gt;
&lt;br /&gt;
=== Adding Data Items ===&lt;br /&gt;
To add a new data item to a view, one has to activate first the view where the new data item is to be added to. Afterwards, by selecting Data Items -&amp;gt; Add… from MOHID GIS’s main menu a dialog box appears, that enables to specify the type and location of the data item to be added, as shown in image below ''''Adding an existing Data Item''''. Multiple data items of the same kind can be added at the same time.&lt;br /&gt;
[[Image:addDataItems.medium.jpg|425px|thumb|center|'''Adding an existing Data Item''']]&lt;br /&gt;
&lt;br /&gt;
After adding an existing data item, an icon of the newly added data item will be added at the end of the list view and MOHID GIS’s main might look like seen in image below ''''MOHID GIS’s main window with some Data Items''''&lt;br /&gt;
[[Image:MohidGISMainWindow.jpg|425px|thumb|center|'''MOHID GIS’s main window with some Data Items''']]&lt;br /&gt;
&lt;br /&gt;
=== Data Items Appearance ===&lt;br /&gt;
Data Items appear, in XY Views, as layers. The topmost data item in the list view is represented as topmost layer, while the last data item is the lowest layer. It’s possible to change the order of the data items by dragging them up and down with the mouse. It’s also possible to turn individual data items on or off by toggling the check box next to the icons of the data items in the list view.&lt;br /&gt;
&lt;br /&gt;
The way data items are displayed depends on several settings. Settings depend on the type of data items. Settings can be accessed by selecting a data item in the list view and then choosing Data Items -&amp;gt; Properties from MOHID GIS’s main menu (keyboard shortcut is F4 and mouse right-click pop up a shortcut menu). The image below ''''Properties of a XYZ data item'''' shows the properties of a XYZ Points data item. Common to all data items is information stored in groups “General” and “Color”. The first group shows the path to the data item’s file and information on it’s position and extension in the XY plane  of it. The second group allows the user to choose how to “color” data items and if one wants to display a color scale in the display area.&lt;br /&gt;
&lt;br /&gt;
For some data items its necessary to specify a size (e.g. size of points, width of lines). If this size is not supplied in pixels, then it’s necessary to taken into account that values specified depend on which type of coordinates one is using. If one is using metric coordinates, size values will be in meters, if one uses geographic coordinates, size values will be in decimal degrees.&lt;br /&gt;
[[Image:propertiesDataItem.jpg|425px|thumb|center|'''Properties of a XYZ data item''']]&lt;br /&gt;
&lt;br /&gt;
Color properties of data items can be accessed through the “Settings…” button in the “Color” group. Colorization is based on one value, the color base value. Available color base values depend on the type of data item (e.g. Z for points, ID for polygons). If there is more then one available color base value it can be chosen from the drop down box labeled “Based On”. &lt;br /&gt;
[[Image:colorSettingsDialog.jpg|225px|thumb|center|'''Color Setting Dialog''']]&lt;br /&gt;
By clicking the “Settings…” button in the “Color Group”, a dialog window like the one shown in the image above ''''Color Setting Dialog'''' will appear. This dialog box enables the user to colorize data items in different ways: &lt;br /&gt;
*constant – all entities of the data items are colored with one single color, since the value of the color base value is within the range specified in the “Limits Group”. If the value is below limit the color specified in the below limit area is applied. If the value exceeds the maximum value, the above limit color is applied;&lt;br /&gt;
*gradual – all entities of the data items are colored based on a gradual color scale. Colors are obtained by linear or logarithmic interpolation based on limits in the “Limits Group” and the color base value. For entities with values outside limits the same rules as for constant colorization apply;&lt;br /&gt;
*classified – all entities of the data items are colorized based on a user defined classified color ranges. For entities with values outside limits the same rules as for constant colorization apply.&lt;br /&gt;
&lt;br /&gt;
=== Create New Data Items ===&lt;br /&gt;
MOHID GIS permits to create some data items from scratch. By selecting Data Items -&amp;gt; New… from MOHID GIS’s main menu, a dialog window like the one shown in the image below (''''Adding a new Data Item'''') appears. Here it’s possible to choose the type of data item to be created and where the respective file will be located.&lt;br /&gt;
[[image:AddNewDataItems.jpg|225px|thumb|center|'''Adding a new Data Item''']]&lt;br /&gt;
&lt;br /&gt;
=== Removing Data Items ===&lt;br /&gt;
By selecting one or more data items for the list view and selecting Data Items -&amp;gt; Remove from MOHID GIS’s main menu data items will be removed from the view.&lt;br /&gt;
&lt;br /&gt;
=== Adding new data to Data Items ===&lt;br /&gt;
It’s possible to add single data entities to existing [[XYZ points]], [[lines]] and [[polygon]] data items. First one has to select in the list view the data item where to add the entities to. The next step is to select Tools -&amp;gt; Add -&amp;gt; Add Points / Lines / Polygons from MOHID GIS’s main menu. &lt;br /&gt;
&lt;br /&gt;
Points are added with the left mouse button on the display area. To stop adding points, the right mouse button must be pressed.&lt;br /&gt;
&lt;br /&gt;
Lines vertex are added with the left mouse button on the display area. To finish the line, the right mouse button must be pressed.&lt;br /&gt;
&lt;br /&gt;
Polygons vertex are added with the left mouse button on the display. To close the polygon the right mouse button must be pressed.&lt;br /&gt;
&lt;br /&gt;
=== Load HDF 5 Data Items ===&lt;br /&gt;
HDF 5 Data Items are a special case of data items, because the user has to perform several steps before viewing them. MOHID GIS expects HDF 5 file to contain spatial and temporal information about the data set which will be loaded. All HDF 5 files produced by MOHID numerical programs contain this information. To display the information contained in a HDF 5 file the following are required:&lt;br /&gt;
*Add a HDF 5 file like described in Adding Data Items;&lt;br /&gt;
*Select the new added data item from the list view and access its properties (like described in Data Items Appearance). A dialog window like shown in the image below (''''Properties window of a HDF 5 Data Item'''') will appear;&lt;br /&gt;
[[Image:Hdf5DataItem.jpg|425px|thumb|center|'''Properties window of a HDF 5 Data Item''']]&lt;br /&gt;
*Pressing the “Data Selection” button, located on the right hand side of the window, to select data from the HDF 5 file which is to be represented;&lt;br /&gt;
*A window like shown in the image below (''''HDF 5 Data Selection Window'''') appears. This window enables the user to select how each kind of information is to be represented and what is the spatial and temporal information associated with the data sets. Information to be selected is divided into required information and optional information. Required information is related to temporal, spatial and mapping reference of data sets and optional information are the data sets themselves. Information is selected by dragging items from the HDF 5 tree view located on the left side of the dialog window to the respective list view on the right side of the dialog window (or using the Action command from the main menu);&lt;br /&gt;
[[Image:Hdf5DataSelectionWindow.jpg|425px|thumb|center|'''HDF 5 Data Selection Window''']]&lt;br /&gt;
HDF 5 Data Selection Window|425px|thumb|center|'''Properties window of a HDF 5 Data Item''']]&lt;br /&gt;
*Spatial information about the data sets is required and should either be the data sets Connection X/Y or Latitude / Longitude, depending on coordinates used in MOHID GIS’s display view. Spatial information is added by selecting the Grid list view. After adding spatial information the grid list view should look like the one shown in the image below (''''HDF 5 Data Selection Window after adding spatial information'''');&lt;br /&gt;
[[Image:Hdf5DataSelectionWindowAfterAddingInfo.jpg|425px|thumb|center|'''HDF 5 Data Selection Window after adding spatial information''']]&lt;br /&gt;
*Mapping information tells MOHID GIS if a given grid point is to be represented or not (e.g. water points vs. land points). Mapping information stored in HDF 5 files produced by MOHID numerical programs are: (i) Waterpoints, OpenPoints or BasinPoints. Mapping information is added at the Mapping list view. After adding mapping information the mapping information list view should be similar to the one shown in the image below (''''Data Selection Window after adding mapping information'''');&lt;br /&gt;
[[Image:Hdf5DataSelectionWindowAfterAddingInfo2.jpg|425px|thumb|center|'''Data Selection Window after adding mapping information''']]&lt;br /&gt;
*The third required information is the temporal information. Time information is added into the time list view in a similar way spatial and mapping  information is added;&lt;br /&gt;
*By selecting Settings -&amp;gt; General… one has access to general settings dialog window, which permits to choose several settings (image below (''''Data Selection Window General Settings'''')). Here the user can choose which slice is to be imported from a 3D matrix and how the “Quick Add” button from the menu bar behaves. This button allows adding with a single click all required information (temporal, spatial and mapping).&lt;br /&gt;
[[Image:DataSelectionGeneralSectings.jpg|225px|thumb|center|'''Data Selection Window General Settings''']]&lt;br /&gt;
*Optional information tells MOHID GIS what is actually to be represented. There are four ways to represents information: (i) color matrix, (ii) contour lines (iii) vector plot, and (iv) lagrangian particles. Information added to (i) and (iii) must be kind of 2D or 3D matrixes (e.g. flow modulus, nitrate concentration, surface water content). Information added to (iii) must have an X and a Y component (e.g. flow velocity, wind velocity). Information added to (iv) is the one produced by the lagrangian module. Optional information has its source usually in the “Results” folder of the HDF 5 Tree View. The image below (''''Data Selection Window after adding vector plot information'''') shows an example of the Data Selection Window after adding Vector Plot information;&lt;br /&gt;
[[Image:DataSelectionWindowAfterAddingVectorPlotInformation.jpg|425px|thumb|center|'''Data Selection Window after adding vector plot information''']]&lt;br /&gt;
*By choosing Close Return from Data Selections main window all selected data will be loaded and the window will close;&lt;br /&gt;
*In the Properties window of the HDF 5 Data Item now it’s possible to set settings related to the representation of the selected data sets. Only settings for which data sets were loaded are enabled. The image below (''''Properties window of a HDF 5 Data Item after Data Selection'''') shows an example of this. Settings for colors are the same as for Grid Data Items, Contour Lines width is given in display view units (not in pixel), vector scaling is also referred to display view units (a scaling of 1000 means that a vector of 1 m/s will be represented by an arrow of 1000 display view units).&lt;br /&gt;
[[Image:PropertiesWindowHDF5DataItemAfterDataSelection.jpg|425px|thumb|center|'''Properties window of a HDF 5 Data Item after Data Selection''']]&lt;br /&gt;
After loading data from HDF 5 files the user can step through the loaded data sets by animating the display view, using the animator (see '''Using the Animator''').&lt;br /&gt;
&lt;br /&gt;
=== Zooming &amp;amp; Panning ===&lt;br /&gt;
Several methods are available (in XY Views) to zoom and pan the current image. From MOHID GIS’s mains menu the following options are available:&lt;br /&gt;
*Zoom Rectangle – display will zoom to rectangle area selected with the mouse;&lt;br /&gt;
*Zoom Checked Items – display will zoom the smallest rectangle which contains all checked items in the list view (this option is also accessible through a pop-up menu in the list view);&lt;br /&gt;
*Zoom Selected Items – display will zoom the smallest rectangle which contains all selected items in the list view (this option is also accessible through a pop-up menu in the list view);&lt;br /&gt;
*Zoom Extended – display will zoom the smallest rectangle which contains all items in the list view;&lt;br /&gt;
*Zoom Out – display area zooms in by 10%, using the center point as reference;&lt;br /&gt;
*Zoom In – display area zooms out by 10%, using the center point as reference;&lt;br /&gt;
*Pan – pans the image with the mouse; &lt;br /&gt;
“Selecting Action -&amp;gt; None” stops any previously selected action. It’s also possible to zoom in / zoom out using the mouse wheel.&lt;br /&gt;
&lt;br /&gt;
=== Inquire Information ===&lt;br /&gt;
To inquire information about a given area, the user has the possibility to select Action -&amp;gt; Info -&amp;gt; Info Area / point from MOHID GIS’s main menu. After selecting the desired area a window like shown in the below image (''''Dialog window showing information found in the selected area'''') will show information about the data items in the selected area.&lt;br /&gt;
[[Image:DialogWindowShowingInformationFoundSelectedArea.jpg|225px|thumb|center|'''Dialog window showing information found in the selected area''']]&lt;br /&gt;
&lt;br /&gt;
=== Add Legends ===&lt;br /&gt;
Several types of legends can be added to the display view. These legends are: (i) a legend text at the bottom of the display are, (ii) a north indicator, (iii) a horizontal scale, (iv) a rainfall indicator and (v) color scales for each data item. &lt;br /&gt;
&lt;br /&gt;
A legend text at the bottom of the display area can be added by selecting OpenGL -&amp;gt; Bottom Legend… from MOHID GIS’s main menu. A dialog window like shown in the image below (''''Bottom Legend Text Settings'''') appears. The legend text (two lines) as well as the font size and type, can be chosen. For the legend text to appear in the display area the “Show” checkbox must be checked. There is an option to visualize time. The time shown will depend on the current animation time / index (see '''Using the Animators''').&lt;br /&gt;
[[Image:BottomLegendTextSettings.jpg|225px|thumb|center|'''Bottom Legend Text Settings''']]&lt;br /&gt;
After closing the bottom legend text dialog window, the legend text will be shown at the bottom of the display area (see image below ''''Bottom legend in the display view'''').&lt;br /&gt;
[[Image:BottomLegendDisplayView.jpg|425px|thumb|center|'''Bottom legend in the display view''']]&lt;br /&gt;
A north indicator can be added to the display area by selecting OpenGL -&amp;gt; North Indicator… from MOHID GIS’s main menu. A dialog window like shown in the image below (''''North Indicator Settings'''') appears. The location (in pixels) of the lower left corner of the North Indicator like the width and height must be supplied by the user. Two types of North Indicators are available.&lt;br /&gt;
[[Image:NorthIndicatorSettings.jpg|225px|thumb|center|'''North Indicator Settings''']]&lt;br /&gt;
A horizontal scale, which indicates a distance, can be added to the display area by selecting OpenGL -&amp;gt; Horizontal Scale… from MOHID GIS’s main menu. A dialog window like shown in the image below (''''Horizontal Scale Settings'''') appears. Like for the North Indicator the user has to specify the location of the scale. Scale units can be meters or kilometers.&lt;br /&gt;
[[Image:HorizontalScaleSettings.jpg|225px|thumb|center|'''Horizontal Scale Settings''']]&lt;br /&gt;
&lt;br /&gt;
=== Save Images ===&lt;br /&gt;
It’s always possible to save the current display view as image in several file formats. By choosing Data Items -&amp;gt; Save Image from MOHID GIS’s main menu, a dialog window like shown in the image below (''''Save the current display view to a file'''') appears. In this window the user can choose the file format and destination of the file.&lt;br /&gt;
[[Image:SaveCurrentDisplayViewFile.jpg|225px|thumb|center|'''Save the current display view to a file''']]&lt;br /&gt;
&lt;br /&gt;
=== Using the Animators ===&lt;br /&gt;
Animators allow to animate, the display view, stepping through loaded data sets from HDF 5 files and time series. MOHID GIS incorporates two types of animators: (i) an index based animator and (ii) a time based animator. Index based animations use the indexes of the data sets loaded and time based animations are based on a user defined time span and time step. By choosing View -&amp;gt; Animator -&amp;gt; Index Based Animator from MOHID GIS’s main menu, one has access to the first one (choose Time Based Animator from the same menu to access the second one). The animator appears below the list view in MOHID GIS’s child window, like shown in the image below(''''Index based animator below list view''''). Start and end fields indicate the current limits of indexes of all loaded HDF 5 data items, buttons “-&amp;gt;” and “&amp;lt;-“ can be used, respectively, to step one image forward and backward, Render All button loop through all indexes and “Save All…” can be used to save all images to a user defined folder. The time based animator works in a very similar way. Animators can be hidden by choosing View-&amp;gt; Animator -&amp;gt; Hide from MOHID GIS’s main menu.&lt;br /&gt;
[[Image:IndexBasedAnimatorBelowlistView.jpg|425px|thumb|center|'''Index based animator below list view''']]&lt;br /&gt;
&lt;br /&gt;
== Tools ==&lt;br /&gt;
There are a set of tools available from MOHID GIS’s main menu (Tool submenu). Tools are designed to create input data files for MOHID numerical programs and are described next.&lt;br /&gt;
&lt;br /&gt;
=== Create Digital Terrain ===&lt;br /&gt;
By selecting Tools -&amp;gt; Create Digital Terrain from MOHID GIS’s main menu, the user has the possibility to create a Grid Data file to be used as bathymetry input for MOHID Water or as topography input for MOHID Land (or any other Grid Data file which will be needed by the numerical models). A dialog window like shown in Figure 3-37 will appear. This window is an interface to launch the numerical program MOHID Digital Terrain Creator. &lt;br /&gt;
&lt;br /&gt;
On the right side of the window one must specify which grid and sets of XYZ data or to be used to create the digital terrain. Optionally a set of polygons can be specified, defining where “no compute” areas are (e.g. land points for MOHID Water). The grid data destination file must be selected under “Digital Terrain File”. There is a set of options available which control the way MOHID Digital Terrain Creator will behave. These options can be accessed by the Options; Advanced Options and Overlapping tabs (see Figure 3-38). Under the Option tab one can choose the type of interpolation to use.&lt;br /&gt;
&lt;br /&gt;
After setting all options one have to press the “Run…” button on the left side of the window to execute MOHID Digital Terrain Creator. The output of this numerical program is redirected the window located at the upper left corner of the image below (''''Window to create a Digital Terrain'''').&lt;br /&gt;
[[Image:WindowCreateDigitalTerrain.jpg|425px|thumb|center|'''Window to create a Digital Terrain''']]&lt;br /&gt;
After closing the dialog box the newly created grid data file will be automatically loaded into MOHID GIS’s current view.&lt;br /&gt;
[[Image:OptionsControllingDigitalTerrainCreation.1.jpg|225px|thumb|center|'''Options controlling Digital Terrain Creation''']]&lt;br /&gt;
[[Image:OptionsControllingDigitalTerrainCreation.2.jpg|225px|thumb|center|'''Options controlling Digital Terrain Creation''']]&lt;br /&gt;
&lt;br /&gt;
=== Remove Depression ===&lt;br /&gt;
To make topography grid data files suitable for MOHID Land they must be “depression free”. By selecting Tools -&amp;gt; Remove Depression... from MOHID GIS’s main menu a dialog like shown in the below image (''''Window to Remove Depressions'''') appears. This window is an interface to launch the numerical program MOHID Basin Delineator. &lt;br /&gt;
[[Image:WindowRemoveDepressions.jpg|425px|thumb|center|'''Window to Remove Depressions''']]&lt;br /&gt;
On the left side of the window one has to select the Grid Data Item from which depressions are to be removed, the minimum slope to consider and the new Grid Data file to be created.&lt;br /&gt;
&lt;br /&gt;
After setting all options one have to press the “Run…” button on the left side of the window to execute MOHID Basin Delineator. The output of this numerical program is redirected the window located at the upper left corner of the image above (''''Window to Remove Depressions'''').&lt;br /&gt;
&lt;br /&gt;
After closing the dialog box the newly created Grid Data file will be automatically loaded into MOHID GIS’s current view.&lt;br /&gt;
&lt;br /&gt;
=== Delineate Basins ===&lt;br /&gt;
MOHID Land can receive a Drainage Network and a delineation of a basin. By selecting Tools -&amp;gt; Delineate Basin... from MOHID GIS’s main menu a dialog like shown in the image below (''''Window to Delineate a Basin'''') appears. This window is another interface to launch the numerical program MOHID Basin Delineator. &lt;br /&gt;
[[Image:WindowDelineateBasin.jpg|425px|thumb|center|'''Window to Delineate a Basin''']]&lt;br /&gt;
From this window one has the possibility to create data items with information about (i) delineation of the basin, (ii) drainage network, (iii) drainage direction, (iv) upstream drained area and (v) cell slope. The first data item is a polygon, the second is a drainage network and the last three are grid data items. The topography used as base data must be specified in the list box on the upper right side of the window. One has the option to specify the localization of reservoirs.&lt;br /&gt;
&lt;br /&gt;
Threshold area is a parameter which is used by MOHID Basin Delineator as minimum drained area from which channels of drainage network starts to exist. If one wants to delineate a basin, the grid cell of the outlet (of the topographic file) must be specified.&lt;br /&gt;
&lt;br /&gt;
After setting all options, press the “Run…” button on the left side of the window to execute MOHID Basin Delineator. The output of this numerical program is redirected the window located at the upper left corner of the above image (''''Window to Delineate a Basin'''').&lt;br /&gt;
&lt;br /&gt;
After closing the dialog box the newly created data items will be automatically loaded into MOHID GIS’s current view.&lt;br /&gt;
&lt;br /&gt;
=== Auto Cross Sections ===&lt;br /&gt;
Drainage Network’s cross sections need to be defined in order for MOHID Land (or MOHID River Network) to run. This can automatically be done be selecting Tools -&amp;gt; Auto Cross Sections... from MOHID GIS’s main menu. A dialog like shown in the image below (''''Window to interpolate Cross Sections'''') appears. This window permits to interpolate trapezoidal cross sections in function of the drained upstream area. At the top of the window one has to choose which drainage network is to be processed and below one has to specify a set of predefined cross sections for given drained upstream areas. &lt;br /&gt;
[[Image:WindowInterpolateCrossSections.jpg|225px|thumb|center|'''Window to interpolate Cross Sections''']]&lt;br /&gt;
By clicking the Add… or Edit… button MOHID GIS’s incorporated Cross Sections Editor (image below, ''''MOHID GIS’s Cross Section Editor'''') will open. Here there’s the possibility of defining the characteristics of a cross section.&lt;br /&gt;
&lt;br /&gt;
After defining a set of cross sections (at least two covering all drained areas) choose the option to interpolate cross sections for the whole drainage network using linear or logarithmic interpolation. &lt;br /&gt;
[[Image:MOHIDGISCrossSectionEditor.jpg|425px|thumb|center|'''MOHID GIS’s Cross Section Editor''']]&lt;br /&gt;
&lt;br /&gt;
=== Grid Data Operator ===&lt;br /&gt;
By selecting Tools -&amp;gt; Grid Data Operator from MOHID GIS’s main menu one has access to MOHID GIS incorporated Grid Data Operator. This tool permits to perform basic operation over exiting Grid Data Items (image below ''''Grid Data Operator Window''''). Possible operations are:&lt;br /&gt;
equaling a Grid Data Item to a constant value;&lt;br /&gt;
*sum, subtract, multiply or divide a Grid Data Item by a constant value;&lt;br /&gt;
*equalize, sum, subtract or multiply Grid Data Item 1 with / by Grid Data Item 2;&lt;br /&gt;
*perform a linear interpolation over Grid Data Item 1 using Grid Data Item 2 as “m” value.&lt;br /&gt;
Operations can be constrained and just applied in grid points (of Grid Data Item 1) which match constrains specified under “Constrains”.&lt;br /&gt;
[[Image:GridDataOperatorWindow.JPG|425px|thumb|center|'''Grid Data Operator Window''']]&lt;br /&gt;
On the right side of the window one can select the operation to perform, and on the left, which Grid Data Items are used for the operations. The Grid Data Item which will be modified (by pressing the “Run…” button) is always the Grid Data Item 1.&lt;br /&gt;
&lt;br /&gt;
=== File Conversion ===&lt;br /&gt;
&lt;br /&gt;
==== Shape File to Grid Data ====&lt;br /&gt;
By selecting Tools -&amp;gt; Shape to Grid Data… from MOHID GIS’s main menu a dialog window like shown in the below image (''''Converting Polygon Shape File into Grid Data'''') appears. Here one has the possibility to convert Shape Files containing polygons into Grid Data Items. The source Shape File must be select from the list box at the upper left corner of the image below (''''Converting Polygon Shape File into Grid Data'''') and the Grid which will be used from the list box at the lower left corner of the image below (''''Converting Polygon Shape File into Grid Data'''').&lt;br /&gt;
[[Image:ConvertingPolygonShapeFileintoGridData.JPG|425px|thumb|center|'''Converting Polygon Shape File into Grid Data''']]&lt;br /&gt;
On the right side appears a drop down box which contains all numerical columns of the data table which belongs to the selected Shape File. In the Lookup Table one has to specify the values which are to be assigned to the grid cells, depending on the numerical value found in the data table of the Shape File (for example in  the image above (''''Converting Polygon Shape File into Grid Data'''') all grid points covered by polygons in the Shape File with Soil Texture Class (SLTXCL) 2 will receive a value of 2.75).&lt;br /&gt;
&lt;br /&gt;
The destination Grid Data File must be specified under “Output File…”. By pressing the “Run…” button the Grid Data file will be created.&lt;br /&gt;
&lt;br /&gt;
==== Shape File To XYZ Points ====&lt;br /&gt;
By selecting Tools -&amp;gt; Shape to Grid Data… from MOHID GIS’s main menu a dialog window like shown in the image below (''''Converting Points Shape File into XYZ Point'''') appears. There is the possibility to convert Shape Files containing points into XYZ Points. The data columns used as Z and text must be selected from the drop down boxes on the right and the destination XYZ file must be specified under “Output File”. By pressing the “Run…” button the XYZ Points file will be created.&lt;br /&gt;
[[Image:ConvertingPointsShapeFileIntoXYZPoint.jpg|425px|thumb|center|'''Converting Points Shape File into XYZ Point''']]&lt;br /&gt;
&lt;br /&gt;
==== Export To Shape File ====&lt;br /&gt;
By selecting Tools -&amp;gt; Export To Shape File… from MOHID GIS’s main menu a dialog window like shown in the image below (''''Exporting Data Items to Shape Files'''') appears. There is the possibility to convert XYZ Points, Polygons, Drainage Network and Lines data items into Shape Files. The Shape Files will be created in the same folder where the source data items are located.&lt;br /&gt;
&lt;br /&gt;
[[Image:ExportingDataItemsShapeFiles.jpg|225px|thumb|center|'''Exporting Data Items to Shape Files''']]&lt;br /&gt;
&lt;br /&gt;
==== Export GridData to XYZ points ====&lt;br /&gt;
&lt;br /&gt;
==== Convert to HDF5 ====&lt;br /&gt;
&lt;br /&gt;
=== Create Boxes ===&lt;br /&gt;
MOHID numerical programs use polygons in form of “boxes” to perform initialization or output operations. These boxes can be created from Polygon and Grid Data data items by selecting Tools -&amp;gt; Create Boxes from MOHID GIS’s main menu. A dialog window like shown in the image below (''''Creating Boxes for MOHID numerical programs'''') appears. To proceed, one has to choose one Grid Data data item and one Polygon data item. Under “Boxes File” the destination of the box file to be created is chosen. By clicking OK, the box file will be created and the dialog window closes.&lt;br /&gt;
[[Image:CreatingBoxesMOHIDnumericalprograms.JPG|225px|thumb|center|'''Creating Boxes for MOHID numerical programs''']]&lt;br /&gt;
&lt;br /&gt;
=== Create Grid Time Series Location ===&lt;br /&gt;
MOHID numerical programs use points to write time series output. By selecting Tools -&amp;gt; Create Grid Time Series Locations from MOHID GIS’s main menu, one has the possibility to create an input data file which indicates MOHID numerical programs where grid based time series are to be written. A dialog window like shown in the iamge below (''''Create Grid Time Series Locations'''') appears. To create a Time Series Location file, one has to choose one Grid Data and one XYZ Points data item from the list boxes. Under “Location file” the destination file is specified. DT Output indicates MOHID numerical programs with which time step time series will be written. By clicking OK, the time series location file will be created and the dialog window closes.&lt;br /&gt;
[[Image:CreateGridTimeSeriesLocations.jpg|225px|thumb|center|'''Create Grid Time Series Locations''']]&lt;br /&gt;
&lt;br /&gt;
=== Create Node Time Series Location ===&lt;br /&gt;
By selecting Tools -&amp;gt; Create Node Time Series Locations from MOHID GIS’s main menu, one has the possibility to create an input data file which indicates MOHID numerical programs where node based time series are to be written. A dialog window like shown in the image below (''''Create Node Time Series Locations'''') appears. To create a Time Series Location file, one has to choose one Drainage Network and one XYZ Points data item from the list boxes. Under “Location file” the destination file is specified. DT Output indicates MOHID numerical programs with which time step time series will be written. By clicking OK, the time series location file will be created and the dialog window closes.&lt;br /&gt;
[[Image:CreateNodeTimeSeriesLocations.jpg|225px|thumb|center|'''Create Node Time Series Locations''']]&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[Background_Image|Background image for MOHID GIS]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
[[Category:Graphical User Interfaces]]&lt;/div&gt;</summary>
		<author><name>Luisfernandes</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Compiling_with_CVF&amp;diff=2015</id>
		<title>Compiling with CVF</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Compiling_with_CVF&amp;diff=2015"/>
				<updated>2009-06-29T15:43:29Z</updated>
		
		<summary type="html">&lt;p&gt;Luisfernandes: /* Creating a new project */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Please follow these instructions step by step and until the end:&lt;br /&gt;
&lt;br /&gt;
== Creating a new project ==&lt;br /&gt;
#Make sure you have installed in your computer Microsoft Visual Studio 6.0 (Compaq Visual Fortran 6 Developer Studio) and Compaq Visual Fortran 6.6c. If you don’t have both installed, please install them.&lt;br /&gt;
#Get your HDF5 libraries (*.libs) and modules (*.mod) files from Source Safe (folder named &amp;quot;\Libs&amp;quot;).&lt;br /&gt;
#Open the Compaq Visual Fortran 6 Developer Studio. &lt;br /&gt;
#Select &amp;quot;File... New&amp;quot;.&lt;br /&gt;
#Select the Projects tab.&lt;br /&gt;
#Create a '''Fortran Console Application'''. Name it &amp;quot;MohidWater&amp;quot; for example, and define a path to the folder where you want to place the project. Click OK.&lt;br /&gt;
#Get all FORTRAN code files from SourceSafe and add them to the project. Right-click in the Source Files folder (in the project tree), and select &amp;quot;Add Files To Folder...&amp;quot;. Add all the files containing the [[modules]]. For example, to compile MohidWater, add all files in folders Mohid_Base_1, Mohid_Base_2 and MohidWater. Other projects may need modules from Mohid_Base_1, Mohid_Base_2.&lt;br /&gt;
#Note that the files '''mpif.f90''', '''GOTMVariables_in.f90''' and '''GOTMVariables_out.f90''' are '''NOT''' to be included in the project. These files are '''INCLUDE''' files which means they must be placed in the same folder as the rest of source code files. Also the file &amp;quot;ModuleSequentialAssimilation.f90&amp;quot; is only to be included in the project if the optional compilation directives for this code are active. Normally they are not, so don't include the module in the project.&lt;br /&gt;
&lt;br /&gt;
== Release settings ==&lt;br /&gt;
Please follow the steps below and set them EXACTLY as they are presented. Do not make additional changes in the settings unless you’re testing some optimizations. Note that settings under &amp;quot;Debug&amp;quot; and &amp;quot;Release&amp;quot; configurations are slightly different. Please select &amp;quot;Release&amp;quot; configuration and apply this settings first.&lt;br /&gt;
&lt;br /&gt;
#Select &amp;quot;Project...Settings&amp;quot;&lt;br /&gt;
#Select the &amp;quot;Fortran&amp;quot; tab&lt;br /&gt;
#Select &amp;quot;Compilation Diagnostics&amp;quot; in the dropdown box&lt;br /&gt;
#Check '''ALL''' the check boxes (&amp;quot;Argument Mismatch&amp;quot;, &amp;quot;Data Alignment&amp;quot;, etc)&lt;br /&gt;
#Set the &amp;quot;Fortran Standards Checking&amp;quot; to '''&amp;quot;Fortran 95&amp;quot;'''&lt;br /&gt;
#Select &amp;quot;Floating Point&amp;quot; in the dropdown box&lt;br /&gt;
#Set &amp;quot;Floating Point Exception Handling&amp;quot; to '''&amp;quot;3*&amp;quot;'''. NOTE: This will enable your executable to create and work with NaN. If you set the value to '''&amp;quot;0&amp;quot;''' the program will stop when NaN are created, but it will run slower. &lt;br /&gt;
#Select &amp;quot;PreProcessor&amp;quot; in the dropdown box &lt;br /&gt;
#Write the path to the HDF5 libraries in &amp;quot;INCLUDE and USE Paths&amp;quot; text box&lt;br /&gt;
#Check &amp;quot;Use FPP&amp;quot; check box&lt;br /&gt;
#Select the &amp;quot;Link&amp;quot; tab&lt;br /&gt;
#For the &amp;quot;Input&amp;quot; item in the &amp;quot;Category&amp;quot; dropdown box, write the path to the HDF5 libraries in &amp;quot;Additional library paths&amp;quot; text box&lt;br /&gt;
#For the &amp;quot;General&amp;quot; and &amp;quot;Input&amp;quot; items in the &amp;quot;Category&amp;quot; dropdown box, add the following line in the “Object/library modules” text box:&lt;br /&gt;
 '''kernel32.lib hdf5.lib hdf5_hl.lib hdf5_fortran.lib zlib.lib szlib.lib'''&lt;br /&gt;
&lt;br /&gt;
== Debug settings ==&lt;br /&gt;
Use the default settings for a &amp;quot;Debug&amp;quot; application and perform the same steps as for the &amp;quot;Release&amp;quot; configuration, except in the following step:&lt;br /&gt;
# Select &amp;quot;Project...Settings...Fortran&amp;quot;&lt;br /&gt;
# Select &amp;quot;Floating Point&amp;quot; in the dropdown box&lt;br /&gt;
# Set &amp;quot;Floating Point Exception Handling&amp;quot; to '''&amp;quot;0&amp;quot;'''.&lt;br /&gt;
&lt;br /&gt;
== Build ==&lt;br /&gt;
#Select &amp;quot;Build...Build [name of the executable]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Optional compilation settings ==&lt;br /&gt;
To perform optional compilation, just add the compilation pre-processor keywords in &amp;quot;Project...Settings...Fortran...PreProcessor&amp;quot;, in the &amp;quot;Predefined Preprocessor Symbols&amp;quot; text box.&lt;br /&gt;
&lt;br /&gt;
=== Exclude modules ===&lt;br /&gt;
Some modules can be completely excluded from compilation. If your simulations do not use these modules you can use this pre-processor keywords.&lt;br /&gt;
&lt;br /&gt;
 '''_LAGRANGIAN_'''	   excludes Modules Lagrangian + Jet + Oil&lt;br /&gt;
 '''_AIR_'''	           excludes Modules InterfaceWaterAir + Atmosphere&lt;br /&gt;
 '''_WAVES_'''	           excludes Module Waves&lt;br /&gt;
 '''_SEDIMENT_'''	   excludes Modules SedimentProperties + Consolidation&lt;br /&gt;
&lt;br /&gt;
=== Compile with MPI ===&lt;br /&gt;
In order to [[Compiling Mohid with MPI|compile Mohid with MPI]] you must include the following pre-processor keyword. See more on [[Compiling Mohid with MPI]]&lt;br /&gt;
 '''_USE_MPI'''           includes MPI code&lt;br /&gt;
&lt;br /&gt;
=== Compile with OpenMP ===&lt;br /&gt;
See more on [[Compiling Mohid with OpenMP]].&lt;br /&gt;
&lt;br /&gt;
=== Other options ===&lt;br /&gt;
Other keywords can also be used.&lt;br /&gt;
&lt;br /&gt;
 '''_SHORT_LINE_LENGTH''' sets line_length = 64  (default line_length is 256)&lt;br /&gt;
 '''_LONG_LINE_LENGTH'''  sets line_length = 1024(default line_length is 256)&lt;br /&gt;
 '''_GUI_'''              includes GUI code&lt;br /&gt;
&lt;br /&gt;
== Stack reserve settings ==&lt;br /&gt;
This option enables you to reserve more RAM to your executable which is useful when running &amp;quot;heavy&amp;quot; simulations. You can normally find out you need this if you get an error in your simulation process saying '''&amp;quot;stack overflow&amp;quot;'''. To do this follow these steps:&lt;br /&gt;
#Select &amp;quot;Project...Settings&amp;quot;&lt;br /&gt;
#Select the &amp;quot;Link&amp;quot; tab&lt;br /&gt;
#Select &amp;quot;Output&amp;quot; in the &amp;quot;Category&amp;quot; dropdown box&lt;br /&gt;
#In the &amp;quot;Stack allocations&amp;quot; area, define e.g. '''64000000'''(or more) in the &amp;quot;Reserve&amp;quot; text box.&lt;br /&gt;
&lt;br /&gt;
== Additional Developer Studio settings ==&lt;br /&gt;
#Select &amp;quot;Tools...Options&amp;quot;&lt;br /&gt;
#Select &amp;quot;Tabs&amp;quot; tab&lt;br /&gt;
#Select &amp;quot;Fortran&amp;quot; in the dropdown box &lt;br /&gt;
#Select &amp;quot;Insert spaces&amp;quot; radio button&lt;br /&gt;
&lt;br /&gt;
[[Category:Programming]]&lt;br /&gt;
[[Category:Compiling]]&lt;/div&gt;</summary>
		<author><name>Luisfernandes</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Sign_up&amp;diff=2014</id>
		<title>Sign up</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Sign_up&amp;diff=2014"/>
				<updated>2009-06-29T15:41:46Z</updated>
		
		<summary type="html">&lt;p&gt;Luisfernandes: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Please send an email to one of the following addresses, and we'll provide you with an account for this wiki. It'll allow you to edit. Note that this account is independent of the [http://www.mohid.com/MembersArea/MembersArea.asp Mohid main site] account, which provides access to [http://www.mohid.com/MembersArea/MembersArea.asp downloads] and the [http://www.mohid.com/forum forum]. Remember to mention, besides your name, your institute (if any) and your interests/motivation for contributing to this wiki. Thanks!&lt;br /&gt;
&lt;br /&gt;
== Account givers ==&lt;br /&gt;
*[[User:Guillaume|Guillaume]]: '''guillaume dot maretec at ist dot utl dot pt'''&lt;br /&gt;
*[[User:davidbrito|David]]: '''david dot maretec at ist dot utl dot pt'''&lt;br /&gt;
*[[User:luisfernandes|Luis]]: '''luis at mohid dot com'''&lt;/div&gt;</summary>
		<author><name>Luisfernandes</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Thredds&amp;diff=1512</id>
		<title>Thredds</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Thredds&amp;diff=1512"/>
				<updated>2009-02-26T11:23:40Z</updated>
		
		<summary type="html">&lt;p&gt;Luisfernandes: /* data.mohid.com */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Thredds]] (Thematic Realtime Environmental Distributed Data Services) is a tomcat servlet that serves xml catalogs of [[openDAP]] datasets.&lt;br /&gt;
&lt;br /&gt;
==Setup==&lt;br /&gt;
A working [[tomcat]] server is a prerequisite. Simply '''copy the thredds.war file''' obtained from the thredds homepage '''into the''' [[tomcat]] '''webapps directory'''.&lt;br /&gt;
&lt;br /&gt;
===data.mohid.com===&lt;br /&gt;
*'''How do I restart the [[tomcat]] and thredds server in data.mohid.com?'''&lt;br /&gt;
 &amp;gt; cd /home/guillaume/Software/las7/tomcat/tomcat/bin&lt;br /&gt;
 &amp;gt; ./Tomcat5.sh stop&lt;br /&gt;
 &amp;gt; ./Tomcat5.sh start&lt;br /&gt;
&lt;br /&gt;
*'''How do I know if tomcat is really running?''':&lt;br /&gt;
 &amp;gt; netstat -tlnap | grep 8080&lt;br /&gt;
&lt;br /&gt;
If it's running then a port 8080 must appear in the results of the command.&lt;br /&gt;
&lt;br /&gt;
===VmMrtSrv06===&lt;br /&gt;
*'''192.168.20.136''' when it is resident on the LAN.&lt;br /&gt;
*To configure the tomcat to start during boot:&lt;br /&gt;
 &amp;gt; sudo vim /etc/rc.d/rc.local&lt;br /&gt;
 rc.local&amp;gt; /home/user/Download/apache-tomcat-6.0.18/bin/startup.sh&lt;br /&gt;
&lt;br /&gt;
====Catalogs architecture====&lt;br /&gt;
We propose the following architecture as a good practice for maintaining catalogs.&lt;br /&gt;
&lt;br /&gt;
==Directory tree structure==&lt;br /&gt;
&lt;br /&gt;
===$TOMCAT_HOME/content/thredds===&lt;br /&gt;
*'''threddsConfig.xml''': configuration xml file of the Thredds server.&lt;br /&gt;
*'''catalog.xml''': catalog file containing links to all the subcatalogs containing the netcdf data.&lt;br /&gt;
**'''pcomsCatalog.xml''': catalog file pointed by the main catalog.&lt;br /&gt;
&lt;br /&gt;
====threddsConfig.xml====&lt;br /&gt;
Simply edit the file and enable the netcdf subset service.&lt;br /&gt;
 #threddsConfig.xml&lt;br /&gt;
  &amp;lt;!--&lt;br /&gt;
  The &amp;lt;NetcdfSubsetService&amp;gt; element:&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
  &amp;lt;NetcdfSubsetService&amp;gt;&lt;br /&gt;
    &amp;lt;allow&amp;gt;'''true'''&amp;lt;/allow&amp;gt;&lt;br /&gt;
    &amp;lt;dir&amp;gt;/data/tmp/thredds/ncSubsetCache/&amp;lt;/dir&amp;gt;&lt;br /&gt;
    &amp;lt;scour&amp;gt;15 min&amp;lt;/scour&amp;gt;&lt;br /&gt;
    &amp;lt;maxAge&amp;gt;30 min&amp;lt;/maxAge&amp;gt;&lt;br /&gt;
  &amp;lt;/NetcdfSubsetService&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====catalog.xml====&lt;br /&gt;
 #catalog.xml&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;catalog name=&amp;quot;THREDDS Server Default Catalog : You must change this to fit your server!&amp;quot;&lt;br /&gt;
        xmlns=&amp;quot;http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0&amp;quot;&lt;br /&gt;
        xmlns:xlink=&amp;quot;http://www.w3.org/1999/xlink&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;catalogRef xlink:title=&amp;quot;PCOMS Catalog&amp;quot; xlink:href=&amp;quot;/opendap/pcoms/pcomsCatalog.xml&amp;quot; name=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;/catalog&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====pcomsCatalog.xml====&lt;br /&gt;
 #pcomsCatalog.xml&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;catalog xmlns=&amp;quot;http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0&amp;quot; xmlns:xlink=&amp;quot;http://www.w3.org/1999/xlink&amp;quot;&lt;br /&gt;
   name=&amp;quot;Unidata THREDDS-IDD NetCDF-OpenDAP Server&amp;quot; version=&amp;quot;1.0.1&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;service name=&amp;quot;latest&amp;quot; serviceType=&amp;quot;Resolver&amp;quot; base=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;service name=&amp;quot;all&amp;quot; serviceType=&amp;quot;Compound&amp;quot; base=&amp;quot;&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;service name=&amp;quot;ncdods&amp;quot; serviceType=&amp;quot;OPENDAP&amp;quot; base=&amp;quot;/thredds/dodsC/&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;service name=&amp;quot;HTTPServer&amp;quot; serviceType=&amp;quot;HTTPServer&amp;quot; base=&amp;quot;/thredds/fileServer/&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;service name=&amp;quot;ncss&amp;quot; serviceType=&amp;quot;NetcdfSubset&amp;quot; base=&amp;quot;/thredds/ncss/grid/&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/service&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;dataset name=&amp;quot;PCOMS Model Data&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;metadata inherited=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;serviceName&amp;gt;all&amp;lt;/serviceName&amp;gt;&lt;br /&gt;
      &amp;lt;authority&amp;gt;maretec.ist.utl.pt&amp;lt;/authority&amp;gt;&lt;br /&gt;
      &amp;lt;dataType&amp;gt;Grid&amp;lt;/dataType&amp;gt;&lt;br /&gt;
      &amp;lt;dataFormat&amp;gt;NetCDF&amp;lt;/dataFormat&amp;gt;&lt;br /&gt;
      &amp;lt;documentation type=&amp;quot;rights&amp;quot;&amp;gt;Freely available&amp;lt;/documentation&amp;gt;&lt;br /&gt;
      &amp;lt;documentation xlink:href=&amp;quot;http://www.mohid.com/operational/&amp;quot; xlink:title=&amp;quot;Portuguese Coast Operational Modeling System&amp;quot;&amp;gt;&amp;lt;/documentation&amp;gt;&lt;br /&gt;
      &amp;lt;creator&amp;gt;&lt;br /&gt;
        &amp;lt;name vocabulary=&amp;quot;DIF&amp;quot;&amp;gt;Maretec/IST&amp;lt;/name&amp;gt;&lt;br /&gt;
        &amp;lt;contact url=&amp;quot;http://www.mohid.com/&amp;quot; email=&amp;quot;http://www.mohid.com/contacts.htm&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/creator&amp;gt;&lt;br /&gt;
      &amp;lt;publisher&amp;gt;&lt;br /&gt;
        &amp;lt;name vocabulary=&amp;quot;DIF&amp;quot;&amp;gt;Maretec/IST&amp;lt;/name&amp;gt;&lt;br /&gt;
        &amp;lt;contact url=&amp;quot;http://www.mohid.com/&amp;quot; email=&amp;quot;http://www.mohid.com/contacts.htm&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/publisher&amp;gt;&lt;br /&gt;
      &amp;lt;timeCoverage&amp;gt;&lt;br /&gt;
        &amp;lt;start&amp;gt;&amp;lt;/start&amp;gt;&lt;br /&gt;
        &amp;lt;end&amp;gt;present&amp;lt;/end&amp;gt;&lt;br /&gt;
      &amp;lt;/timeCoverage&amp;gt;&lt;br /&gt;
    &amp;lt;/metadata&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    &amp;lt;datasetScan name=&amp;quot;PCOMS Data&amp;quot; ID=&amp;quot;PcomsDatasetScan&amp;quot;&lt;br /&gt;
                 path=&amp;quot;pcoms&amp;quot; location=&amp;quot;/opendap/pcoms/&amp;quot;&lt;br /&gt;
                 harvest=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;metadata inherited=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;documentation type=&amp;quot;summary&amp;quot;&amp;gt;The PCOMS model consists of a downscaling of the Mercator-Ocean PSY3V1 north-atlantic solution for the Portuguese coast, where the fes2004 tide solution is added, and the surface forcing is performed using the atmospheric forecasts from the 9 km resolution MM5 model run at http://meteo.ist.utl.pt. The model is run in full baroclinic mode with an horizontal resolution of 6 km and with 43 layers in the vertical axis with finer resolution of 5 m near the surface.&amp;lt;/documentation&amp;gt;&lt;br /&gt;
        &amp;lt;geospatialCoverage zpositive=&amp;quot;down&amp;quot;&amp;gt;&lt;br /&gt;
          &amp;lt;northsouth&amp;gt;&lt;br /&gt;
            &amp;lt;start&amp;gt;34.4&amp;lt;/start&amp;gt;&lt;br /&gt;
            &amp;lt;size&amp;gt;10.6&amp;lt;/size&amp;gt;&lt;br /&gt;
            &amp;lt;units&amp;gt;degrees_north&amp;lt;/units&amp;gt;&lt;br /&gt;
          &amp;lt;/northsouth&amp;gt;&lt;br /&gt;
          &amp;lt;eastwest&amp;gt;&lt;br /&gt;
            &amp;lt;start&amp;gt;-12.6&amp;lt;/start&amp;gt;&lt;br /&gt;
            &amp;lt;size&amp;gt;7.1&amp;lt;/size&amp;gt;&lt;br /&gt;
            &amp;lt;units&amp;gt;degrees_east&amp;lt;/units&amp;gt;&lt;br /&gt;
          &amp;lt;/eastwest&amp;gt;&lt;br /&gt;
          &amp;lt;updown&amp;gt;&lt;br /&gt;
            &amp;lt;start&amp;gt;0&amp;lt;/start&amp;gt;&lt;br /&gt;
            &amp;lt;size&amp;gt;5500&amp;lt;/size&amp;gt;&lt;br /&gt;
            &amp;lt;units&amp;gt;m&amp;lt;/units&amp;gt;&lt;br /&gt;
          &amp;lt;/updown&amp;gt;&lt;br /&gt;
        &amp;lt;/geospatialCoverage&amp;gt;&lt;br /&gt;
        &amp;lt;variables vocabulary=&amp;quot;CF-1.0&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;variables vocabulary=&amp;quot;&amp;quot;&amp;gt;&lt;br /&gt;
          &amp;lt;variable name=&amp;quot;temperature&amp;quot; vocabulary_name=&amp;quot;temperature&amp;quot; units=&amp;quot;degC&amp;quot;&amp;gt;temperature&amp;lt;/variable&amp;gt;&lt;br /&gt;
          &amp;lt;variable name=&amp;quot;salinity&amp;quot; vocabulary_name=&amp;quot;salinity&amp;quot; units=&amp;quot;1e-3&amp;quot;&amp;gt;salinity&amp;lt;/variable&amp;gt;&lt;br /&gt;
          &amp;lt;variable name=&amp;quot;ssh&amp;quot; vocabulary_name=&amp;quot;ssh&amp;quot; units=&amp;quot;m&amp;quot;&amp;gt;sea water level&amp;lt;/variable&amp;gt;&lt;br /&gt;
          &amp;lt;variable name=&amp;quot;u&amp;quot; vocabulary_name=&amp;quot;u&amp;quot; units=&amp;quot;m/s&amp;quot;&amp;gt;east-west current velocity&amp;lt;/variable&amp;gt;&lt;br /&gt;
          &amp;lt;variable name=&amp;quot;v&amp;quot; vocabulary_name=&amp;quot;v&amp;quot; units=&amp;quot;m/s&amp;quot;&amp;gt;north-south current velocity&amp;lt;/variable&amp;gt;&lt;br /&gt;
          &amp;lt;variable name=&amp;quot;vm&amp;quot; vocabulary_name=&amp;quot;vm&amp;quot; units=&amp;quot;m/s&amp;quot;&amp;gt;current velocity modulus&amp;lt;/variable&amp;gt;&lt;br /&gt;
        &amp;lt;/variables&amp;gt;&lt;br /&gt;
      &amp;lt;/metadata&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
      &amp;lt;filter&amp;gt;&lt;br /&gt;
        &amp;lt;include wildcard=&amp;quot;PCOMSV1_*.nc&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/filter&amp;gt;&lt;br /&gt;
      &amp;lt;addID/&amp;gt;&lt;br /&gt;
      &amp;lt;sort&amp;gt;&lt;br /&gt;
        &amp;lt;lexigraphicByName increasing=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/sort&amp;gt;&lt;br /&gt;
      &amp;lt;addLatest/&amp;gt;&lt;br /&gt;
      &amp;lt;addDatasetSize/&amp;gt;&lt;br /&gt;
      &amp;lt;addTimeCoverage datasetNameMatchPattern=&amp;quot;PCOMSV1_([0-9]{4})([0-9]{2})([0-9]{2}).*.nc$&amp;quot;&lt;br /&gt;
                       startTimeSubstitutionPattern=&amp;quot;$1-$2-$3T00:00:00&amp;quot;&lt;br /&gt;
                       duration=&amp;quot;3 days&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/datasetScan&amp;gt;&lt;br /&gt;
  &amp;lt;/dataset&amp;gt;&lt;br /&gt;
 &amp;lt;/catalog&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Building thredds urls==&lt;br /&gt;
===Dataset===&lt;br /&gt;
* Viewing a ${catalog} file tree named ${catalog}.xml: &lt;br /&gt;
 http://data.mohid.com:8080/thredds/${catalog}.html&lt;br /&gt;
&lt;br /&gt;
* Viewing a specific ${dataset} thredds metadata:&lt;br /&gt;
 http://data.mohid.com:8080/thredds/${catalog}.html?dataset=${dataset.id}&lt;br /&gt;
&lt;br /&gt;
* Viewing a specific ${dataset}:&lt;br /&gt;
 http://data.mohid.com:8080/${dataset.service.base}/${dataset.urlpath}&lt;br /&gt;
&lt;br /&gt;
===DatasetScan===&lt;br /&gt;
* Viewing a particular ${datasetscan} tree from any ${catalog} in the thredds server:&lt;br /&gt;
 http://data.mohid.com:8080/thredds/catalog/${datasetscan.path}/catalog.html&lt;br /&gt;
&lt;br /&gt;
* Viewing a specific ${datasetscan.filteredfilename} thredds metadata:&lt;br /&gt;
 http://data.mohid.com:8080/thredds/catalog/${datasetscan.path}/catalog.html?dataset=${datasetscan.id}/${datasetscan.filteredfilename}.nc.html&lt;br /&gt;
&lt;br /&gt;
* Viewing a specific ${datasetscan.filteredfilename} dataset:&lt;br /&gt;
 http://data.mohid.com:8080/${datasetscan.service.base}/${datasetscan.path}/${datasetscan.filteredfilename}.nc.html&lt;br /&gt;
&lt;br /&gt;
==A sample catalog file==&lt;br /&gt;
&amp;lt;code&amp;gt;[XML]&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;catalog name=&amp;quot;MOHID THREDDS Server Catalog&amp;quot;&lt;br /&gt;
        xmlns=&amp;quot;http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0&amp;quot;&lt;br /&gt;
        xmlns:xlink=&amp;quot;http://www.w3.org/1999/xlink&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;service name=&amp;quot;MOHID DODS&amp;quot; serviceType=&amp;quot;OpenDAP&amp;quot; base=&amp;quot;/thredds/dodsC/&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;datasetRoot path=&amp;quot;test&amp;quot; location=&amp;quot;content/testdata/&amp;quot;/&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;dataset name=&amp;quot;Test Single Dataset&amp;quot; ID=&amp;quot;testDataset&amp;quot; serviceName=&amp;quot;MOHID DODS&amp;quot;&lt;br /&gt;
           urlPath=&amp;quot;test/testData.nc&amp;quot;/&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;datasetScan name=&amp;quot;Test all files in a directory&amp;quot; ID=&amp;quot;testDatasetScan&amp;quot;&lt;br /&gt;
               path=&amp;quot;testAll&amp;quot; location=&amp;quot;content/testdata&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    &amp;lt;metadata inherited=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;serviceName&amp;gt;MOHID DODS&amp;lt;/serviceName&amp;gt;&lt;br /&gt;
    &amp;lt;/metadata&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    &amp;lt;filter&amp;gt;&lt;br /&gt;
      &amp;lt;include wildcard=&amp;quot;*.nc&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/filter&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;/datasetScan&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;catalogRef xlink:title=&amp;quot;Test Enhanced Catalog&amp;quot; xlink:href=&amp;quot;enhancedCatalog.xml&amp;quot; name=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/catalog&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Tomcat]]&lt;br /&gt;
*[[OpenDAP]]&lt;br /&gt;
*[[LAS]]&lt;br /&gt;
&lt;br /&gt;
==External references==&lt;br /&gt;
*[http://www.unidata.ucar.edu/projects/THREDDS/tech/tutorial/GettingStarted.html Getting started]&lt;br /&gt;
*[http://data.mohid.com:8080/thredds/catalog.html MOHID Thredds data server]&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Luisfernandes</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Compiling_with_IFC&amp;diff=1372</id>
		<title>Compiling with IFC</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Compiling_with_IFC&amp;diff=1372"/>
				<updated>2009-02-06T16:30:48Z</updated>
		
		<summary type="html">&lt;p&gt;Luisfernandes: /* Release and Debug settings */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Please follow these instructions step by step and until the end:&lt;br /&gt;
&lt;br /&gt;
== Creating a new project ==&lt;br /&gt;
#Make sure you have installed in your computer Microsoft Visual Studio .NET 2003 and Intel Fortran Compiler 9.0. If you don’t have both installed, please install them&lt;br /&gt;
#Open Microsoft Visual Studio .NET 2003. &lt;br /&gt;
#Select '''&amp;quot;New Project&amp;quot;'''. &lt;br /&gt;
#Select Intel® FORTRAN Projects and then '''&amp;quot;Console Application&amp;quot;''' (Figure 12). Call the project, for example, &amp;quot;MohidWater&amp;quot;. Click OK.&lt;br /&gt;
#A window appears. Select option '''&amp;quot;Empty project&amp;quot;'''. Click OK.&lt;br /&gt;
#An empty project is created. Get all FORTRAN code files from SourceSafe and add them to the project. Right-click in the Source Files folder (in the project tree), and select &amp;quot;Add...Add Existing Item...&amp;quot;. Add all the files containing the [[modules]].&lt;br /&gt;
&lt;br /&gt;
== Release and Debug settings ==&lt;br /&gt;
Please follow the steps below and set them EXACTLY as they are presented. Do not make additional changes in the settings unless you’re testing some optimizations. Note that settings under &amp;quot;Debug&amp;quot; and &amp;quot;Release&amp;quot; configurations are slightly different. You can select &amp;quot;Release&amp;quot; configuration and apply this settings first and then do the same for &amp;quot;Debug&amp;quot; configuration or select &amp;quot;All configurations&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
#Now select &amp;quot;Project...Properties&amp;quot; and start editing your compilation settings.&lt;br /&gt;
#In &amp;quot;Fortran...General&amp;quot;, define the path to the folder where the HDF5 libraries will be placed, in the &amp;quot;Additional Include Directories&amp;quot; text box. Also set &amp;quot;Optimization&amp;quot; to '''&amp;quot;Maximize Speed plus Higher Level Optimizations&amp;quot;'''.&lt;br /&gt;
#In &amp;quot;Fortran...Optimization&amp;quot; define &amp;quot;I/O Buffering&amp;quot; to '''Yes''', and if you have an Intel Pentium 4 (R) processor, set &amp;quot;Use Intel(R) Processor Extensions&amp;quot; and set '''&amp;quot;Intel Pentium 4 (R) and compatible Intel processors&amp;quot;'''. Also set &amp;quot;Require Intel(R) Processor Extensions&amp;quot; to '''&amp;quot;Intel Pentium 4 (R) and compatible Intel processors&amp;quot;'''.&lt;br /&gt;
#In &amp;quot;Fortran...Preprocessor&amp;quot; set &amp;quot;Preprocessor Source File&amp;quot; to '''Yes''' and define again, in the Additional Include Directories text box, the path to the folder where the HDF5 libraries will be placed.&lt;br /&gt;
#In &amp;quot;Fortran...Language&amp;quot;, set the &amp;quot;Fixed Form Line Length&amp;quot; to '''&amp;quot;132 columns&amp;quot;'''&lt;br /&gt;
#In &amp;quot;Fortran...Diagnostics&amp;quot;, set &amp;quot;Warn For Non-Standard Fortran&amp;quot; to '''&amp;quot;Fortran 95&amp;quot;'''. Also, set the &amp;quot;Warn For Undeclared Symbols&amp;quot; to '''&amp;quot;Yes&amp;quot;''', &amp;quot;Warn For Unused Variables&amp;quot; to '''&amp;quot;Yes&amp;quot;''' and &amp;quot;Warn When Truncating Source Code Line&amp;quot; to '''&amp;quot;Yes&amp;quot;'''.&lt;br /&gt;
#In &amp;quot;Linker...General&amp;quot;, set &amp;quot;Enable Incremental Link&amp;quot; to '''&amp;quot;No&amp;quot;''' and &amp;quot;Supress Startup Banner&amp;quot; to '''&amp;quot;Yes&amp;quot;'''. Again in the Additional Include Directories text box, the path to the folder where the HDF5 libraries will be placed.&lt;br /&gt;
#Get the HDF5 libraries from SourceSafe, and place them in the folder you’ve specified previously. Note that the Intel compiler use different HDF5 libraries than the Compaq compiler. &lt;br /&gt;
#In &amp;quot;Linker.. Input&amp;quot;, write down the names of the libraries in the &amp;quot;Additional Dependencies&amp;quot; text box. The names for the .NET 2003 Visual Studio integration are: &lt;br /&gt;
 '''hdf5.lib hdf5_hl.lib hdf5c.lib hdf5f90.lib szlib.lib zlib.lib'''&lt;br /&gt;
&lt;br /&gt;
The names for the .NET 2005 Visual Studio integration are (note the libraries are different): &lt;br /&gt;
&lt;br /&gt;
 '''hdf5.lib hdf5_f90cstub.lib hdf5_fortran_frank.lib szlib.lib zlib.lib'''&lt;br /&gt;
&lt;br /&gt;
#In &amp;quot;Linker.. Input&amp;quot;, in &amp;quot;Ignore Additional Libraries&amp;quot; write down '''libc'''&lt;br /&gt;
&lt;br /&gt;
== Specific Debug settings ==&lt;br /&gt;
Select the &amp;quot;Debug&amp;quot; configuration and change the following settings groups:&lt;br /&gt;
#In &amp;quot;Fortran...General&amp;quot;, set &amp;quot;Supress Startup Banner&amp;quot; to '''&amp;quot;Yes&amp;quot;''', &amp;quot;Debug Information Format&amp;quot; to '''&amp;quot;Full&amp;quot;''' and &amp;quot;Optimization&amp;quot; to '''&amp;quot;Disable&amp;quot;'''.&lt;br /&gt;
#In &amp;quot;Fortran...Optimization&amp;quot;, set &amp;quot;Optimization&amp;quot; to '''&amp;quot;Disable&amp;quot;''' and &amp;quot;I/O Buffering&amp;quot; to '''Yes'''.&lt;br /&gt;
&lt;br /&gt;
== Build Solution ==&lt;br /&gt;
#Select &amp;quot;Build...Build Solution&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 '''IMPORTANT NOTE: you must copy &amp;quot;zlib1.dll&amp;quot; which is in the Source Safe folder “IntelLibs”, to'''&lt;br /&gt;
 '''&amp;quot;C:\Windows\system\&amp;quot; in order for the model to run.'''&lt;br /&gt;
&lt;br /&gt;
== Optional compilation settings ==&lt;br /&gt;
#To perform optional compilation, just add the compilation pre-processor keywords in &amp;quot;Properties...Fortran...PreProcessor&amp;quot;, in the &amp;quot;Preprocessor Definitions&amp;quot; text box.&lt;br /&gt;
&lt;br /&gt;
=== Exclude modules ===&lt;br /&gt;
Some modules can be completely excluded from compilation. If your simulations do not use these modules you can use this pre-processor keywords.&lt;br /&gt;
&lt;br /&gt;
 '''_LAGRANGIAN_'''	   excludes Modules Lagrangian + Jet + Oil&lt;br /&gt;
 '''_AIR_'''	           excludes Modules InterfaceWaterAir + Atmosphere&lt;br /&gt;
 '''_WAVES_'''	           excludes Module Waves&lt;br /&gt;
 '''_SEDIMENT_'''	   excludes Modules SedimentProperties + Consolidation&lt;br /&gt;
&lt;br /&gt;
=== Other options ===&lt;br /&gt;
Other keywords can also be used.&lt;br /&gt;
&lt;br /&gt;
 '''_USE_MPI'''           includes MPI code&lt;br /&gt;
 '''_SHORT_LINE_LENGTH''' sets line_length = 64  (default line_length is 256)&lt;br /&gt;
 '''_LONG_LINE_LENGTH'''  sets line_length = 1024(default line_length is 256)&lt;br /&gt;
 '''_GUI_'''              includes GUI code&lt;br /&gt;
&lt;br /&gt;
== Other IFC integrations ==&lt;br /&gt;
&lt;br /&gt;
For .NET Visual Studio 2005, In Linker -&amp;gt; Input -&amp;gt; Ignore Specific Library write down '''libc''' instead of '''libc.lib'''.&lt;br /&gt;
&lt;br /&gt;
[[Category:Programming]]&lt;br /&gt;
[[Category:Compiling]]&lt;/div&gt;</summary>
		<author><name>Luisfernandes</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Compiling_with_IFC&amp;diff=1371</id>
		<title>Compiling with IFC</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Compiling_with_IFC&amp;diff=1371"/>
				<updated>2009-02-06T16:30:36Z</updated>
		
		<summary type="html">&lt;p&gt;Luisfernandes: /* Release and Debug settings */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Please follow these instructions step by step and until the end:&lt;br /&gt;
&lt;br /&gt;
== Creating a new project ==&lt;br /&gt;
#Make sure you have installed in your computer Microsoft Visual Studio .NET 2003 and Intel Fortran Compiler 9.0. If you don’t have both installed, please install them&lt;br /&gt;
#Open Microsoft Visual Studio .NET 2003. &lt;br /&gt;
#Select '''&amp;quot;New Project&amp;quot;'''. &lt;br /&gt;
#Select Intel® FORTRAN Projects and then '''&amp;quot;Console Application&amp;quot;''' (Figure 12). Call the project, for example, &amp;quot;MohidWater&amp;quot;. Click OK.&lt;br /&gt;
#A window appears. Select option '''&amp;quot;Empty project&amp;quot;'''. Click OK.&lt;br /&gt;
#An empty project is created. Get all FORTRAN code files from SourceSafe and add them to the project. Right-click in the Source Files folder (in the project tree), and select &amp;quot;Add...Add Existing Item...&amp;quot;. Add all the files containing the [[modules]].&lt;br /&gt;
&lt;br /&gt;
== Release and Debug settings ==&lt;br /&gt;
Please follow the steps below and set them EXACTLY as they are presented. Do not make additional changes in the settings unless you’re testing some optimizations. Note that settings under &amp;quot;Debug&amp;quot; and &amp;quot;Release&amp;quot; configurations are slightly different. You can select &amp;quot;Release&amp;quot; configuration and apply this settings first and then do the same for &amp;quot;Debug&amp;quot; configuration or select &amp;quot;All configurations&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
#Now select &amp;quot;Project...Properties&amp;quot; and start editing your compilation settings.&lt;br /&gt;
#In &amp;quot;Fortran...General&amp;quot;, define the path to the folder where the HDF5 libraries will be placed, in the &amp;quot;Additional Include Directories&amp;quot; text box. Also set &amp;quot;Optimization&amp;quot; to '''&amp;quot;Maximize Speed plus Higher Level Optimizations&amp;quot;'''.&lt;br /&gt;
#In &amp;quot;Fortran...Optimization&amp;quot; define &amp;quot;I/O Buffering&amp;quot; to '''Yes''', and if you have an Intel Pentium 4 (R) processor, set &amp;quot;Use Intel(R) Processor Extensions&amp;quot; and set '''&amp;quot;Intel Pentium 4 (R) and compatible Intel processors&amp;quot;'''. Also set &amp;quot;Require Intel(R) Processor Extensions&amp;quot; to '''&amp;quot;Intel Pentium 4 (R) and compatible Intel processors&amp;quot;'''.&lt;br /&gt;
#In &amp;quot;Fortran...Preprocessor&amp;quot; set &amp;quot;Preprocessor Source File&amp;quot; to '''Yes''' and define again, in the Additional Include Directories text box, the path to the folder where the HDF5 libraries will be placed.&lt;br /&gt;
#In &amp;quot;Fortran...Language&amp;quot;, set the &amp;quot;Fixed Form Line Length&amp;quot; to '''&amp;quot;132 columns&amp;quot;'''&lt;br /&gt;
#In &amp;quot;Fortran...Diagnostics&amp;quot;, set &amp;quot;Warn For Non-Standard Fortran&amp;quot; to '''&amp;quot;Fortran 95&amp;quot;'''. Also, set the &amp;quot;Warn For Undeclared Symbols&amp;quot; to '''&amp;quot;Yes&amp;quot;''', &amp;quot;Warn For Unused Variables&amp;quot; to '''&amp;quot;Yes&amp;quot;''' and &amp;quot;Warn When Truncating Source Code Line&amp;quot; to '''&amp;quot;Yes&amp;quot;'''.&lt;br /&gt;
#In &amp;quot;Linker...General&amp;quot;, set &amp;quot;Enable Incremental Link&amp;quot; to '''&amp;quot;No&amp;quot;''' and &amp;quot;Supress Startup Banner&amp;quot; to '''&amp;quot;Yes&amp;quot;'''. Again in the Additional Include Directories text box, the path to the folder where the HDF5 libraries will be placed.&lt;br /&gt;
#Get the HDF5 libraries from SourceSafe, and place them in the folder you’ve specified previously. Note that the Intel compiler use different HDF5 libraries than the Compaq compiler. &lt;br /&gt;
#In &amp;quot;Linker.. Input&amp;quot;, write down the names of the libraries in the &amp;quot;Additional Dependencies&amp;quot; text box. The names for the .NET 2003 Visual Studio integration are: &lt;br /&gt;
 '''hdf5.lib hdf5_hl.lib hdf5c.lib hdf5f90.lib szlib.lib zlib.lib'''&lt;br /&gt;
&lt;br /&gt;
The names for the .NET 2005 Visual Studio integration are (note the libraries are different): &lt;br /&gt;
&lt;br /&gt;
 '''hdf5.lib hdf5_f90cstub.lib hdf5_fortran_frank.lib szlib.lib zlib.lib'''&lt;br /&gt;
&lt;br /&gt;
#In &amp;quot;Linker.. Input&amp;quot;, in &amp;quot;Ignore Additional Libraries&amp;quot; write down ''libc''&lt;br /&gt;
&lt;br /&gt;
== Specific Debug settings ==&lt;br /&gt;
Select the &amp;quot;Debug&amp;quot; configuration and change the following settings groups:&lt;br /&gt;
#In &amp;quot;Fortran...General&amp;quot;, set &amp;quot;Supress Startup Banner&amp;quot; to '''&amp;quot;Yes&amp;quot;''', &amp;quot;Debug Information Format&amp;quot; to '''&amp;quot;Full&amp;quot;''' and &amp;quot;Optimization&amp;quot; to '''&amp;quot;Disable&amp;quot;'''.&lt;br /&gt;
#In &amp;quot;Fortran...Optimization&amp;quot;, set &amp;quot;Optimization&amp;quot; to '''&amp;quot;Disable&amp;quot;''' and &amp;quot;I/O Buffering&amp;quot; to '''Yes'''.&lt;br /&gt;
&lt;br /&gt;
== Build Solution ==&lt;br /&gt;
#Select &amp;quot;Build...Build Solution&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 '''IMPORTANT NOTE: you must copy &amp;quot;zlib1.dll&amp;quot; which is in the Source Safe folder “IntelLibs”, to'''&lt;br /&gt;
 '''&amp;quot;C:\Windows\system\&amp;quot; in order for the model to run.'''&lt;br /&gt;
&lt;br /&gt;
== Optional compilation settings ==&lt;br /&gt;
#To perform optional compilation, just add the compilation pre-processor keywords in &amp;quot;Properties...Fortran...PreProcessor&amp;quot;, in the &amp;quot;Preprocessor Definitions&amp;quot; text box.&lt;br /&gt;
&lt;br /&gt;
=== Exclude modules ===&lt;br /&gt;
Some modules can be completely excluded from compilation. If your simulations do not use these modules you can use this pre-processor keywords.&lt;br /&gt;
&lt;br /&gt;
 '''_LAGRANGIAN_'''	   excludes Modules Lagrangian + Jet + Oil&lt;br /&gt;
 '''_AIR_'''	           excludes Modules InterfaceWaterAir + Atmosphere&lt;br /&gt;
 '''_WAVES_'''	           excludes Module Waves&lt;br /&gt;
 '''_SEDIMENT_'''	   excludes Modules SedimentProperties + Consolidation&lt;br /&gt;
&lt;br /&gt;
=== Other options ===&lt;br /&gt;
Other keywords can also be used.&lt;br /&gt;
&lt;br /&gt;
 '''_USE_MPI'''           includes MPI code&lt;br /&gt;
 '''_SHORT_LINE_LENGTH''' sets line_length = 64  (default line_length is 256)&lt;br /&gt;
 '''_LONG_LINE_LENGTH'''  sets line_length = 1024(default line_length is 256)&lt;br /&gt;
 '''_GUI_'''              includes GUI code&lt;br /&gt;
&lt;br /&gt;
== Other IFC integrations ==&lt;br /&gt;
&lt;br /&gt;
For .NET Visual Studio 2005, In Linker -&amp;gt; Input -&amp;gt; Ignore Specific Library write down '''libc''' instead of '''libc.lib'''.&lt;br /&gt;
&lt;br /&gt;
[[Category:Programming]]&lt;br /&gt;
[[Category:Compiling]]&lt;/div&gt;</summary>
		<author><name>Luisfernandes</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Convert2netcdf&amp;diff=1297</id>
		<title>Convert2netcdf</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Convert2netcdf&amp;diff=1297"/>
				<updated>2009-02-03T18:47:45Z</updated>
		
		<summary type="html">&lt;p&gt;Luisfernandes: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
'''Convert2netcdf''' is a tool to convert MOHID results files written in [[HDF5]] format into [[netcdf]]. &lt;br /&gt;
This tool makes use of [[ModuleNETCDF]] (under development and to be included in [[MOHID Base 1]]). Optionally, you can extract only specified datasets.&lt;br /&gt;
&lt;br /&gt;
== Input data file == &lt;br /&gt;
The input data file must be placed in the working folder and must be named ''Convert2netcdf.dat''. &lt;br /&gt;
&lt;br /&gt;
 HDF_FILE             : [char]    !Path to the HDF5 file to be converted&lt;br /&gt;
 HDF_SIZE_GROUP       : [char]    !HDF group containing the HDF dataset from where &lt;br /&gt;
                                  !the dimensions will be read&lt;br /&gt;
 HDF_SIZE_DATASET     : [char]    !Name of the HDF dataset from where the dimensions&lt;br /&gt;
                                  !will be read&lt;br /&gt;
 HDF_TIME_VAR         : [char]    !Name of the HDF group containing the &lt;br /&gt;
                                  !time values&lt;br /&gt;
 HDF_READ_LATLON      : int       !Type of projection (0 - metric, 1 - lat/lon)&lt;br /&gt;
 HDF_READ_SIGMA       : int       !Type of vertical coordinate (0 - cartesian, 1 - sigma)&lt;br /&gt;
 &lt;br /&gt;
 IMPOSE_MASK          : bool      !In case we want to specify the mask variable.&lt;br /&gt;
 HDF_MASK             : [char]    !If we chose to specify a mask variable, then we define here&lt;br /&gt;
                                  !the variable name&lt;br /&gt;
 HDF_MASK_IS_3D       : bool      !Is the mask variable 3D? yes or no.&lt;br /&gt;
 RESULTS_ARE_2D       : bool      !Sometimes the mask variable is 3D, but the results&lt;br /&gt;
 &lt;br /&gt;
 CONVERT_EVERYTHING   : int       !0 - Don't convert everything, 1 - Convert everything&lt;br /&gt;
 VGROUP_TO_CONVERT    : [char]    !Path to dataset(s) to converto. (e.g. /Results/water level)&lt;br /&gt;
 &lt;br /&gt;
 NETCDF_FILE          : [char]    !netcdf file to be created&lt;br /&gt;
 NETCDF_TITLE         : [char]    !netcdf file title &lt;br /&gt;
 NETCDF_CONVENTION    : [char]    !netcdf naming convention   &lt;br /&gt;
 NETCDF_VERSION       : [char]    !netcdf library version&lt;br /&gt;
 NETCDF_HISTORY       : [char]    !netcdf file history&lt;br /&gt;
 NETCDF_SOURCE        : [char]    !netcdf file source &lt;br /&gt;
 NETCDF_INSTITUTION   : [char]    !netcdf institution&lt;br /&gt;
 NETCDF_REFERENCES    : [char]    !netcdf references&lt;br /&gt;
 NETCDF_DATE          : int       !current year&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
 HDF_FILE             : WaterProperties_1.hdf5&lt;br /&gt;
 HDF_SIZE_GROUP       : /Grid&lt;br /&gt;
 HDF_SIZE_DATASET     : WaterPoints3D&lt;br /&gt;
 HDF_TIME_VAR         : Time&lt;br /&gt;
 HDF_READ_LATLON      : 1&lt;br /&gt;
 CONVERT_EVERYTHING   : 0&lt;br /&gt;
 VGROUP_TO_CONVERT    : /Results/salinity&lt;br /&gt;
 &lt;br /&gt;
 NETCDF_FILE          : WaterProperties_1.nc&lt;br /&gt;
 NETCDF_TITLE         : WaterProperties file converted to netcdf &lt;br /&gt;
 NETCDF_CONVENTION    : CF-1.0&lt;br /&gt;
 NETCDF_VERSION       : 3.6.1&lt;br /&gt;
 NETCDF_HISTORY       : Converted from hdf5&lt;br /&gt;
 NETCDF_SOURCE        : File created by MOHID-Convert2ncdf&lt;br /&gt;
 NETCDF_INSTITUTION   : Instituto Superior Técnico (IST)&lt;br /&gt;
 NETCDF_REFERENCES    : http://www.mohid.com/&lt;br /&gt;
 NETCDF_DATE          : 2006&lt;br /&gt;
&lt;br /&gt;
 CONVERT_EVERYTHING            : 0&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_groups&amp;gt;&lt;br /&gt;
 /Results/temperature&lt;br /&gt;
 /Results/salinity&lt;br /&gt;
 &amp;lt;end_groups&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;/div&gt;</summary>
		<author><name>Luisfernandes</name></author>	</entry>

	</feed>