<?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=192.168.20.148&amp;*</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=192.168.20.148&amp;*"/>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Special:Contributions/192.168.20.148"/>
		<updated>2026-04-04T14:16:34Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Setup_a_MOHID_simulation_using_MPI&amp;diff=849</id>
		<title>Setup a MOHID simulation using MPI</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Setup_a_MOHID_simulation_using_MPI&amp;diff=849"/>
				<updated>2008-11-17T17:54:42Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Windows ==&lt;br /&gt;
&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
&lt;br /&gt;
In order to run a simulation using MPI in MOHID you must fulfill the following requirements:&lt;br /&gt;
# These instructions are specific of a MOHID application running under the MS Windows.&lt;br /&gt;
# Remember this can only be applied if you have at least one nested domain.&lt;br /&gt;
# Make sure you have an executable file which was compiled together with MPI libraries and is able to be run in parallel. Learn more on [[compiling Mohid with MPI]].&lt;br /&gt;
# In order to take advantage of the [[parallel processing]] features make sure you have  one processor available for each domain and sub-domains coupled in your simulation. &lt;br /&gt;
# Make sure that you have installed [[MPICH]] 2.0.x (download [http://www.mcs.anl.gov/research/projects/mpich2/ here])in each PC available for the simulation. To make sure MPICH is installed correctly and working properly, go to MS Windows Task Manager and look for a service called '''mdm.exe'''. In addition you should also follow all the instructions provided during the MPICH installation. Make sure that you've added MPICH installation folder to the PATH environmental variable. Just go to Control Panel -&amp;gt; System -&amp;gt; Advanced -&amp;gt; Environmental Variables. In the &amp;quot;System Variables&amp;quot; select the PATH variable and press Edit. Then add to the end of the string &amp;quot;C:\Program Files\MPICH2\bin&amp;quot;, which is the path to where the mpirun.exe is installed. You need to install MPICH in every computer that you which to use. You may need to restart the computers after the installation, in order to get everything running. &lt;br /&gt;
&lt;br /&gt;
==== Setup the simulation ====&lt;br /&gt;
# Setup the simulation with nested domains exactly the same way as in a normal simulation. Use [[MOHID GUI]] for an easier setup. No other specific configuration is necessary at this point&lt;br /&gt;
# Test the simulation by executing the model in a single machine&lt;br /&gt;
# Go to the '''\exe''' folder in the ''father'' domain. There you must find at least 2 files. &lt;br /&gt;
## [[nomfich.dat]]&lt;br /&gt;
## [[Tree.dat]]&lt;br /&gt;
&lt;br /&gt;
==== MPI command line ====&lt;br /&gt;
The command line shown bellow is the simplest way to run Mohid using MPI: &lt;br /&gt;
 &amp;gt;mpiexec -np 2 -localonly M:\aplica\MPI\FATHER\exe\MohidWater.MPI.exe&lt;br /&gt;
In the above example MohidWater is running with 2 processes, using only local machine's resources.&lt;br /&gt;
&lt;br /&gt;
To run MohidWater using multiple computers use something like this:&lt;br /&gt;
 &amp;gt;mpiexec  -hosts 2 RICARDOM-VM 1 FRANK-FIXO 2 -map M:\\RICARDOM-VM\projects &lt;br /&gt;
 M:\aplica\MPI\FATHER\exe\MohidWater.MPI.exe&lt;br /&gt;
Both machines are required to have the same executable. Here a explicit map is made so that both machines know where the executable is.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
# Remember this can only be applied if you have at least one nested domain.&lt;br /&gt;
# Make sure you have an executable file which was compiled together with MPI libraries and is able to be run in parallel. Learn more on [[compiling Mohid with MPI]].&lt;br /&gt;
# In order to take advantage of the [[parallel processing]] features make sure you have  one processor available for each domain and sub-domains coupled in your simulation. &lt;br /&gt;
# Make sure that you have installed an mpd daemon. Refer to the linux instructions in [[compiling Mohid with MPI]].&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Mohid_PostProcessor&amp;diff=635</id>
		<title>Mohid PostProcessor</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Mohid_PostProcessor&amp;diff=635"/>
				<updated>2008-05-09T16:18:30Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: /* ROI */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
&lt;br /&gt;
[[Image:PostProcessorSample.jpg|200px|thumb|right|'''Example of plots made with MOHID PostProcessor''']]&lt;br /&gt;
&lt;br /&gt;
Mohid Postprocessor is a graphical user interface which displays data stored in HDF5 files as animation on the screen. Mohid Postprocessor is written in FORTRAN and uses OpenGL to display the results. This tool allows you to visualize the temporal evolution and spatial distribution of any property as a continuous animation. &lt;br /&gt;
&lt;br /&gt;
The data can be displayed in several ways like, color maps, isolines, vector plots and particle (for the lagrangian model). The display can be done in different views: XY slice, XZ slice, YZ slice, TZ slice or 3D cube. &lt;br /&gt;
&lt;br /&gt;
Usually Mohid Postprocessor will be launched directly from [[Mohid GUI]], opening directly the file chosen by the user (see  [[Mohid GUI#Switching to Post Processing Mode|Switching to Post Processing Mode]]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Main window ==&lt;br /&gt;
This window is divided into three main areas: (i) HDF Tree View on the left, (ii) Selection Buttons in the middle and (iii) Selection Lists on the right.&lt;br /&gt;
&lt;br /&gt;
[[Image:PostProcessorMainWindow.png|300px|thumb|centre|'''MOHID PostProcessor main window''']]&lt;br /&gt;
&lt;br /&gt;
=== HDF tree ===&lt;br /&gt;
The HDF Tree displays, in a hierarchical way, the contents of an [[HDF5 file]]. The tree consists of a file which has several groups which themselves have several datasets.&lt;br /&gt;
&lt;br /&gt;
=== Selection Buttons ===&lt;br /&gt;
The selection buttons allow to transfer selected data items in the HDF Tree to the Selected Data Lists. For instance, to display temperature as color map, select the correspondent HDF item in the HDF Tree and then press the Color button (the first button of the selection buttons). The information will pass to the Selected Data Lists. By selecting a group of data items, all datasets in that group will pass to the Selected Data Lists.&lt;br /&gt;
&lt;br /&gt;
=== Selected Data Lists ===&lt;br /&gt;
The Selected Data Lists display the data which is select to be displayed. To remove data from any of the lists, select the data items to remove and choose in the PostProcessor main menu, Action -&amp;gt; Delete.&lt;br /&gt;
&lt;br /&gt;
== Step by Step ==&lt;br /&gt;
&lt;br /&gt;
=== Open a HDF5 file ===&lt;br /&gt;
Open one or more HDF files.&lt;br /&gt;
&lt;br /&gt;
=== Selecting Spatial Information ===&lt;br /&gt;
Select the grid over which to represent the data.&lt;br /&gt;
&lt;br /&gt;
=== Selecting Information to Display ===&lt;br /&gt;
Select the data to represent.&lt;br /&gt;
&lt;br /&gt;
=== Loading the Data ===&lt;br /&gt;
Load the data.&lt;br /&gt;
&lt;br /&gt;
=== Image Settings ===&lt;br /&gt;
Adjust the settings of the data.&lt;br /&gt;
&lt;br /&gt;
=== OpenGL Window ===&lt;br /&gt;
Display the data.&lt;br /&gt;
&lt;br /&gt;
=== Save the Images ===&lt;br /&gt;
Save the images.&lt;br /&gt;
&lt;br /&gt;
==ROI==&lt;br /&gt;
The ROI selects the region of interest to plot. You can plot maps (XY), sections (XZ and YZ), vertical profile time series (TZ) and in 3D.&lt;br /&gt;
&lt;br /&gt;
When plotting sections or in 3D, the factor in the Z scale depends on the ratio between the size of the horizontal domain and the maximum depth of the water column at the specified section or, if when plotting in 3D, of the entire domain.&lt;br /&gt;
&lt;br /&gt;
Take into account that the size of the horizontal domain depends on whether you load the metric coordinates (ConnectionX and ConnectionY) or the geographical coordinates (Latitude and Longitude). This is because the Post-Processor, when drawing the images, does not regard the units of the distances, but only its value. &lt;br /&gt;
&lt;br /&gt;
For example, if you load ConnectionX and ConnectionY and your domain has 1000x1000km and 1000m of maximum depth, you have an horizontal plane which is 1000 times bigger than the vertical plane. Normally, to better understand the plot a ratio of 1:50 up to 1:100 is recommended, thus you should use a factor for Z of around 10 (1:100) to 20 (1:50). &lt;br /&gt;
&lt;br /&gt;
If you load Latitude and Longitude, and you domain ranges from, e.g. 35º-45ºN and 16º-6ºW, thus a 10ºx10º domain and the same 1000m maximum depth, then your horizontal plane is 100 smaller than the vertical plane, because the ratio is computed based on the coordinates values not regarding the distance units. In this case you should use a Z factor of around 0.01 or 0.005. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Graphical User Interfaces]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Compiling_Mohid_with_MPI&amp;diff=122</id>
		<title>Compiling Mohid with MPI</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Compiling_Mohid_with_MPI&amp;diff=122"/>
				<updated>2008-05-07T14:22:03Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: /* Compile with CVF on Windows */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Compile with Compaq Visual Fortran on Windows ==&lt;br /&gt;
To compile Mohid with Compaq Visual Fortran 6.6c using [[MPI]] (MPICH2) in Windows please follow this steps:&lt;br /&gt;
&lt;br /&gt;
#Setup a Mohid Project to compile with Compaq Visual Fortran (CVF6.6c). See more on [[Compiling with CVF]].&lt;br /&gt;
#Make sure that in the same folder where the HDF5 libraries are placed you have the '''fmpich2s.lib''' file. If not, get it from SourceSafe. &lt;br /&gt;
#Create new configuration by going to &amp;quot;Build...Configurations&amp;quot;. &lt;br /&gt;
#Click &amp;quot;Add&amp;quot;. &lt;br /&gt;
#Name your new configuration e.g. &amp;quot;MPI&amp;quot;.&lt;br /&gt;
#Select &amp;quot;Release&amp;quot; configuration from the &amp;quot;Copy settings from&amp;quot; dropdown box&lt;br /&gt;
#Press &amp;quot;OK&amp;quot;, and then &amp;quot;Close&amp;quot;.&lt;br /&gt;
#Go to &amp;quot;Project...Settings&amp;quot;&lt;br /&gt;
#Select the &amp;quot;Fortran&amp;quot; tab and &amp;quot;Preprocessor&amp;quot; in the &amp;quot;Category&amp;quot; dropdown box&lt;br /&gt;
#Include the '''_USE_MPI''' keyword in the &amp;quot;Predefined Preprocessor Symbols&amp;quot; text box&lt;br /&gt;
#Select the &amp;quot;Link&amp;quot; tab&lt;br /&gt;
#Select &amp;quot;General&amp;quot; in the &amp;quot;Category&amp;quot; dropdown box &lt;br /&gt;
#Add '''fmpich2s.lib''' at the &amp;quot;Object/library modules&amp;quot; text box&lt;br /&gt;
&lt;br /&gt;
== Compile with Intel Fortran Compiler on Windows ==&lt;br /&gt;
To compile Mohid with Intel Fortran Compiler 9.x (IFC) using [[MPI]] in Windows please follow this steps:&lt;br /&gt;
# You must have installed MPICH2 in your PC (and in the ones you which to use).&lt;br /&gt;
# Setup a Mohid Project to compile with IFC. See more on [[Compiling with IFC]].&lt;br /&gt;
# Make sure that in the same folder where the HDF5 libraries are placed you have the '''fmpich2.lib''' file. If not, get it from [[SourceSafe]].&lt;br /&gt;
# Create new configuration by going to &amp;quot;Build...Configurations&amp;quot;.&lt;br /&gt;
# Select &amp;quot;&amp;lt;New...&amp;gt;&amp;quot; from the &amp;quot;Active Solution Configuration&amp;quot; dropdown box&lt;br /&gt;
# Name your new configuration in the &amp;quot;Solution Configuration Name&amp;quot; text box (e.g. &amp;quot;MPI&amp;quot;)&lt;br /&gt;
# Select &amp;quot;Release&amp;quot; configuration from the &amp;quot;Copy settings from&amp;quot; dropdown box&lt;br /&gt;
# Press &amp;quot;OK&amp;quot;, and then &amp;quot;Close&amp;quot;.&lt;br /&gt;
# Go to &amp;quot;Project...Properties&amp;quot;&lt;br /&gt;
# Select &amp;quot;Fortran&amp;quot; and then &amp;quot;Preprocessor&amp;quot; in the &amp;quot;Configuration Properties&amp;quot; tree view menu &lt;br /&gt;
# Include the '''_USE_MPI''' keyword in the &amp;quot;Preprocessor Definition&amp;quot; text box&lt;br /&gt;
# Select the &amp;quot;Linker&amp;quot; and then &amp;quot;Input&amp;quot;&lt;br /&gt;
# Add '''fmpich2.lib''' in the &amp;quot;Additional Dependencies&amp;quot; text box&lt;br /&gt;
# Press the &amp;quot;Apply&amp;quot; button and then &amp;quot;OK&amp;quot;&lt;br /&gt;
# Rebuild&lt;br /&gt;
&lt;br /&gt;
== Compile with IFC on Linux ==&lt;br /&gt;
*Build the mpich libraries:&lt;br /&gt;
 &amp;gt;./configure --enable-f90 --enable-romio&lt;br /&gt;
 &amp;gt;make&lt;br /&gt;
 &amp;gt;make testing&lt;br /&gt;
 &amp;gt;make install&lt;br /&gt;
*Build the hdf5 libs with [[MPI]]:&lt;br /&gt;
 CC=mpicc F9X=mpif90 ./configure --enable-fortran --disable-shared --prefix=/home/guillaume/Projects/hdf5/hdf5-1.6.5/hdf5_mpi&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
*Build MohidWater with [[MPI]]&lt;br /&gt;
 make nix_mpi&lt;br /&gt;
Basically ''nix_mpi'' uses ''mpif90'' instead of ''ifort'' and appends the argument ''-D_USE_MPI'' in the ''CCFLAGS'' environment variable.&lt;br /&gt;
[[Category:Programming]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:Windows]]&lt;br /&gt;
[[Category:Compiling]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_EnterData&amp;diff=530</id>
		<title>Module EnterData</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_EnterData&amp;diff=530"/>
				<updated>2008-03-13T15:21:51Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
&lt;br /&gt;
In MOHID all input data is handled by a generic input data module, ModuleEnterData. This module is used by all the other modules in MOHID which need an input data file with the compute options definition.&lt;br /&gt;
&lt;br /&gt;
The reading procedure used by ModuleEnterData is quite simple and works with a client/server methodology, being ModuleEnterData the server and the other modules the client. &lt;br /&gt;
Thus, a module that needs information from an input file requests ModuleEnterData to read it, having only to provide the filename. The file is then opened and given a unique identification number. Data is read line by line and all information is stored in memory, so that the client module can access it by means of specific query methods (e.g. [[GetData]]) for each type of information. &lt;br /&gt;
When all the data has been fully and successfully extracted, the file is closed and the allocated memory released. &lt;br /&gt;
&lt;br /&gt;
This methodology using a generic interface module for input data has proven to be extremely efficient in terms of programming allowing reading new information in a straightforward way, reducing programming errors and allowing code developers to focus more on their expertise scientific area of the model rather then on complex input programming syntax and routines. Also it reduces input data errors as it standardizes the format of the input files and the methods to access data in those files.&lt;br /&gt;
&lt;br /&gt;
== ASCII data files syntax ==&lt;br /&gt;
&lt;br /&gt;
Input data in MOHID is based on ASCII files, enabling platform independency as the model is able to run without the use of a graphical user interface, normally designed specifically for each operating system. &lt;br /&gt;
&lt;br /&gt;
Files are organized by keywords and information blocks, which can pile up to three hierarchical levels and aggregate groups of keywords. This format can be seen likewise a simple Mark-Up Language. File generation can be made manually, using a text editor, or, in some cases, by using MOHID graphical user interface ([[MOHID GUI]]).&lt;br /&gt;
&lt;br /&gt;
The maximum number of characters per line is restricted to 256. As each line contains only one instruction, this restriction does not represent any practical limitation to the user. Files can have blank lines and keywords don’t have to follow any specific order.  This reduces the effort of preparing input data files in a rigid format and reduces input data errors. &lt;br /&gt;
With exception to some cases, all the reading ([[keywords]], keyword values, [[blocks]] definition tags) is case sensitive, so caution is advised in the preparation of the files because recognition is only achieved by full correspondence of characters in the code and in the data files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''WARNING''': Comment lines can NOT have &amp;quot;:&amp;quot; character. For example if &amp;quot;:&amp;quot; character appears in the end of the sentence results in an error, because Module EnterData is expecting to read a value after the &amp;quot;:&amp;quot; character.&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;br /&gt;
[[Category:Input Data Formats]]&lt;br /&gt;
[[Category:MOHID Base 1]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_InterfaceSedimentWater&amp;diff=559</id>
		<title>Module InterfaceSedimentWater</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_InterfaceSedimentWater&amp;diff=559"/>
				<updated>2008-02-07T15:23:33Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: /* Maps (HDF5 format) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview == &lt;br /&gt;
The sediment-water interface module computes boundary conditions at the bottom of the water column. It computes shear stress as a boundary condition to the hydrodynamic and turbulence modules. It is also responsible for computing fluxes at the water-sediment interface, managing boundary conditions to both the water column properties and the sediment column properties.&lt;br /&gt;
Both in the water column or in the sediment column, properties can be either dissolved or particulate. The evolution of dissolved properties depends greatly on the water fluxes, both in the water column and in the sediment interstitial water. Particulate properties evolution in the water column depends also on the water fluxes and on settling velocity. Once deposited in the bottom they can either stay there or be ressuspended back to the water column. If they stay there for a determined period of time, they can become part of the sediment compartment by consolidation.&lt;br /&gt;
&lt;br /&gt;
== Momentum fluxes ==&lt;br /&gt;
&lt;br /&gt;
=== Bottom shear stress induced by currents ===&lt;br /&gt;
&lt;br /&gt;
In the bottom boundary, advective fluxes are imposed as null and diffusive flux of momentum is estimated by means of a bottom stress. This shear stress can be calculated based on near-bed currents and also on stress induced by surface waves.&lt;br /&gt;
 &lt;br /&gt;
==== Manning formulation ====&lt;br /&gt;
&lt;br /&gt;
==== Logarithmic law of the wall ====&lt;br /&gt;
&lt;br /&gt;
Currents induced bottom shear stress is calculated by a non-slipping condition method with a quadratic law that depends on the near-bottom velocity. Thus, the diffusive term at the bottom is written as:&lt;br /&gt;
&lt;br /&gt;
EQUATION 1&lt;br /&gt;
&lt;br /&gt;
Where CD is the bottom drag coefficient that is calculated with the expression:&lt;br /&gt;
 &lt;br /&gt;
Where κ is von Karman constant and zb0 is the bottom roughness length. This quadratic law is derived from the logarithmic law of the wall near boundaries characteristic of boundary layers, as the bottom velocities are located half a grid box above the bottom. This term is calculated semi-implicitly following Backhaus [1985] for numerical stability reasons.&lt;br /&gt;
&lt;br /&gt;
=== Bottom shear stress induced by surface waves ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Surface waves exert friction forces at the bed during propagation. The bed shear stress is related to the friction coefficient by:&lt;br /&gt;
 &lt;br /&gt;
In which:&lt;br /&gt;
Instantaneous bed-shear stress [N/m2]&lt;br /&gt;
Friction coefficient [dimensionless]&lt;br /&gt;
Instantaneous fluid velocity just outside boundary layer [m/s]&lt;br /&gt;
Fluid density [kg/m3]&lt;br /&gt;
The friction factor fw is assumed to be constant over the wave cycle and is determined from the peak values as: &lt;br /&gt;
 &lt;br /&gt;
The time-average (over a wave cycle) bed shear stress is: &lt;br /&gt;
 &lt;br /&gt;
In the rough turbulent regime Jonsson (1966 in van Rijn, 1989) proposed:&lt;br /&gt;
  &lt;br /&gt;
fw,max=0.3for &lt;br /&gt;
Where ks stands for bed roughness [m]&lt;br /&gt;
&lt;br /&gt;
== Mass fluxes ==&lt;br /&gt;
&lt;br /&gt;
=== Particulate matter transport ===&lt;br /&gt;
&lt;br /&gt;
==== Erosion ====&lt;br /&gt;
&lt;br /&gt;
==== Deposition ====&lt;br /&gt;
&lt;br /&gt;
=== Ecology and water quality ===&lt;br /&gt;
&lt;br /&gt;
==== Benthos ====&lt;br /&gt;
&lt;br /&gt;
==== BenthicCEQUALW2 ====&lt;br /&gt;
&lt;br /&gt;
==== Detritus ====&lt;br /&gt;
&lt;br /&gt;
== Outputs ==&lt;br /&gt;
&lt;br /&gt;
=== Time series ===&lt;br /&gt;
&lt;br /&gt;
=== Box integration ===&lt;br /&gt;
&lt;br /&gt;
=== Maps (HDF5 format) ===&lt;br /&gt;
In InterfaceSedimentWater results, for the dissolved properties (e.g. ammonia) the concentration is always zero, because it is considered that all the dissolved mass is released to water column (e.g. ammonia as a product of organic matter mineralization). &lt;br /&gt;
&lt;br /&gt;
In InterfaceSedimentWater results the flux to water for the dissolved properties ammonia, oxygen, inorganic phosphorus, particulate organic phosphorus and particulate organic nitrogen can sometimes present a negative value due to rounding errors in computing the fluxes. In these case the negatives value should be considered as zero.&lt;br /&gt;
&lt;br /&gt;
=== Statistics ===&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
*Krone, R., 1962, Flume Studies of the Transport in Estuaries Shoaling Processes, Hydr. Eng. Lab., University of Berkeley, California, USA&lt;br /&gt;
*Mehta, J., 1988, Laboratory Studies on Cohesive Sediment Deposition and Erosion, Physical Processes in Estuaries, Springer-Verlag, Berlin Heidelberg New York, Job Dronkers and Wim van Leussen (Editors)&lt;br /&gt;
*Partheniades, E., 1965, Erosion and Deposition of Cohesive Soils, J. Hydr. Div., ASCE, 91 (1), 105-139&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;br /&gt;
[[Category:MOHID Water]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_Benthos&amp;diff=518</id>
		<title>Module Benthos</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_Benthos&amp;diff=518"/>
				<updated>2008-02-07T15:18:48Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: /* Useful notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview == &lt;br /&gt;
&lt;br /&gt;
Module Benthos is a zero-dimensional biogeochemical model and was designed to compute, using simple model formulations, some of the main benthic biogeochemical processes occurring in an aquatic system:&lt;br /&gt;
(i)	Algae mortality, if algae are considered as a particulate property that can sink and deposit, then if deposited a mortality rate is applied;&lt;br /&gt;
(ii)	Particulate organic matter mineralization (nitrogen and phosphorus biogeochemical cycles);&lt;br /&gt;
(iii)	Biogenic silica dissolution;&lt;br /&gt;
(iv)	Oxygen depletion.&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;
*algae mortality, if algae are considered as a particulate property that can sink and deposit, then if deposited a mortality rate is applied&lt;br /&gt;
*Particulate organic matter mineralization (nitrogen and phosphorus biogeochemical cycles)&lt;br /&gt;
*Biogenic silica dissolution&lt;br /&gt;
*Oxygen depletion&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Module Benthos is also ready to be coupled, in terms of organic matter mineralization, biogenic silica dissolution and oxygen depletion, with other pelagic biogeochemical models included in Mohid such as: [[Module WaterQuality]] and [[Module Life]].&lt;br /&gt;
&lt;br /&gt;
== Algae Mortality ==&lt;br /&gt;
A mortality rate can be applied over algae deposited in the water-sediment interface. ModuleBenthos is ready to assume phytoplankton and diatoms as algae.&lt;br /&gt;
&lt;br /&gt;
As this happens, the algae nitrogen and phosphorus internal pools are converted into particulate organic matter, and for the specific case of diatoms, its silica pool is transformed into dissolved silica. &lt;br /&gt;
Algae mortality is computed as described in (eq. 1).&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;math&amp;gt;\frac{dM^{X}}{dt}= -k_{mortality}^{X} \cdot  M^{X}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where  is the algae (phytoplankton or diatoms) deposited mass (kg of carbon),   is the algae  mortality rate (s-1).&lt;br /&gt;
&lt;br /&gt;
Hence, the algae mortality generates an input for the particulate organic matter pool, which can be accounted in particulate organic nitrogen (PON), (eq.2) and particulate organic phosphorus (POP) (eq.3). &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;math&amp;gt;\frac{dM^{PON}}{dt}= -k_{mortality}^{X} \cdot  M^{PON} \cdot \alpha_{N/C}^{X}&amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Where   is given in kg of Nitrogen and   is the algae’s Nitrogen/Carbon ratio (which is different for phytoplankton and for diatoms).&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;math&amp;gt;\frac{dM^{POP}}{dt}= -k_{mortality}^{X} \cdot  M^{POP} \cdot \alpha_{P/C}^{X}&amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Where  is given in kg of Phosphorus and  is the algae’s Phosphorus/Carbon ratio (which is different for phytoplankton and for diatoms).&lt;br /&gt;
For diatoms, the biogenic silica derived from its mortality, is computed as:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;math&amp;gt;\frac{dM^{BioSi}}{dt}= -k_{mortality}^{diatoms} \cdot  M^{BioSi} \cdot \alpha_{Si/C}^{diatoms}&amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Where  is given in kg of Silica and  is the algae’s Silica/Carbon ratio (in the case of diatoms simulation).&lt;br /&gt;
&lt;br /&gt;
== Organic matter mineralization ==&lt;br /&gt;
Organic matter mineralization is computed over its nitrogen and phosphorus fractions, by means of a temperature dependent rate and considering that bacterial abundance is constant in time and its activity, as said, is temperature dependent.&lt;br /&gt;
This mineralization process is responsible for oxygen depletion, but it’s also regulated by oxygen availability. If oxygen levels reach anoxia ( ) conditions then, organic matter mineralization is stopped. This limitation is computed as in (eq.5).&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;math&amp;gt;Lim_{O_{2}}=\frac{O_{2}}{O_{2}+0.5}&amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Thus for the nitrogen fraction of organic matter, mineralization can be computed as in (eq.6) and (eq.7), for PON and ammonia, respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;math&amp;gt;\frac{dM^{PON}}{dt} = -(k_{decay-N} \times \phi_{PON}^{(T-20C)}) \cdot M^{PON} \cdot Lim_{O_{2}} &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;math&amp;gt;\frac{dM^{NH_{4}^{+}}}{dt}= (k_{decay-N} \times \phi_{PON}^{(T-20C)}) \cdot M^{PON} \cdot Lim_{O_{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Where  is given in kg of Nitrogen,   is the reference mineralization rate for PON,   is a temperature coefficient, and   is the water temperature at the water-sediment interface (ºC).&lt;br /&gt;
Regarding the phosphorus budget:&lt;br /&gt;
(eq.8)&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
(eq.9)&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Where   is given in kg of Phosphorus,   is the reference mineralization rate for POP,   is a temperature coefficient, and   is the water temperature at the water-sediment interface (ºC).&lt;br /&gt;
For more details on the oxygen budget, see chapter 2.4.&lt;br /&gt;
&lt;br /&gt;
== Silica dissolution ==&lt;br /&gt;
&lt;br /&gt;
Silica dissolution is simulated as a constant rate over the biogenic silica deposited in the water-sediment interface, acting as a source of dissolved silica.&lt;br /&gt;
(eq.10)&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
(eq.11)&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Where   is given in kg of biogenic silica,   is given in kg of dissolved silica and   is the dissolution rate for biogenic silica.&lt;br /&gt;
&lt;br /&gt;
== Oxygen depletion == &lt;br /&gt;
&lt;br /&gt;
Oxygen depletion occurs due to organic matter mineralization, and is computed according to stoichiometric relations.&lt;br /&gt;
(eq.12)&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
(eq.13)&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Where   is given in kg of oxygen,   and   are the Nitrogen/Carbon and Phosphorus/Carbon ratios of particulate organic matter, and  is the ratio between Oxygen and Carbon in CO2.&lt;br /&gt;
&lt;br /&gt;
== Numerical scheme ==&lt;br /&gt;
Module Benthos solves the differential equations described above using an Euler forward scheme (explicit method), which was used in order to make the code organization as simple as possible. When using this numerical method there are, nevertheless, some restraints in terms of temporal discretization, which can cause numerical instabilities that can be solved, at some extent, by using a smaller time step. &lt;br /&gt;
&lt;br /&gt;
Module Benthos has an independent time step in relation to the model’s main time step. Normally the time step to integrate the differential equations describing these kind of biogeochemical reactions is much higher than the time step used to solve hydrodynamic and transport equations, and as the set of equations in this module is quite simple, there is no significant increase in terms of computational costs when using a smaller time step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== User guide ==&lt;br /&gt;
&lt;br /&gt;
As described before, Module Benthos is directly connected with [[Module InterfaceSedimentWater]], therefore making it necessary to understand some of the options to be made in the [[InterfaceSedimentWater]] input data file. &lt;br /&gt;
&lt;br /&gt;
All properties undergoing biogeochemical reactions in Module Benthos must be defined in [[Module InterfaceSedimentWater]], and keyword '''BENTHOS''' has to be activated in every one of it, including oxygen, which is mandatory to be computed.&lt;br /&gt;
&lt;br /&gt;
 '''BENTHOS	        : 1'''&lt;br /&gt;
&lt;br /&gt;
Additionally, property temperature must be also defined, as it controls mineralization rates. Nevertheless, as temperature is not subject to any specific process in the bottom, the '''BENTHOS''' keyword value for this property must be set to 0.&lt;br /&gt;
&lt;br /&gt;
Particulate properties, such as particulate organic nitrogen, particulate organic phosphorus, biogenic silica, phytoplankton (if desired) and diatoms (if desired) must be set as '''PARTICULATE'''.&lt;br /&gt;
&lt;br /&gt;
 '''PARTICULATE    : 1'''&lt;br /&gt;
&lt;br /&gt;
Dissolved properties such as ammonia, inorganic phosphorus, dissolved silica, oxygen and temperature, must be set to '''PARTICULATE : 0'''.&lt;br /&gt;
&lt;br /&gt;
The properties defined in the [[Module InterfaceSedimentWater]] must be consistent with the [[Module WaterProperties]] input file, which means that every property important for the benthic model must be defined in both input files;With exception to temperature, all dissolved properties defined in the [[Module InterfaceSedimentWater]] input file, with option '''BENTHOS''' activated, must set keyword '''WATER_FLUXES : 1'''. Particulate properties also need this option activated in order to compute the fluxes between the water column and the bottom due to erosion and deposition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Also as Module Benthos computes biogeochemical processes involving dissolved processes near the sediment-water interface (e.g. oxygen depletion), all these properties must be defined in the water column. In addition, and as referred above, temperature, as it influences the mineralization rates, is mandatory to be defined in the [[Module WaterProperties]] input data file. &lt;br /&gt;
With exception to temperature, all properties defined in the ModuleInterfaceSedimentWater input file with option BENTHOS activated, must set keyword to '''BOTTOM_FLUXES : 1''' in the [[Module WaterProperties]] input file. This keywords activates an option that computes a bottom boundary condition in the transport equations of the dissolved properties due to the biogeochemical processes computed in Module Benthos.&lt;br /&gt;
&lt;br /&gt;
For more on Module Benthos keywords go to [http://www.mohid.com/IHS/ Mohid Keyword Online Database].&lt;br /&gt;
&lt;br /&gt;
== Useful notes == &lt;br /&gt;
The results from ModuleBenthos are handled by [[Module InterfaceSedimentWater]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;br /&gt;
[[Category:MOHID Base 1]]&lt;br /&gt;
[[Category:Biogeochemistry]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_MacroAlgae&amp;diff=571</id>
		<title>Module MacroAlgae</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_MacroAlgae&amp;diff=571"/>
				<updated>2008-01-14T18:12:36Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: /* Performing outputs of biogeochemical rates */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
&lt;br /&gt;
Module MacroAlgae is a zero-dimensional biogeochemical model and was designed to compute the main biogeochemical processes related with macroalgae in aquatic environments. This module simulates two types of macroalgae:&lt;br /&gt;
&lt;br /&gt;
 - '''Attached macroalgae''' - macroalgae attached to the bottom of the water column&lt;br /&gt;
&lt;br /&gt;
 - '''Drifting macroalgae''' - macroalgae dettached from the bottom drifting in the water column&lt;br /&gt;
&lt;br /&gt;
The evolution of the two macroalgae types is computed in the exactly same way (although different parameters are allowed for each type). The main differences relate to the fact that attached macroalgae are not transported by flow and drifting macroalgae are. On top of the main primary production limiting factors (e.g. light, nutrients, temperature), attached macroalgae growth is also limited by salinity (optionally), by suspended particulate matter deposition fluxes and also by shear stress near the bottom, which dettaches these macroalgae which become drifting macroalgae. &lt;br /&gt;
Drifting macroalgae do not have this type of limitation (SPM deposition flux and obviously bottom shear stress) and when they reach the shore the only process computed is an increased mortality rate.&lt;br /&gt;
&lt;br /&gt;
This module is independent of the pelagic and benthic biogeochemical model being used to compute other biogeochemical processes, thus it can be coupled with [[Module WaterQuality]], [[Module CEQUALW2]] or [[Module Life]], or even [[Module Benthos]].&lt;br /&gt;
&lt;br /&gt;
One feature of this macroalgae model is that it is fully coupled with the 3D transport model, as macroalgae, although attached in the bottom, can influence water properties in the all water column  and not only to the grid cell near the bottom (e.g. light attenuation, nutrients uptake, etc). This is the case when the macroalgae height is higher than the grid cell height. Basically, an occupation   ratio is computed for each grid cell, based on the bottom distribution and macroalgae height.&lt;br /&gt;
&lt;br /&gt;
== Equations ==&lt;br /&gt;
As mentioned before, attached macroalgae evolution, in terms of biogeochemical processes, is computed exactly the same way as drifting macroalgae, and can be written as: &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;math&amp;gt;\frac{dM _x}{dt} = (\mu _x  - r_x  - e_x  - m_x - G_x) \cdot M _x &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where,&lt;br /&gt;
 *&amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the type of macroalgae (attached or drifting)&lt;br /&gt;
 *&amp;lt;math&amp;gt;M _x&amp;lt;/math&amp;gt; is the macroalgae distribution&lt;br /&gt;
 *&amp;lt;math&amp;gt;\mu _x&amp;lt;/math&amp;gt; is the gross production rate (in &amp;lt;math&amp;gt;day^{-1}&amp;lt;/math&amp;gt;)&lt;br /&gt;
 *&amp;lt;math&amp;gt;r_x&amp;lt;/math&amp;gt; is the respiration rate (in &amp;lt;math&amp;gt;day^{-1}&amp;lt;/math&amp;gt;)&lt;br /&gt;
 *&amp;lt;math&amp;gt;e_x&amp;lt;/math&amp;gt; is the excretions rate (in &amp;lt;math&amp;gt;day^{-1}&amp;lt;/math&amp;gt;)&lt;br /&gt;
 *&amp;lt;math&amp;gt;m_x&amp;lt;/math&amp;gt; is the natural mortality rate (in &amp;lt;math&amp;gt;day^{-1}&amp;lt;/math&amp;gt;)&lt;br /&gt;
 *&amp;lt;math&amp;gt;G_x&amp;lt;/math&amp;gt; is the lost chain grazing rate (in &amp;lt;math&amp;gt;day^{-1}&amp;lt;/math&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
=== Gross production rate ===&lt;br /&gt;
The gross production rate &amp;lt;math&amp;gt;\mu _x&amp;lt;/math&amp;gt; is given by: &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;math&amp;gt; \mu _x = \mu^{\max }_x \cdot \min \left[{\psi (N)_x ,\psi (P)_x} \right]\cdot \psi (E)_x \cdot \psi (T)_x \cdot \psi (S)_x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where,&lt;br /&gt;
 *&amp;lt;math&amp;gt;\mu^{\max }_x&amp;lt;/math&amp;gt; is the macroalgae maximum growth rate (in &amp;lt;math&amp;gt;day^{-1}&amp;lt;/math&amp;gt;)&lt;br /&gt;
 *&amp;lt;math&amp;gt;\Psi (N)_x&amp;lt;/math&amp;gt; is the nitrogen limiting factor&lt;br /&gt;
 *&amp;lt;math&amp;gt;\psi (P)_x&amp;lt;/math&amp;gt; is the phosphorus limiting factor&lt;br /&gt;
 *&amp;lt;math&amp;gt;\psi (E)_x&amp;lt;/math&amp;gt; is the light limiting factor&lt;br /&gt;
 *&amp;lt;math&amp;gt;\psi (T)_x&amp;lt;/math&amp;gt; is the temperature limiting factor&lt;br /&gt;
 *&amp;lt;math&amp;gt;\psi (S)_x&amp;lt;/math&amp;gt; is the salinity limiting factor&lt;br /&gt;
&lt;br /&gt;
=== Limiting factors ===&lt;br /&gt;
&lt;br /&gt;
==== Nutrients ====&lt;br /&gt;
&lt;br /&gt;
The nitrogen limiting factor can be computed as: &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;math&amp;gt; \psi (N)_x = \frac{{C_{NH_4} + C_{NO_3}}} {{K^N_x + C_{NH_4} + C_{NO_3}}} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where,&lt;br /&gt;
&lt;br /&gt;
 *&amp;lt;math&amp;gt;C_{NH_4}&amp;lt;/math&amp;gt; is the ammonia concentration in &amp;lt;math&amp;gt;mg_N \cdot l^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
 *&amp;lt;math&amp;gt;C_{NO_3}&amp;lt;/math&amp;gt; is the nitrate concentration in &amp;lt;math&amp;gt;mg_N \cdot l^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
 *&amp;lt;math&amp;gt;K^N_x&amp;lt;/math&amp;gt; is the nitrogen half-saturation constant in &amp;lt;math&amp;gt;mg_N \cdot l^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The phosphorus limiting factor can be computed as: &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;math&amp;gt; \psi (P)_x = \frac{{C_{PO_4}}} {{K^P_x + C_{PO_4}}} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where,&lt;br /&gt;
&lt;br /&gt;
 *&amp;lt;math&amp;gt;C_{PO_4}&amp;lt;/math&amp;gt; is the inorganic phosphorus concentration in &amp;lt;math&amp;gt;mg_P \cdot l^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
 *&amp;lt;math&amp;gt;K^P_x&amp;lt;/math&amp;gt; is the phosphorus half-saturation constant in &amp;lt;math&amp;gt;mg_P \cdot l^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Light ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Temperature ====&lt;br /&gt;
Macroalgae's temperature limiting factor is given by:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;math&amp;gt;\psi (T)_x  = K_A (T)_x \cdot K_B (T)_x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where,&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;math&amp;gt; K_A (T)_x = \frac {K^1_x \cdot e^{\gamma^1_x \cdot \left( {T - T^{min}_x} \right)}} {{1 + K^1_x    \cdot \left( {e^{\gamma^1_x \cdot \left({T - T^{min}_x  } \right)} - 1} \right)}} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;math&amp;gt; K_B (T)_x = \frac{K^4_x \cdot e^{\gamma^2_x \cdot \left( {T^{max}_x - T} \right)}} {{1 + K^4_x  .\left( {e^{\gamma^2_x \cdot \left( {T^max_x - T} \right)} - 1} \right)}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Salinity ====&lt;br /&gt;
&lt;br /&gt;
=== Respiration rate ===&lt;br /&gt;
The macroalgae respiration rate is given by:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;math&amp;gt;r_x = k^{re}_x \cdot e^{(0.069 \cdot T)} + k^{rp}_x  \cdot \mu_x &amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where,&lt;br /&gt;
 *&amp;lt;math&amp;gt;k^{re}_x&amp;lt;/math&amp;gt; is the macroalgae endogenous respiration (in &amp;lt;math&amp;gt;day^{-1}&amp;lt;/math&amp;gt;)&lt;br /&gt;
 *&amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt; is the water temperature (&amp;lt;math&amp;gt; in ^o C &amp;lt;/math&amp;gt;)&lt;br /&gt;
 *&amp;lt;math&amp;gt;k^{rp}_x&amp;lt;/math&amp;gt; is the macroalgae photo respiration rate (in &amp;lt;math&amp;gt;day^{-1}&amp;lt;/math&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
=== Excretion rate ===&lt;br /&gt;
The macroalgae excretion rate is given by:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;math&amp;gt;e_x  = \varepsilon_x \cdot \mu_x \cdot (1 - \psi (E)_x )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where,&lt;br /&gt;
&lt;br /&gt;
 *&amp;lt;math&amp;gt;\varepsilon_x&amp;lt;/math&amp;gt; is the reference excretion rate (in &amp;lt;math&amp;gt;day^{-1}&amp;lt;/math&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
=== Natural mortality rate ===&lt;br /&gt;
The macroalgae natural mortality rate is given by:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;math&amp;gt; m_x  = m^{max}_x \cdot \frac{{\frac{{M_x}} {{\mu _x}}}} {{K^m_x + \frac{{M_x}} {{\mu_x}}}} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where,&lt;br /&gt;
&lt;br /&gt;
 *&amp;lt;math&amp;gt;m^{max}_x&amp;lt;/math&amp;gt; is the maximum natural mortality rate (in &amp;lt;math&amp;gt;day^{-1}&amp;lt;/math&amp;gt;)&lt;br /&gt;
 *&amp;lt;math&amp;gt;K^m_x&amp;lt;/math&amp;gt; is the half-saturation constant&lt;br /&gt;
&lt;br /&gt;
== Numerical scheme ==&lt;br /&gt;
Module MacroAlgae solves the differential equations described above using an Euler forward scheme (explicit method), which was used in order to make the code organization as simple as possible. When using this numerical method there are, nevertheless, some restraints in terms of temporal discretization, which can cause numerical instabilities that can be solved, at some extent, by using a smaller time step. &lt;br /&gt;
&lt;br /&gt;
Only for a specific calculation (drifting macroalgae mortality when reaching the shore), an Euler backward scheme (implicit method) is used to insure numerical stability. &lt;br /&gt;
&lt;br /&gt;
Module MacroAlgae has an independent time step in relation to the model’s main time step. Normally the time step to integrate the differential equations describing these kind of biogeochemical reactions is much higher than the time step used to solve hydrodynamic and transport equations, and as the set of equations in this module is quite simple, there is no significant increase in terms of computational costs when using a smaller time step.&lt;br /&gt;
&lt;br /&gt;
==  User guide ==&lt;br /&gt;
&lt;br /&gt;
=== Waterproperties data file options ===&lt;br /&gt;
&lt;br /&gt;
In order to activate this module, specify in [[Module WaterProperties]] input data file, in each property involved in macroalgae processes the following keyword:&lt;br /&gt;
 &lt;br /&gt;
 MACROALGAE             : 1&lt;br /&gt;
&lt;br /&gt;
Here is the property list which has to be with the macroalgae processes keyword activated: &lt;br /&gt;
&lt;br /&gt;
 macroalgae&lt;br /&gt;
 drifting macroalgae&lt;br /&gt;
 oxygen&lt;br /&gt;
 ammonia*&lt;br /&gt;
 nitrate*&lt;br /&gt;
 dissolved non-refractory organic nitrogen*&lt;br /&gt;
 particulate organic nitrogen*&lt;br /&gt;
 inorganic phosphorus**&lt;br /&gt;
 dissolved non-refractory organic phosphorus**&lt;br /&gt;
 particulate organic phosphorus**&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt;if computing the nitrogen cycle&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;if computing the phosphorus cycle&lt;br /&gt;
&lt;br /&gt;
The following step, still in [[Module WaterProperties]] input data file, in the header section, the following keywords: &lt;br /&gt;
&lt;br /&gt;
 MACROALGAE_MASS       : 0.001        !macroalgae bottom distribution in gC/m2&lt;br /&gt;
 MACROALGAE_HEIGHT     : 0.25         !macroalgae reference height in meters&lt;br /&gt;
&lt;br /&gt;
Ultimately one must parameterize the influence of macroalgae in [[light extincion]]. Thus, in the macroalgae property block the following keywords must be defined:&lt;br /&gt;
&lt;br /&gt;
 LIGHT_EXTINCTION      : 1            !activates macroalgae influence on light extinction&lt;br /&gt;
 EXTINCTION_PARAMETER  : 0.01         !defines the extinction parameter for macroalgae&lt;br /&gt;
&lt;br /&gt;
Remember that in property '''macroalgae''' advection-diffusion should be off: &lt;br /&gt;
&lt;br /&gt;
 ADVECTION_DIFFUSION   : 0&lt;br /&gt;
&lt;br /&gt;
Property '''drifting macroalgae''' advection-diffusion should be on.&lt;br /&gt;
&lt;br /&gt;
=== Macroalgae data file options ===&lt;br /&gt;
Then, activate Module MacroAlgae in [[MOHID GUI]] as described [[Mohid_GUI#Insert_a_Run|here]], which enables to edit the MacroAlgae input data file. In this file, data is stored and organized in [[keywords]] and [[blocks]]. The main keywords are: &lt;br /&gt;
&lt;br /&gt;
 '''Keyword'''            '''Default value'''       '''Description'''&lt;br /&gt;
 DT                  : 3600]          !Time step compute biogeochemical processes&lt;br /&gt;
 PELAGIC_MODEL       : WaterQuality   !Defines which pelagic biogeochemical model is coupled&lt;br /&gt;
 NITROGEN            : 0              !Compute the nitrogen cycle&lt;br /&gt;
 PHOSPHORUS          : 0              !Compute the phosphorus cycle&lt;br /&gt;
&lt;br /&gt;
For each macroalgae type a [[block]] must be specified: &lt;br /&gt;
&lt;br /&gt;
 '''Attached macroalgae''' - &amp;lt;begin_macroalgae&amp;gt;         ... &amp;lt;end_macroalgae&amp;gt;&lt;br /&gt;
 '''Drifting macroalgae''' - &amp;lt;begin_driftingmacroalgae&amp;gt; ... &amp;lt;end_driftingmacroalgae&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Inside each block specific parameters are defined: &lt;br /&gt;
&lt;br /&gt;
 '''Keyword'''           '''Default value'''      '''Description'''&lt;br /&gt;
 GROWMAX             : 0.4          !maximum growth rate&lt;br /&gt;
 TOPTMIN             : 20.          !optimum minimum temperature for growth&lt;br /&gt;
 TOPTMAX             : 25.          !optimum maximum temperature for growth&lt;br /&gt;
 TMIN                : 5            !minimum temperature for growth&lt;br /&gt;
 TMAX                : 40.          !maximum temperature for growth&lt;br /&gt;
 TCONST1             : 0.05         !constant to control temperature response curve shape&lt;br /&gt;
 TCONST2             : 0.98         !constant to control temperature response curve shape &lt;br /&gt;
 TCONST3             : 0.98         !constant to control temperature response curve shape &lt;br /&gt;
 TCONST4             : 0.02         !constant to control temperature response curve shape  &lt;br /&gt;
 PHOTOIN             : 90.          !optimum radiation value&lt;br /&gt;
 ENDREPC             : 0.009        !endogenous respiration rate &lt;br /&gt;
 PHOTORES            : 0.018        !photorespiration rate&lt;br /&gt;
 EXCRCONS            : 0.008        !excretion rate&lt;br /&gt;
 MORTMAX             : 0.003        !natural mortality rate&lt;br /&gt;
 MORTCON             : 0.03         !mortality half saturation constant&lt;br /&gt;
 GRAZCONS            : 0.00008      !grazing rate over macroalgae&lt;br /&gt;
 SOLEXCR             : 0.25         !fraction of soluble inorganic material excreted by macroalgae&lt;br /&gt;
 DISSDON             : 0.25         !fraction of dissolved organic material excreted by macroalgae&lt;br /&gt;
 NSATCONS            : 0.065        !nitrogen half-saturation constant for macroalgae&lt;br /&gt;
 PSATCONS            : 0.001        !phosphorus half-saturation constant for macroalgae&lt;br /&gt;
 RATIONC             : 0.18         !macroalgae nitrogen/carbon ratio&lt;br /&gt;
 RATIOPC             : 0.024        !macroalgae phosphorus/carbon ratio&lt;br /&gt;
 MACROALGAE_MINCONC  : 1e-12        !minimum residual value for macroalgae abundance&lt;br /&gt;
 MIN_OXYGEN          : 1e-8         !minimum oxygen concentration for macroalgae growth&lt;br /&gt;
 DEPLIM              : 5e-6         !maximum SPM deposition flux for macroalgae growth(kg m-2 s-1)*&lt;br /&gt;
 EROCRITSS           : 0.1          !critical shear stress to occur macroalgae dettachment (in Pa)*&lt;br /&gt;
 SALT_EFFECT         : 0            !include salinity limitation on macroalgae growth&lt;br /&gt;
 SALTOPT             : 20           !macroalgae optimum salinity for growth&lt;br /&gt;
 SALTCRIT            : 5.           !macroalgae critical salinity limit growth&lt;br /&gt;
 SALTMIN             : 0.           !macroalgae minimum salinity for growth&lt;br /&gt;
 SALTMAX             : 45.          !macroalgae maximum salinity for growth&lt;br /&gt;
 BEACHED_MORT_RATE   : 0.01         !beached drifting macroalgae mortality rate**&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt;only for attached macroalgae&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;only for drifting macroalgae&lt;br /&gt;
&lt;br /&gt;
== Performing outputs of biogeochemical rates ==&lt;br /&gt;
In order to perform outputs of biogeochemical rates and other parameters of the MacroAlgae model, you can define in the [[WaterProperties]] input data file the following options.&lt;br /&gt;
&lt;br /&gt;
 BOXFLUXES          : ..\..\GeneralData\Boxes.dat     !path to a [[Boxes|boxes data file]]&lt;br /&gt;
&lt;br /&gt;
The same keyword, referencing the same [[Boxes|boxes data file]] must be defined in the [[Module_Hydrodynamic|Hydrodynamic]] input data file. This insures the output of the [[water.BXM file]], which contains the spatial integration of the water volumes into the previously boxes defined.&lt;br /&gt;
&lt;br /&gt;
Also '''at least one''' water property needs to have the following keyword activated:&lt;br /&gt;
&lt;br /&gt;
 BOX_TIME_SERIE     : 1&lt;br /&gt;
&lt;br /&gt;
Next step is to define the rates which the user wants to analyse. This is done similarly to the other biogeochemical modules. All exchange rates are available for output (e.g. macroalgae to ammonia, ammonia to macroalgae, oxygen to macroalgae, macroalgae to oxygen, etc...)&lt;br /&gt;
&lt;br /&gt;
This can be done by defining in [[WaterProperties]] input data file, a [[block]] as the one presented below:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;beginwqrate&amp;gt;&lt;br /&gt;
  NAME                      : macroalgae ammonia uptake&lt;br /&gt;
  DESCRIPTION               : what goes from ammonia to macroalgae&lt;br /&gt;
  FIRSTPROP                 : ammonia&lt;br /&gt;
  SECONDPROP                : macroalgae&lt;br /&gt;
  MODEL                     : MacroAlgae&lt;br /&gt;
 &amp;lt;endwqrate&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;beginwqrate&amp;gt;&lt;br /&gt;
  NAME                      : macroalgae ammonia excretions&lt;br /&gt;
  DESCRIPTION               : what goes from macroalgae to ammonia&lt;br /&gt;
  FIRSTPROP                 : macroalgae&lt;br /&gt;
  SECONDPROP                : ammonia&lt;br /&gt;
  MODEL                     : MacroAlgae&lt;br /&gt;
 &amp;lt;endwqrate&amp;gt;&lt;br /&gt;
&lt;br /&gt;
One can also analyse other parameters such as: &lt;br /&gt;
*macroalgae gross production&lt;br /&gt;
*macroalgae temperature limiting factor&lt;br /&gt;
*macroalgae light limiting factor&lt;br /&gt;
*macroalgae nutrients limiting factor&lt;br /&gt;
*macroalgae nitrogen limiting factor&lt;br /&gt;
*macroalgae phosphorus limiting factor&lt;br /&gt;
*macroalgae salinity limiting factor&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In these cases, in the '''&amp;lt;beginwqrate&amp;gt;...&amp;lt;endwqrate&amp;gt;''' block, the FIRSTPROP keyword relates to the  parameter to be analysed and the SECONDPROP relates to the type of macroalgae. For example, if one wishes to analyse the gross production of attached macroalgae and drifting macroalgae, the data file should look like this:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;beginwqrate&amp;gt;&lt;br /&gt;
  NAME                      : macroalgae gross production&lt;br /&gt;
  DESCRIPTION               : macroalgae gross production&lt;br /&gt;
  FIRSTPROP                 : grossprod&lt;br /&gt;
  SECONDPROP                : macroalgae&lt;br /&gt;
  MODEL                     : MacroAlgae&lt;br /&gt;
 &amp;lt;endwqrate&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;beginwqrate&amp;gt;&lt;br /&gt;
  NAME                      : macroalgae gross production&lt;br /&gt;
  DESCRIPTION               : macroalgae gross production&lt;br /&gt;
  FIRSTPROP                 : grossprod&lt;br /&gt;
  SECONDPROP                : drifting macroalgae&lt;br /&gt;
  MODEL                     : MacroAlgae&lt;br /&gt;
 &amp;lt;endwqrate&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the end a [[time series file]] with an '''*.BXM''' extension and with the name of the rate (set by keyword 'NAME'), is written.&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;br /&gt;
[[Category:MOHID Base 1]]&lt;br /&gt;
[[Category:Biogeochemistry]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Dumpbin&amp;diff=216</id>
		<title>Dumpbin</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Dumpbin&amp;diff=216"/>
				<updated>2007-12-18T18:22:54Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: /* HowTo */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Dumpbin is a great little utility provided in Windows XP that allows to dump binary files and view their content. It is particularly usefule to see the symbolic table.&lt;br /&gt;
==HowTo==&lt;br /&gt;
From a dos box&lt;br /&gt;
 &amp;gt;dumpbin /SYMBOLS file &amp;gt; file_dump.log&lt;br /&gt;
Where &amp;lt;code&amp;gt;file&amp;lt;/code&amp;gt; is the filename. This will list the local functions as well as the externals.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt; dumpbin /EXPORTS library &amp;gt; lib_dump.log&lt;br /&gt;
where &amp;lt;code&amp;gt;library&amp;lt;/code&amp;gt; is a library filename. This will list the library's exported symbols.&lt;br /&gt;
&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
[[Category:Windows]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_Model&amp;diff=575</id>
		<title>Module Model</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_Model&amp;diff=575"/>
				<updated>2007-12-02T16:10:13Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
Module Model handles all the information of a single model (in [[Mohid Water]]). It is responsible for constructing, modifying and destructing each model and for controlling information fluxes between the different modules, and time and mapping evolution.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
[[Choose the model time step]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;br /&gt;
[[Category:MOHID Water]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_Hydrodynamic&amp;diff=553</id>
		<title>Module Hydrodynamic</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_Hydrodynamic&amp;diff=553"/>
				<updated>2007-12-02T16:06:14Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: /* Discharges */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
The hydrodynamic model solves the primitive continuity and momentum equations for the surface elevation and 3D velocity field for incompressible flows, in orthogonal horizontal coordinates and generic vertical coordinates, assuming hydrostatic equilibrium and Boussinesq approximations.&lt;br /&gt;
&lt;br /&gt;
Density is computed depending on salt, temperature and pressure, by the UNESCO equation of state (UNESCO, 1981). The model uses an ADI (Alternate Direction Implicit) time discretization scheme which minimizes stability restrictions, and is defined in an Arakawa-C type grid. &lt;br /&gt;
In the bottom, shear stress can be computed with the assumption of a logarithmic velocity gradient:&lt;br /&gt;
&lt;br /&gt;
In the free surface, a momentum flux can also be imposed in the form of shear stress.&lt;br /&gt;
&lt;br /&gt;
Momentum, mass and heat transport is computed using a generic 3D advection-diffusion library including various advection schemes namely: first, second and third order upwind, centred differences and TVD (Total Variation Diminishing). Advection is solved in the three directions as a one-dimensional case and various time discretizations can be combined: explicit, semi-implicit or fully implicit. &lt;br /&gt;
&lt;br /&gt;
== Concepts ==&lt;br /&gt;
&lt;br /&gt;
== Mass and Momentum equations == &lt;br /&gt;
&lt;br /&gt;
=== Momentum advection ===&lt;br /&gt;
&lt;br /&gt;
=== Turbulent Diffusion ===&lt;br /&gt;
&lt;br /&gt;
=== Pressure === &lt;br /&gt;
&lt;br /&gt;
==== Barotropic ====&lt;br /&gt;
&lt;br /&gt;
==== Baroclinic ==== &lt;br /&gt;
&lt;br /&gt;
==== Atmospheric ====&lt;br /&gt;
&lt;br /&gt;
=== Coriolis ===&lt;br /&gt;
&lt;br /&gt;
=== Radiation stresses ===&lt;br /&gt;
&lt;br /&gt;
== Discretization ==&lt;br /&gt;
&lt;br /&gt;
=== Temporal ===&lt;br /&gt;
&lt;br /&gt;
=== Spatial === &lt;br /&gt;
&lt;br /&gt;
==== Horizontal ====&lt;br /&gt;
&lt;br /&gt;
==== Vertical ====&lt;br /&gt;
&lt;br /&gt;
== Boundary conditions ==&lt;br /&gt;
&lt;br /&gt;
=== Bottom ===&lt;br /&gt;
In the bottom, advective fluxes are imposed as null and diffusive flux of momentum is estimated by means of a [[Module InterfaceSedimentWater#Momentum fluxes|bottom stress]] that is calculated by a non-slip method with a quadratic law that depends on the near-bottom velocity. So, the diffusive term at the bottom is written as:&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{D}&amp;lt;/math&amp;gt; is the bottom drag coefficient that is calculated with the expression:&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; is von Karman constant and &amp;lt;math&amp;gt;z^{b}_{0}&amp;lt;/math&amp;gt; is the bottom roughness length. This quadratic law is derived from the logarithmic law of the wall near boundaries characteristic of boundary layers, as the bottom velocities are located half a grid box above the bottom. This term is calculated semi-implicitly following Backhaus (1985) for numerical stability reasons.&lt;br /&gt;
&lt;br /&gt;
=== Surface ===&lt;br /&gt;
&lt;br /&gt;
==== Momentum ====&lt;br /&gt;
Diffusive flux of momentum is imposed explicitly by means of a [[wind surface stress]], &amp;lt;math&amp;gt; \tau_{ w}&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
==== Mass ====&lt;br /&gt;
A water flux can be imposed (e.g. precipitation or evaporation) or computed (e.g. evaporation) at the surface of the water column.&lt;br /&gt;
&lt;br /&gt;
=== Open boundaries ===&lt;br /&gt;
&lt;br /&gt;
[[Blumberg-Kantha radiation scheme]] for the open boundary conditions (Blumberg and Kantha, 1985).&lt;br /&gt;
&lt;br /&gt;
=== Moving boundaries (Drying and flooding) ===&lt;br /&gt;
Moving boundaries are closed boundaries that change position in time. If there are intertidal zones in the domain, some points can be alternatively covered or uncovered depending on tidal elevation. A stable algorithm is required for modeling these zones and their effect on hydrodynamics of estuaries.&lt;br /&gt;
&lt;br /&gt;
=== Land boundaries ===&lt;br /&gt;
In these boundaries the domain is limited by land. For the resolution used, this lateral boundary layer is resolved, so a impermeable, free slip condition can be used: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{{\partial \overrightarrow{{v_H }} }} {{\partial \eta }} = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\overrightarrow{v} \cdot \overrightarrow{n} = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the finite volume formalism, these conditions are implemented straightforwardly by specifying zero normal water fluxes and zero momentum diffusive fluxes at the cell faces in contact with land.&lt;br /&gt;
&lt;br /&gt;
A non-slipling condition can also be used in lateral land boundaries.&lt;br /&gt;
&lt;br /&gt;
=== Discharges ===&lt;br /&gt;
See [[Module Discharges]].&lt;br /&gt;
&lt;br /&gt;
== Other features ==&lt;br /&gt;
&lt;br /&gt;
=== Data assimilation ===&lt;br /&gt;
See [[Relaxation]] and [[Module Assimilation]].&lt;br /&gt;
&lt;br /&gt;
== Outputs ==&lt;br /&gt;
&lt;br /&gt;
=== Time series ===&lt;br /&gt;
&lt;br /&gt;
=== Box integration ===&lt;br /&gt;
&lt;br /&gt;
=== Maps (HDF5 format) ===&lt;br /&gt;
To write 3D results use keyword [[OUTPUT_TIME]] and define keyword:&lt;br /&gt;
&lt;br /&gt;
 OUTPUT_HDF           : 1&lt;br /&gt;
&lt;br /&gt;
in each property that you whish to write results.&lt;br /&gt;
&lt;br /&gt;
To write results only in the surface use keyword [[SURFACE_OUTPUT_TIME]] and define keyword:&lt;br /&gt;
&lt;br /&gt;
 OUTPUT_SURFACE_HDF   : 1&lt;br /&gt;
&lt;br /&gt;
in each property that you which to write results. Surface results can be written with a different frequency than the normal 3D maps.&lt;br /&gt;
&lt;br /&gt;
=== Statistics ===&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;br /&gt;
[[Category:MOHID Water]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_AdvectionDiffusion&amp;diff=510</id>
		<title>Module AdvectionDiffusion</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_AdvectionDiffusion&amp;diff=510"/>
				<updated>2007-12-02T16:03:49Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
&lt;br /&gt;
== Advection ==&lt;br /&gt;
&lt;br /&gt;
=== First order upwind ===&lt;br /&gt;
&lt;br /&gt;
=== Second order upwind ===&lt;br /&gt;
&lt;br /&gt;
=== Third order upwind ===&lt;br /&gt;
&lt;br /&gt;
=== Total Variation Diminishing (TVD) ===&lt;br /&gt;
&lt;br /&gt;
=== Central differences ===&lt;br /&gt;
&lt;br /&gt;
== Diffusion ==&lt;br /&gt;
&lt;br /&gt;
== Other remarks ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;br /&gt;
[[Category:MOHID Base 2]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_WaterProperties&amp;diff=599</id>
		<title>Module WaterProperties</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_WaterProperties&amp;diff=599"/>
				<updated>2007-12-02T16:00:29Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: /* Discharges */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
Module WaterProperties is the 3D eulerian transport module included in MOHID. Module WaterProperties is responsible for computing the properties evolution in the water column. To do so, this module uses other modules, responsible for specific processes like [[Module AdvectionDiffusion]], which computes properties transport, or [[Module WaterQuality]] which is one of the three available modules to compute biogeochemical processes, and so on. MOHID is prepared to simulate properties such temperature, salinity, cohesive sediments, phytoplankton, nutrients, contaminants, etc. These properties can either be dissolved in the water, therefore following the currents, or in a particulate phase or adsorbed on to particulate matter, thus being subjected to one more transport variable: the settling velocity.&lt;br /&gt;
&lt;br /&gt;
== Concepts ==&lt;br /&gt;
&lt;br /&gt;
=== Property ===&lt;br /&gt;
See the list of allowed [[properties names]]&lt;br /&gt;
&lt;br /&gt;
== Main processes == &lt;br /&gt;
&lt;br /&gt;
=== Advection Diffusion ===&lt;br /&gt;
&lt;br /&gt;
=== Density ===&lt;br /&gt;
Water density can be computed in MOHID through a variety of equations of state, depending on salt, temperature and pressure.&lt;br /&gt;
&lt;br /&gt;
*Leendertse&lt;br /&gt;
*UNESCO (default option)&lt;br /&gt;
*Linear&lt;br /&gt;
*Mellor 1996&lt;br /&gt;
*JMD&lt;br /&gt;
*Constant&lt;br /&gt;
*Wang&lt;br /&gt;
&lt;br /&gt;
=== Settling velocity ===&lt;br /&gt;
[[Settling velocity]] is computed in [[Module FreeVerticalMovement]].&lt;br /&gt;
&lt;br /&gt;
=== Bottom fluxes ===&lt;br /&gt;
&lt;br /&gt;
=== Heat fluxes ===&lt;br /&gt;
&lt;br /&gt;
=== Surface fluxes ===&lt;br /&gt;
&lt;br /&gt;
=== Discharges ===&lt;br /&gt;
[[Module Discharges]]&lt;br /&gt;
&lt;br /&gt;
=== Ecology and water quality ===&lt;br /&gt;
&lt;br /&gt;
==== Water Quality ====&lt;br /&gt;
[[Module WaterQuality]]&lt;br /&gt;
&lt;br /&gt;
==== CEQUALW2 ====&lt;br /&gt;
[[Module CEQUALW2]]&lt;br /&gt;
&lt;br /&gt;
==== Life ====&lt;br /&gt;
[[Module Life ]]&lt;br /&gt;
&lt;br /&gt;
==== Macroalgae ====&lt;br /&gt;
[[Module MacroAlgae ]]&lt;br /&gt;
&lt;br /&gt;
==== First order decayment ====&lt;br /&gt;
&lt;br /&gt;
==== Simple filtration ====&lt;br /&gt;
&lt;br /&gt;
==== Contaminants/Partition coefficients ====&lt;br /&gt;
&lt;br /&gt;
== Other features ==&lt;br /&gt;
&lt;br /&gt;
=== Read solution from file ===&lt;br /&gt;
The solution of a given property can be imposed/read from a file. It can be constant or variable in time or/and space. This feature works under the [[Module FillMatrix]] capabilities.&lt;br /&gt;
&lt;br /&gt;
=== Set minimum concentration ===&lt;br /&gt;
&lt;br /&gt;
=== Data assimilation ===&lt;br /&gt;
See [[Relaxation]] and [[Module Assimilation]].&lt;br /&gt;
&lt;br /&gt;
== Outputs ==&lt;br /&gt;
&lt;br /&gt;
=== Time series ===&lt;br /&gt;
&lt;br /&gt;
=== Box integration ===&lt;br /&gt;
&lt;br /&gt;
=== Maps (HDF5 format) ===&lt;br /&gt;
To write 3D results use keyword [[OUTPUT_TIME]] and define keyword:&lt;br /&gt;
&lt;br /&gt;
 OUTPUT_HDF           : 1&lt;br /&gt;
&lt;br /&gt;
in each property that you whish to write results.&lt;br /&gt;
&lt;br /&gt;
To write results only in the surface use keyword [[SURFACE_OUTPUT_TIME]] and define keyword:&lt;br /&gt;
&lt;br /&gt;
 OUTPUT_SURFACE_HDF   : 1&lt;br /&gt;
&lt;br /&gt;
in each property that you which to write results. Surface results can be written with a different frequency than the normal 3D maps.&lt;br /&gt;
&lt;br /&gt;
=== Statistics ===&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;br /&gt;
[[Category:MOHID Water]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=XYZ_points&amp;diff=959</id>
		<title>XYZ points</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=XYZ_points&amp;diff=959"/>
				<updated>2007-12-02T14:43:09Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: /* XYZ Points file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
XYZ points are use do define discrete geo-referenced information. This information is stored associating X and Y coordinates to an attribute. Examples of applications of these items are: bathymetric or topographic surveys, water quality analysis results, etc.&lt;br /&gt;
&lt;br /&gt;
== XYZ Points file ==&lt;br /&gt;
XYZ Points items are stored in an ASCII text file. The default extension for XYZ Points files in [[MohidGIS]] is '''*.xyz'''. This file is organized in [[blocks]], each containing the coordinates for a certain attribute. One block is defined by the following keywords: '''&amp;lt;begin_xyz&amp;gt;''' and '''&amp;lt;end_xyz&amp;gt;'''. Note that these keywords are case sensitive. One file can contain an infinite number of blocks. Inside each block there at least 3 columns. The left column represents the XX coordinates of the polygon vertices and the right one to the YY coordinates of the polygon vertices. The third column contains the attribute value. A fourth column can be optionally included and it is handled as a character string which can also be used as a legend for each point.&lt;br /&gt;
&lt;br /&gt;
== Example == &lt;br /&gt;
=== Three columns ===&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;begin_xyz&amp;gt;&lt;br /&gt;
 -9.138328  38.737320  292. &lt;br /&gt;
 &amp;lt;end_xyz&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Four columns ===&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;begin_xyz&amp;gt;&lt;br /&gt;
 -9.138328  38.737320  292.  MARETEC - IST (Lisbon)&lt;br /&gt;
 &amp;lt;end_xyz&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Input Data Formats]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Mohid_Water&amp;diff=649</id>
		<title>Mohid Water</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Mohid_Water&amp;diff=649"/>
				<updated>2007-11-29T17:11:37Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: /* Others */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
MOHID Water consists of a three-dimensional numerical model to simulate surface water bodies such as rivers, reservoirs, estuaries, coastal areas or the ocean. It is one of the main programs in [[MOHID Water Modelling System]], written in FORTRAN 95 using an [[Object oriented programming in MOHID|object oriented programming]] phylosophy. It is composed of a series of [[Modules#Mohid Water|modules]] built on top of [[Mohid Base 1]] and [[Mohid Base 2]].&lt;br /&gt;
These modules are mainly responsible for computing physical or biogeochemical process, e.g. [[Module Hydrodynamic]], [[Module WaterProperties]], [[Module Turbulence]], [[Module Lagrangian]], etc.&lt;br /&gt;
&lt;br /&gt;
MOHID Water was designed in order to be able to simulate aquatic systems dividing them into three compartments or media: air, water and land. Thus it was constructed assuming: one model consisting of two main interfaces: the water-sediment interface and the water-air interface, dividing three well defined compartments, the atmosphere, the water column and the sediment. The two interfaces should be able to communicate by handling the fluxes between the three compartments. To do this, two modules were created: [[Module InterfaceSedimentWater]] and [[Module InterfaceWaterAir]]. &lt;br /&gt;
&lt;br /&gt;
Thus, the model was set up in a way that each of the three compartments did not have access to another compartment, being all communications made by the interface modules. That is, with this organization, [[Module SedimentProperties]] and [[Module Consolidation]] (representative of the sediment column), communicate only with [[Module InterfaceSedimentWater]], as well as modules Hydrodynamic, WaterProperties, Turbulence and Lagrangian (representative of the water column). These modules also communicate with [[Module InterfaceWaterAir]] which provides the connection with [[Module Atmosphere]]. [[Module Model]] controls and manages all the information fluxes.&lt;br /&gt;
&lt;br /&gt;
== Physics ==&lt;br /&gt;
[[Mohid Water Physics]]&lt;br /&gt;
&lt;br /&gt;
== Biogeochemistry ==&lt;br /&gt;
[[Mohid Water Biogeochemistry]]&lt;br /&gt;
&lt;br /&gt;
== Other features ==&lt;br /&gt;
[[Parallel processing]]&lt;br /&gt;
&lt;br /&gt;
== Support Tools ==&lt;br /&gt;
[[Mohid Water support tools]]&lt;br /&gt;
&lt;br /&gt;
== Others ==&lt;br /&gt;
[[MohidWater|Mohid Water software]]&lt;br /&gt;
&lt;br /&gt;
[[Modeling waterproperties transport|Modeling the water properties transport - a step by step methodology]]&lt;br /&gt;
&lt;br /&gt;
[[Relaxation]] - using [[Module Assimilation]]&lt;br /&gt;
&lt;br /&gt;
[[Nesting models]]&lt;br /&gt;
&lt;br /&gt;
[[Category:MOHID Water]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Choose_the_model_time_step_(dt):&amp;diff=986</id>
		<title>Choose the model time step (dt):</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Choose_the_model_time_step_(dt):&amp;diff=986"/>
				<updated>2007-11-29T16:44:43Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#redirect [[Choose the model time step]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Choose_the_model_time_step&amp;diff=102</id>
		<title>Choose the model time step</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Choose_the_model_time_step&amp;diff=102"/>
				<updated>2007-11-29T16:44:07Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Model_x.dat==&lt;br /&gt;
In the model_x.dat input file is defined the model time step&lt;br /&gt;
 DT : 30&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Modeling_waterproperties_transport&amp;diff=500</id>
		<title>Modeling waterproperties transport</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Modeling_waterproperties_transport&amp;diff=500"/>
				<updated>2007-11-29T16:43:30Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''The steps that should be followed for modeling water properties transport are enumerated bellow.'''&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Check the [[bathymetry]]:&lt;br /&gt;
     1. See if there are channels &amp;quot;closed&amp;quot; by intertidal or land cells&lt;br /&gt;
&lt;br /&gt;
     2. Filter the bathymetry at least for the intertidal area &lt;br /&gt;
        a. Create the [[Filter.dat]] input file&lt;br /&gt;
        b. Run the [http://maretec.mohid.com/PublicData/products/Software/filterbathymetry.zip FilterBathymetry.exe] program&lt;br /&gt;
&lt;br /&gt;
Use [[Module FillMatrix]] specifications to initialize all water properties. &lt;br /&gt;
It is critical to know all the initialization options available.&lt;br /&gt;
&lt;br /&gt;
Verify the options to compute transport processes:&lt;br /&gt;
&lt;br /&gt;
     1. [[Advection numerical scheme]]&lt;br /&gt;
&lt;br /&gt;
     2. [[Diffusion values]]&lt;br /&gt;
&lt;br /&gt;
     3. [[Open Boundary conditions]]&lt;br /&gt;
&lt;br /&gt;
     4. [[Atmospheric boundary condition]]&lt;br /&gt;
&lt;br /&gt;
     5. [[Land boundary condition]]&lt;br /&gt;
&lt;br /&gt;
     6. For particulate properties:&lt;br /&gt;
        a. [[Settling velocity]]&lt;br /&gt;
        b. [[Bottom boundary condition]]&lt;br /&gt;
&lt;br /&gt;
     7. Delete all the keywords that you aren't using. &lt;br /&gt;
        Too many keywords make it difficult to read the input files and&lt;br /&gt;
        to find errors.&lt;br /&gt;
&lt;br /&gt;
[[Choose the model time step]]&lt;br /&gt;
&lt;br /&gt;
     1. In a 2D case [[choose a semi-implicit approach]] to compute the horizontal transport. &lt;br /&gt;
        In the 3D case, an explicit one must be chosen due to stability problems;&lt;br /&gt;
&lt;br /&gt;
     2. By default the vertical transport is always implicit (don't change);&lt;br /&gt;
&lt;br /&gt;
     3. Identify in the horizontal grid the minimal horizontal spatial step (dx);&lt;br /&gt;
&lt;br /&gt;
     4. Identify an order of magnitude for the maximum velocity (Vel);&lt;br /&gt;
&lt;br /&gt;
     5. When the horizontal transport is computed explicitly, a first good approach is to&lt;br /&gt;
        consider the Courant number(Cr) equal to 1:&lt;br /&gt;
        &amp;lt;math&amp;gt;Cr=Vel*dt/dx&amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
     6. For the 2D case, with a semi-implicit approach, a higher Courant number can be tested;&lt;br /&gt;
&lt;br /&gt;
     7. In reality the Courant is a concept that works well in schematic tests in channels with&lt;br /&gt;
        constant depth and velocity. In this case, an explicit upwind discretization of the &lt;br /&gt;
        advection term of a property P becomes, for a velocity greather than zero:&lt;br /&gt;
        &amp;lt;math&amp;gt;P(i,t+dt)= P(i,t)*(1-Cr) + P(i-1,t)*Cr&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
     8. For real model applications, the Courant number based in the velocity is simplistic and &lt;br /&gt;
        misleading. In reality the Courant number, in a conservative upwind discretization &lt;br /&gt;
        of the advection term, is computed based in flows (Q) and volumes (V) in the 1D case is:&lt;br /&gt;
        &amp;lt;math&amp;gt;Cr = Q outflow * dt / V &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Common errors&lt;br /&gt;
     '''1. Type of errors''': Pontual instabilities in the mass balance&lt;br /&gt;
        can occour usually in the wetting and drying process. These instabilities can have &lt;br /&gt;
        several degrees. These degrees are enumerated in a descending order: &lt;br /&gt;
        a) The most serious : the model crash in the transport of a conservative property&lt;br /&gt;
             like salinity;&lt;br /&gt;
        b) The model crash in computing the temperatura transport when the heat fluxes with&lt;br /&gt;
             the atmosphere are computed;&lt;br /&gt;
        c) The model crash when simulates properties with a settling velocity;&lt;br /&gt;
        d) The model is able to compute the evolution of temperature (with heat fluxes)&lt;br /&gt;
           and salinity but still persist some small instabilities that originate            &lt;br /&gt;
           i) wrong values of oxygen saturation and consequently wrong oxygen fluxes with the &lt;br /&gt;
              atmosphere and the oxygen transport crash;&lt;br /&gt;
          ii) Wrong biochemical rates that depend in the temperature and the transport &lt;br /&gt;
              biochemical properties crash.&lt;br /&gt;
               &lt;br /&gt;
     '''2. Possible solutions''':&lt;br /&gt;
        a) Filter the bathymetry. A steep bathymetry means drastic variations between &lt;br /&gt;
           adjacent controle volumes and this way are created the conditions to occour &lt;br /&gt;
           high courant numbers. This is dramatic in intertidal areas because very easily &lt;br /&gt;
           in the wetting and drying process adjacent controle volume can have volume relations&lt;br /&gt;
           of several orders of magnitude;&lt;br /&gt;
        b) Decrease the time step;&lt;br /&gt;
        c) Use the magic but very dangerous keywords 'MIN_VALUE' and 'MAX_VALUE' for each&lt;br /&gt;
           property. In extreme cases you need to guarantee that all properties &amp;gt; 0&lt;br /&gt;
           (MIN_VALE : 0.). The upper limitation (MAX_VALUE) is only needed in the salinity &lt;br /&gt;
           and temperature. These two properties are critical because there are a lot &lt;br /&gt;
           of rates that depend on this two properties. These magic keywords are dangerous&lt;br /&gt;
           because when the model correct the field properties so there is any value &amp;lt; MIN_VALUE&lt;br /&gt;
           and &amp;gt; MAX_VALUE the model generate mass in the first case and destroys in the second.&lt;br /&gt;
           After each run is necessary to verify in the '''WaterProperties_x.fin5''' hdf5 file the &lt;br /&gt;
           mass_created and the mass_destroyed matrixes and verify the total mass created and  &lt;br /&gt;
           destroyed in the run. Be carefull in your analysis the values are &lt;br /&gt;
           in Property x Volume.&lt;br /&gt;
&lt;br /&gt;
[[Category:MOHID Water]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Bottom_boundary_condition;&amp;diff=982</id>
		<title>Bottom boundary condition;</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Bottom_boundary_condition;&amp;diff=982"/>
				<updated>2007-11-29T16:43:00Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#redirect [[Bottom boundary condition]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Bottom_boundary_condition&amp;diff=78</id>
		<title>Bottom boundary condition</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Bottom_boundary_condition&amp;diff=78"/>
				<updated>2007-11-29T16:42:40Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For each water property the user needs to define if it wants or not to impose sediment-water fluxes of particulate or dissolved matter. An example of a input file InterfaceWaterAir_x.dat where bottom boundary condition is defined is presented below.&lt;br /&gt;
&lt;br /&gt;
==WaterProperties_x.dat==&lt;br /&gt;
For each property is possible to impose a bottom boundary&lt;br /&gt;
condition. By default no bottom boundary condition is imposed (BOTTOM_FLUXES : 0).&lt;br /&gt;
     &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
      BOTTOM_FLUXES     : 1 &lt;br /&gt;
     &amp;lt;endproperty&amp;gt;&lt;br /&gt;
==InterfaceSedimentWater_x.dat==&lt;br /&gt;
Bottom absolute rugosity in meters&lt;br /&gt;
    &amp;lt;begin_rugosity&amp;gt;&lt;br /&gt;
    DEFAULTVALUE                 : 0.0025&lt;br /&gt;
    &amp;lt;end_rugosity&amp;gt;&lt;br /&gt;
Critical shear stress erosion in Pa&lt;br /&gt;
    &amp;lt;begin_critical_shear_erosion&amp;gt;&lt;br /&gt;
    INITIALIZATION_METHOD        : CONSTANT&lt;br /&gt;
    DEFAULTVALUE                 : 0.4&lt;br /&gt;
    &amp;lt;end_critical_shear_erosion&amp;gt;&lt;br /&gt;
Critical shear stress deposition in Pa&lt;br /&gt;
    &amp;lt;begin_critical_shear_deposition&amp;gt;&lt;br /&gt;
    INITIALIZATION_METHOD        : CONSTANT&lt;br /&gt;
    DEFAULTVALUE                 : 0.2&lt;br /&gt;
    &amp;lt;end_critical_shear_deposition&amp;gt;&lt;br /&gt;
Erosion rate in kg/m2/s&lt;br /&gt;
    &amp;lt;begin_erosion_rate&amp;gt;&lt;br /&gt;
    INITIALIZATION_METHOD        : CONSTANT&lt;br /&gt;
    DEFAULTVALUE                 : 0.00005&lt;br /&gt;
    &amp;lt;end_erosion_rate&amp;gt;&lt;br /&gt;
Definition of the bottom boundary of the particulate property cohesive sediment&lt;br /&gt;
    &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
    NAME                         : cohesive sediment&lt;br /&gt;
    UNITS                        : kg/m2&lt;br /&gt;
    DESCRIPTION                  : cohesive sediment mass&lt;br /&gt;
    OLD                          : 1&lt;br /&gt;
    PARTICULATE                  : 1&lt;br /&gt;
    WATER_FLUXES                 : 1&lt;br /&gt;
    EROSION                      : 1&lt;br /&gt;
    DEPOSITION                   : 1&lt;br /&gt;
    MASS_LIMITATION              : 1&lt;br /&gt;
    MASS_MIN                     : 1e-8&lt;br /&gt;
    MIN_VALUE                    : 1e-4&lt;br /&gt;
    FILE_IN_TIME                 : NONE&lt;br /&gt;
    INITIALIZATION_METHOD        : ASCII_FILE&lt;br /&gt;
    FILENAME                     : ..\..\GeneralData\BottomSed\BottomSed.dat&lt;br /&gt;
    REMAIN_CONSTANT              : 0&lt;br /&gt;
    DEFAULTVALUE                 : 0.01&lt;br /&gt;
    TIME_SERIE                   : 0&lt;br /&gt;
    BOX_TIME_SERIE               : 0&lt;br /&gt;
    OUTPUT_HDF                   : 1&lt;br /&gt;
    &amp;lt;endproperty&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:MOHID Water]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Settling_velocity;&amp;diff=998</id>
		<title>Settling velocity;</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Settling_velocity;&amp;diff=998"/>
				<updated>2007-11-29T16:42:05Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#redirect [[Settling velocity]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Settling_velocity&amp;diff=847</id>
		<title>Settling velocity</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Settling_velocity&amp;diff=847"/>
				<updated>2007-11-29T16:41:40Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The FreeVerticalMovement is used to add to the vertical flow a vertical&lt;br /&gt;
movement. Presently the module is prepared to impose a constant settling velocity&lt;br /&gt;
or a settling velocity function of salinity concentration and fine sediments concentration. &lt;br /&gt;
In the future other types of vertical movement will be computed like phytoplankton &lt;br /&gt;
up and down movements to optimize the nutrients uptake and/or to reduce mortality due to grazing.&lt;br /&gt;
&lt;br /&gt;
== WaterProperties_x.dat==&lt;br /&gt;
For each particulate property it's possible to define a settling velocity&lt;br /&gt;
condition. By default no settling velocity is assumed.&lt;br /&gt;
     &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
      VERTICAL_MOVEMENT : 1 &lt;br /&gt;
     &amp;lt;endproperty&amp;gt;&lt;br /&gt;
== FreeVerticalMovement_x.dat==&lt;br /&gt;
An example presented below defines for the cohesive sediment property a constant &lt;br /&gt;
settling velocity of 1e-5 m/s or 0.01 mm/s. For salinities below 3 psu the settling&lt;br /&gt;
velocity is zero. The advection transport associated with settling is computed implicitly.&lt;br /&gt;
 &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
 NAME                           : cohesive sediment&lt;br /&gt;
 WS_TYPE                        : 1&lt;br /&gt;
 SALTINT                        : 1&lt;br /&gt;
 SALTINTVALUE                   : 3&lt;br /&gt;
 FREEVERT_IMPEXP_ADV            : 0&lt;br /&gt;
 WS_VALUE                       : 1e-5&lt;br /&gt;
 DEPOSITION		       : 1 &lt;br /&gt;
 &amp;lt;endproperty&amp;gt;&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Land_boundary_condition.&amp;diff=390</id>
		<title>Land boundary condition.</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Land_boundary_condition.&amp;diff=390"/>
				<updated>2007-11-29T16:40:50Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#redirect [[Land boundary condition]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Land_boundary_condition&amp;diff=388</id>
		<title>Land boundary condition</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Land_boundary_condition&amp;diff=388"/>
				<updated>2007-11-29T16:40:27Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The land boundary presently in the MOHID system is imposed in the form &lt;br /&gt;
of water and mass fluxes.&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic_x.dat==&lt;br /&gt;
In the hydrodynamic input data it's necessary to turn on the water discharge option. By default no water discharge is imposed (WATER_DISCHARGES : 0).&lt;br /&gt;
 WATER_DISCHARGES : 1&lt;br /&gt;
== WaterProperties_x.dat==&lt;br /&gt;
For each property is possible to impose a mass discharge. By default no mass discharge is imposed (DISCHARGES : 0).&lt;br /&gt;
     &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
      DISCHARGES     : 1 &lt;br /&gt;
     &amp;lt;endproperty&amp;gt;&lt;br /&gt;
== Discharges_x.dat ==&lt;br /&gt;
Here's an example on how to define a river discharge. More than one river discharges can&lt;br /&gt;
be defined. For each discharge corresponds a &amp;lt;begindischarge&amp;gt; / &amp;lt;enddischarge&amp;gt; block.&lt;br /&gt;
    &amp;lt;begindischarge&amp;gt;&lt;br /&gt;
    NAME                    : Quilombo&lt;br /&gt;
    DESCRIPTION             : Discharge of Quilombo River (É necessário confirmar a localização)&lt;br /&gt;
    I_CELL                  : 142&lt;br /&gt;
    J_CELL                  : 92&lt;br /&gt;
    K_CELL                  : 1&lt;br /&gt;
    ALTERNATIVE_LOCATIONS   : 0&lt;br /&gt;
    DATA_BASE_FILE          : ..\..\GeneralData\Discharges\Quilombo.txt&lt;br /&gt;
    FLOW_COLUMN             : 2&lt;br /&gt;
        &amp;lt;&amp;lt;beginproperty&amp;gt;&amp;gt;&lt;br /&gt;
        NAME                    : salinity&lt;br /&gt;
        UNITS                   : psu&lt;br /&gt;
        DESCRIPTION             : salinity in santos&lt;br /&gt;
        DEFAULTVALUE            : 0.5&lt;br /&gt;
        &amp;lt;&amp;lt;endproperty&amp;gt;&amp;gt;&lt;br /&gt;
        &amp;lt;&amp;lt;beginproperty&amp;gt;&amp;gt;&lt;br /&gt;
        NAME                    : cohesive sediment&lt;br /&gt;
        UNITS                   : mg/l&lt;br /&gt;
        DESCRIPTION             : Coehsive Sediment discharge from Quilombo river&lt;br /&gt;
        TIME_SERIE_COLUMN       : 3&lt;br /&gt;
        &amp;lt;&amp;lt;endproperty&amp;gt;&amp;gt;&lt;br /&gt;
        &amp;lt;&amp;lt;beginproperty&amp;gt;&amp;gt;&lt;br /&gt;
        NAME                    : temperature&lt;br /&gt;
        UNITS                   : mg/l&lt;br /&gt;
        DESCRIPTION             : temperature discharge&lt;br /&gt;
        TIME_SERIE_COLUMN       : 4&lt;br /&gt;
        &amp;lt;&amp;lt;endproperty&amp;gt;&amp;gt;&lt;br /&gt;
    &amp;lt;enddischarge&amp;gt;&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Atmospheric_boundary_condition.&amp;diff=42</id>
		<title>Atmospheric boundary condition.</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Atmospheric_boundary_condition.&amp;diff=42"/>
				<updated>2007-11-29T16:39:42Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#redirect [[Atmospheric boundary condition]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Atmospheric_boundary_condition&amp;diff=40</id>
		<title>Atmospheric boundary condition</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Atmospheric_boundary_condition&amp;diff=40"/>
				<updated>2007-11-29T16:39:24Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For each water property the user needs to define if it want or not to impose atmospheric fluxes.&lt;br /&gt;
Here's an example of atmospheric properties that need to be defined -if the user &lt;br /&gt;
wants to compute heat fluxes with standard bulk formulas-. The atmospheric properties &lt;br /&gt;
are defined in the Atmospheric_x.dat input file. The heat (bulk formulas), mass and &lt;br /&gt;
momentum fluxes are defined in the InterfaceWaterAir_x.dat. The example of an input &lt;br /&gt;
file InterfaceWaterAir_x.dat is presented below.&lt;br /&gt;
&lt;br /&gt;
== WaterProperties_x.dat==&lt;br /&gt;
For each property it's possible to impose an atmospheric (or surface) boundary&lt;br /&gt;
condition. By default no atmospheric boundary condition is imposed (SURFACE_FLUXES : 0).&lt;br /&gt;
     &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
      SURFACE_FLUXES     : 1 &lt;br /&gt;
     &amp;lt;endproperty&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Atmospheric_x.dat==&lt;br /&gt;
It's important to have the output of the atmospheric properties fields so the user&lt;br /&gt;
can confirm what is being imposed&lt;br /&gt;
    OUTPUT_TIME             : 0. 86400&lt;br /&gt;
Wind zonal velocity &lt;br /&gt;
    &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
    NAME                    : wind velocity X&lt;br /&gt;
    UNITS                   : m/s&lt;br /&gt;
    DESCRIPTION             : wind velocity X&lt;br /&gt;
    DEFAULTVALUE            : 0.&lt;br /&gt;
    FILE_IN_TIME            : HDF&lt;br /&gt;
    FILENAME                : D:\Aplica\AguasAlgarve\DadosBase\MM5\AlgarveCoast\MM5Out_D3D2_July2004.hdf5&lt;br /&gt;
    TIME_SERIE              : 0&lt;br /&gt;
    OUTPUT_HDF              : 1&lt;br /&gt;
    &amp;lt;endproperty&amp;gt;&lt;br /&gt;
Wind meridional velocity &lt;br /&gt;
    &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
    NAME                    : wind velocity Y&lt;br /&gt;
    UNITS                   : m/s&lt;br /&gt;
    DESCRIPTION             : wind velocity Y&lt;br /&gt;
    DEFAULTVALUE            : 0.&lt;br /&gt;
    FILE_IN_TIME            : HDF&lt;br /&gt;
    FILENAME                : D:\Aplica\AguasAlgarve\DadosBase\MM5\AlgarveCoast\MM5Out_D3D2_July2004.hdf5&lt;br /&gt;
    OUTPUT_HDF              : 1&lt;br /&gt;
    &amp;lt;endproperty&amp;gt;&lt;br /&gt;
Atmospheric pressure&lt;br /&gt;
    &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
    NAME                    : atmospheric pressure&lt;br /&gt;
    UNITS                   : Pa&lt;br /&gt;
    DESCRIPTION             : NOAA reanalysis atmospheric pressure at sea level&lt;br /&gt;
    DEFAULTVALUE            : 0.&lt;br /&gt;
    FILE_IN_TIME            : HDF&lt;br /&gt;
    FILENAME                : D:\Aplica\AguasAlgarve\DadosBase\MM5\AlgarveCoast\MM5Out_D3D2_July2004.hdf5&lt;br /&gt;
    OUTPUT_HDF              : 1&lt;br /&gt;
    &amp;lt;endproperty&amp;gt;&lt;br /&gt;
Solar radiation&lt;br /&gt;
    &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
    NAME                    : solar radiation&lt;br /&gt;
    UNITS                   : W/m^2&lt;br /&gt;
    DESCRIPTION             : meteoIST Solar Radiation&lt;br /&gt;
    ALBEDO                  : 0.05  ![%]&lt;br /&gt;
    FILE_IN_TIME            : HDF&lt;br /&gt;
    FILENAME                : D:\Aplica\AguasAlgarve\DadosBase\MM5\AlgarveCoast\MM5Out_D3D2_July2004.hdf5&lt;br /&gt;
    DEFAULTVALUE            : 0.0&lt;br /&gt;
    TIME_SERIE              : 0&lt;br /&gt;
    OUTPUT_HDF              : 1&lt;br /&gt;
    &amp;lt;endproperty&amp;gt;&lt;br /&gt;
Air temperature&lt;br /&gt;
    &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
    NAME                    : air temperature&lt;br /&gt;
    UNITS                   : ºC&lt;br /&gt;
    DESCRIPTION             : Temperature&lt;br /&gt;
    DEFAULTVALUE            : 0.&lt;br /&gt;
    FILE_IN_TIME            : HDF&lt;br /&gt;
    FILENAME                : D:\Aplica\AguasAlgarve\DadosBase\MM5\AlgarveCoast\MM5Out_D3D2_July2004.hdf5&lt;br /&gt;
    TIME_SERIE              : 0&lt;br /&gt;
    OUTPUT_HDF              : 1&lt;br /&gt;
    &amp;lt;endproperty&amp;gt;&lt;br /&gt;
Relative humidity&lt;br /&gt;
    &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
    NAME                    : relative humidity&lt;br /&gt;
    UNITS                   : fraction&lt;br /&gt;
    DESCRIPTION             : Humidity&lt;br /&gt;
    DEFAULTVALUE            : 0.&lt;br /&gt;
    FILE_IN_TIME            : HDF&lt;br /&gt;
    FILENAME                : D:\Aplica\AguasAlgarve\DadosBase\MM5\AlgarveCoast\MM5Out_D3D2_July2004.hdf5&lt;br /&gt;
    TIME_SERIE              : 0&lt;br /&gt;
    OUTPUT_HDF              : 1&lt;br /&gt;
    &amp;lt;endproperty&amp;gt;&lt;br /&gt;
Cloud cover&lt;br /&gt;
    &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
    NAME                    : cloud cover&lt;br /&gt;
    UNITS                   : fraction&lt;br /&gt;
    DESCRIPTION             : cloud cover&lt;br /&gt;
    DEFAULTVALUE            : 0.&lt;br /&gt;
    FILE_IN_TIME            : NONE&lt;br /&gt;
    !FILENAME                : D:\Aplica\AguasAlgarve\DadosBase\MM5\AlgarveCoast\MM5Out_D3D2_July2004.hdf5&lt;br /&gt;
    TIME_SERIE              : 0&lt;br /&gt;
    OUTPUT_HDF              : 1&lt;br /&gt;
    &amp;lt;endproperty&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== InterfaceWaterAir_x.dat==&lt;br /&gt;
Zonal wind stress&lt;br /&gt;
    &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
    NAME                    : wind stress X&lt;br /&gt;
    UNITS                   : N/m2&lt;br /&gt;
    DESCRIPTION             : calculated wind stress X&lt;br /&gt;
    DEFAULTVALUE            : 0&lt;br /&gt;
    REMAIN_CONSTANT         : 0  &lt;br /&gt;
    TYPE_ZUV                : z&lt;br /&gt;
    OUTPUT_HDF              : 1&lt;br /&gt;
    TIME_SERIE              : 0&lt;br /&gt;
    &amp;lt;endproperty&amp;gt;&lt;br /&gt;
Meridional wind stress&lt;br /&gt;
    &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
    NAME                    : wind stress Y&lt;br /&gt;
    UNITS                   : N/m2&lt;br /&gt;
    DESCRIPTION             : calculated wind stress Y&lt;br /&gt;
    DEFAULTVALUE            : 0&lt;br /&gt;
    TYPE_ZUV                : z&lt;br /&gt;
    REMAIN_CONSTANT         : 0&lt;br /&gt;
    OUTPUT_HDF              : 1&lt;br /&gt;
    TIME_SERIE              : 0&lt;br /&gt;
    &amp;lt;endproperty&amp;gt;&lt;br /&gt;
Latent heat&lt;br /&gt;
    &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
    NAME                    : latent heat&lt;br /&gt;
    UNITS                   : W/m^2&lt;br /&gt;
    DESCRIPTION             : Calculated latent heat&lt;br /&gt;
    FILE_IN_TIME            : NONE&lt;br /&gt;
    REMAIN_CONSTANT         : 0&lt;br /&gt;
    DEFAULTVALUE            : 0.&lt;br /&gt;
    TIME_SERIE              : 0&lt;br /&gt;
    OUTPUT_HDF              : 1&lt;br /&gt;
    &amp;lt;endproperty&amp;gt;&lt;br /&gt;
Sensible heat&lt;br /&gt;
    &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
    NAME                    : sensible heat&lt;br /&gt;
    UNITS                   : W/m^2&lt;br /&gt;
    DESCRIPTION             : Calculated sensible heat&lt;br /&gt;
    FILE_IN_TIME            : NONE&lt;br /&gt;
    REMAIN_CONSTANT         : 0&lt;br /&gt;
    DEFAULTVALUE            : 0.&lt;br /&gt;
    TIME_SERIE              : 0&lt;br /&gt;
    OUTPUT_HDF              : 1&lt;br /&gt;
    &amp;lt;endproperty&amp;gt;&lt;br /&gt;
Solar radiation at sea level&lt;br /&gt;
    &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
    NAME                    : surface radiation&lt;br /&gt;
    UNITS                   : W/m^2&lt;br /&gt;
    DESCRIPTION             : Calculated infrared radiation&lt;br /&gt;
    ALBEDO                  : 0.05 ![%]&lt;br /&gt;
    FILE_IN_TIME            : NONE&lt;br /&gt;
    REMAIN_CONSTANT         : 0&lt;br /&gt;
    DEFAULTVALUE            : 0.&lt;br /&gt;
    TIME_SERIE              : 0&lt;br /&gt;
    OUTPUT_HDF              : 1&lt;br /&gt;
    &amp;lt;endproperty&amp;gt;&lt;br /&gt;
Net long wave radiation = (downward - upward) long wave radiation&lt;br /&gt;
    &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
    NAME                    : net long wave radiation&lt;br /&gt;
    UNITS                   : W/m^2&lt;br /&gt;
    DESCRIPTION             : Calculated net long wave radiation&lt;br /&gt;
    FILE_IN_TIME            : NONE&lt;br /&gt;
    REMAIN_CONSTANT         : 0&lt;br /&gt;
    DEFAULTVALUE            : 0.&lt;br /&gt;
    TIME_SERIE              : 0&lt;br /&gt;
    OUTPUT_HDF              : 1&lt;br /&gt;
    &amp;lt;endproperty&amp;gt;&lt;br /&gt;
Downward long wave radiation&lt;br /&gt;
    &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
    NAME                    : downward long wave radiation&lt;br /&gt;
    UNITS                   : W/m^2&lt;br /&gt;
    DESCRIPTION             : Calculated downward long wave radiation&lt;br /&gt;
    FILE_IN_TIME            : HDF&lt;br /&gt;
    FILENAME                : D:\Aplica\AguasAlgarve\DadosBase\MM5\AlgarveCoast\MM5Out_D3D2_July2004.hdf5&lt;br /&gt;
    DEFAULTVALUE            : 0.&lt;br /&gt;
    TIME_SERIE              : 0&lt;br /&gt;
    OUTPUT_HDF              : 1&lt;br /&gt;
    &amp;lt;endproperty&amp;gt;&lt;br /&gt;
Upward long wave radiation&lt;br /&gt;
    &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
    NAME                    : upward long wave radiation&lt;br /&gt;
    UNITS                   : W/m^2&lt;br /&gt;
    DESCRIPTION             : Calculated upward long wave radiation&lt;br /&gt;
    FILE_IN_TIME            : NONE&lt;br /&gt;
    REMAIN_CONSTANT         : 0&lt;br /&gt;
    DEFAULTVALUE            : 0.&lt;br /&gt;
    TIME_SERIE              : 0&lt;br /&gt;
    OUTPUT_HDF              : 1&lt;br /&gt;
    &amp;lt;endproperty&amp;gt;&lt;br /&gt;
Non solar flux = Net long wave radiation + Latent + Sensible&lt;br /&gt;
    &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
    NAME                    : non solar flux&lt;br /&gt;
    UNITS                   : W/m^2&lt;br /&gt;
    DESCRIPTION             : Calculated infrared radiation&lt;br /&gt;
    FILE_IN_TIME            : NONE&lt;br /&gt;
    REMAIN_CONSTANT         : 0&lt;br /&gt;
    DEFAULTVALUE            : 0.&lt;br /&gt;
    TIME_SERIE              : 0&lt;br /&gt;
    OUTPUT_HDF              : 1&lt;br /&gt;
    &amp;lt;endproperty&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:MOHID Water]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Open_Boundary_conditions;&amp;diff=996</id>
		<title>Open Boundary conditions;</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Open_Boundary_conditions;&amp;diff=996"/>
				<updated>2007-11-29T16:38:51Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#redirect [[Open Boundary conditions]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Open_Boundary_conditions&amp;diff=741</id>
		<title>Open Boundary conditions</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Open_Boundary_conditions&amp;diff=741"/>
				<updated>2007-11-29T16:38:17Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== WaterProperties_x.dat==&lt;br /&gt;
&lt;br /&gt;
For each property it's possible to define a specific boundary condition. &lt;br /&gt;
The available options are:&lt;br /&gt;
&lt;br /&gt;
1 - 1D horizontal mass balance normal to the boundary&lt;br /&gt;
&lt;br /&gt;
2 - An imposed value&lt;br /&gt;
&lt;br /&gt;
3 - 1D vertical diffusion is added to option 1&lt;br /&gt;
&lt;br /&gt;
4 - Null gradient&lt;br /&gt;
&lt;br /&gt;
5 - SubModel, a value interpolated directly from the father is imposed&lt;br /&gt;
&lt;br /&gt;
6 - Orlanski type boundary condition&lt;br /&gt;
&lt;br /&gt;
8 - Cyclic boundary condition&lt;br /&gt;
&lt;br /&gt;
By default, option 1 is assumed. &lt;br /&gt;
&lt;br /&gt;
     &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
      BOUNDARY_CONDITION      : 1 &lt;br /&gt;
     &amp;lt;endproperty&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default the value assumed for the boundary is the one assumed in the intialization&lt;br /&gt;
process of the property field (INTERIOR) the user can also specify a value for the &lt;br /&gt;
boundary (EXTERIOR)&lt;br /&gt;
&lt;br /&gt;
     &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
      BOUNDARY_INITIALIZATION     : EXTERIOR&lt;br /&gt;
      DEFAULTBOUNDARY             : 0.&lt;br /&gt;
     &amp;lt;endproperty&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:MOHID Water]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Diffusion_values;&amp;diff=988</id>
		<title>Diffusion values;</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Diffusion_values;&amp;diff=988"/>
				<updated>2007-11-29T16:37:37Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#redirect [[Diffusion values]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Diffusion_values&amp;diff=200</id>
		<title>Diffusion values</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Diffusion_values&amp;diff=200"/>
				<updated>2007-11-29T16:35:54Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By default the horizontal turbulent viscosity is assumed equal to the horizontal &lt;br /&gt;
turbulent diffusion (or diffusivity). In the vertical, the same is assumed except &lt;br /&gt;
if the turbulent model (GOTM) option is on. &lt;br /&gt;
&lt;br /&gt;
== Turbulence_x.dat ==&lt;br /&gt;
&lt;br /&gt;
By default it is assume a constant turbulent horizontal viscosity (m2/s)&lt;br /&gt;
&lt;br /&gt;
     VISCOSITY_H             : 10&lt;br /&gt;
&lt;br /&gt;
By default it is assume a constant turbulent vertical viscosity (m2/s)&lt;br /&gt;
&lt;br /&gt;
     VISCOSITY_V             : 1e-3&lt;br /&gt;
&lt;br /&gt;
The user can activate the turbulence model (GOTM package). In this case the&lt;br /&gt;
user must look to the turbulence module output results to see the fields of &lt;br /&gt;
vertical turbulent viscosity and diffusivity.&lt;br /&gt;
&lt;br /&gt;
     MODTURB                 : turbulence_equation&lt;br /&gt;
&lt;br /&gt;
[[Category:MOHID Water]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Advection_numerical_scheme;&amp;diff=980</id>
		<title>Advection numerical scheme;</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Advection_numerical_scheme;&amp;diff=980"/>
				<updated>2007-11-29T16:35:03Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#redirect [[Advection numerical scheme]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Advection_numerical_scheme&amp;diff=28</id>
		<title>Advection numerical scheme</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Advection_numerical_scheme&amp;diff=28"/>
				<updated>2007-11-29T16:33:49Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== WaterProperties_x.dat ==&lt;br /&gt;
&lt;br /&gt;
1 - First order upwind is the more robust but the less precise;&lt;br /&gt;
&lt;br /&gt;
2 - Second order upwind has good precision but is highly unstable;&lt;br /&gt;
&lt;br /&gt;
3 - Third order upwind has excellent precision, more or less stable and not;&lt;br /&gt;
&lt;br /&gt;
4 - The Transport Variation Diminishing method(TVD) is in fact a hydrid scheme between a first order and a third order method where a ponderation factor is computed so the method is able to insure positiveness. The method 4 is advised for experienced users. By default the method is 1 to increase robustness of the runs. &lt;br /&gt;
&lt;br /&gt;
5 - Central differences has good precision but is highly unstable&lt;br /&gt;
&lt;br /&gt;
Horizontal keyword option &lt;br /&gt;
&lt;br /&gt;
 ADV_METHOD_H  : 4&lt;br /&gt;
&lt;br /&gt;
Vertical keyword option &lt;br /&gt;
&lt;br /&gt;
 ADV_METHOD_V  : 4&lt;br /&gt;
&lt;br /&gt;
There are several methodologies to compute the TVD ponderation factor. MinMod = 1, VanLeer = 2, Muscl = 3, Superbee = 4, PDM = 5. By default the option admitted is SuperBee.&lt;br /&gt;
&lt;br /&gt;
Horizontal keyword option &lt;br /&gt;
&lt;br /&gt;
 TVD_LIMIT_H : 4 &lt;br /&gt;
&lt;br /&gt;
Vertical keyword option &lt;br /&gt;
&lt;br /&gt;
 TVD_LIMIT_V : 4&lt;br /&gt;
&lt;br /&gt;
[[Category:MOHID Water]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Nesting_models&amp;diff=693</id>
		<title>Nesting models</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Nesting_models&amp;diff=693"/>
				<updated>2007-11-29T16:05:24Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here is a guide on configuring [[MOHID Water]] with nested models.&lt;br /&gt;
&lt;br /&gt;
==In MOHID GUI==&lt;br /&gt;
*Create a new project in [[MOHID GUI]],&lt;br /&gt;
*Create a Model by inserting a new Simulation,&lt;br /&gt;
**Setup your model&lt;br /&gt;
*Create a Submodel by inserting a new Simulation from the current Simulation. The new simulation should fold into the previous one.&lt;br /&gt;
**Setup the model&lt;br /&gt;
&lt;br /&gt;
==Setting up the files==&lt;br /&gt;
The whole issue is how to define the open-boundary conditions for the submodel.&lt;br /&gt;
Basically we suggest to use a [[Flather radiation condition]] at the open boundaries that will radiate the water level and the barotropic flux in conjunction with a flow relaxation scheme spanning a few cells from the open-boundaries to the interior for the velocities (''u'' and ''v'').&lt;br /&gt;
&lt;br /&gt;
===Keywords in Hydrodynamic.dat===&lt;br /&gt;
In the submodel hydrodynamic file&lt;br /&gt;
&lt;br /&gt;
 SUBMODEL          : 1&lt;br /&gt;
 &lt;br /&gt;
 !Flather radiation scheme using the father model as a reference solution.&lt;br /&gt;
 RADIATION         : 2&lt;br /&gt;
 LOCAL_SOLUTION    : 2&lt;br /&gt;
 &lt;br /&gt;
 !Activate the Flow relaxation scheme&lt;br /&gt;
 DATA_ASSIMILATION : 1&lt;br /&gt;
&lt;br /&gt;
===Keywords in Assimilation.dat===&lt;br /&gt;
In the submodel assimilation file&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
 NAME                    : velocity U&lt;br /&gt;
 UNITS                   : m/s&lt;br /&gt;
 DIMENSION               : 3D&lt;br /&gt;
 OUTPUT_HDF              : 1&lt;br /&gt;
 &lt;br /&gt;
 COLD_RELAX_PERIOD       : 432000&lt;br /&gt;
 COLD_ORDER              : 5&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 DEFAULTVALUE            : 0&lt;br /&gt;
 INITIALIZATION_METHOD   : HDF&lt;br /&gt;
 FILE_IN_TIME            : HDF&lt;br /&gt;
 FILENAME                : ../../GeneralData/Reference_vel_U.hdf5&lt;br /&gt;
 TYPE_ZUV                : z&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_coef&amp;gt;&amp;gt;&lt;br /&gt;
 DEFAULTVALUE            : 1e9&lt;br /&gt;
 TYPE_ZUV                : u&lt;br /&gt;
 FILE_IN_TIME            : NONE&lt;br /&gt;
 REMAIN_CONSTANT         : 1&lt;br /&gt;
 INITIALIZATION_METHOD   : ASCII_FILE&lt;br /&gt;
 FILENAME                : ../../GeneralData/RelaxationCoefs_U.dat&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;end_coef&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;endproperty&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;beginproperty&amp;gt;&lt;br /&gt;
 NAME                    : velocity V&lt;br /&gt;
 UNITS                   : m/s&lt;br /&gt;
 DIMENSION               : 3D&lt;br /&gt;
 OUTPUT_HDF              : 1&lt;br /&gt;
 &lt;br /&gt;
 COLD_RELAX_PERIOD       : 432000&lt;br /&gt;
 COLD_ORDER              : 5&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_field&amp;gt;&amp;gt;&lt;br /&gt;
 DEFAULTVALUE            : 0&lt;br /&gt;
 INITIALIZATION_METHOD   : HDF&lt;br /&gt;
 FILE_IN_TIME            : HDF&lt;br /&gt;
 FILENAME                : ../../GeneralData/Reference_vel_V.hdf5&lt;br /&gt;
 TYPE_ZUV                : z&lt;br /&gt;
 &amp;lt;&amp;lt;end_field&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;begin_coef&amp;gt;&amp;gt;&lt;br /&gt;
 DEFAULTVALUE            : 1e9&lt;br /&gt;
 TYPE_ZUV                : v&lt;br /&gt;
 FILE_IN_TIME            : NONE&lt;br /&gt;
 REMAIN_CONSTANT         : 1&lt;br /&gt;
 INITIALIZATION_METHOD   : ASCII_FILE&lt;br /&gt;
 FILENAME                : ../../GeneralData/RelaxationCoefs_V.dat&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;&amp;lt;end_coef&amp;gt;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;endproperty&amp;gt;&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Residual&amp;diff=813</id>
		<title>Residual</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Residual&amp;diff=813"/>
				<updated>2007-08-09T10:36:43Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;MohidWater may calculate time averages on certain hydrodynamic parameters at the end of each run. &lt;br /&gt;
The variables whose time averages are calculated are the '''Velocity''', '''Flux''', '''FluxVel''' and the '''Waterlevel''' and they appear in the hdf5 file under the group ''/Residual''.&lt;br /&gt;
In particular the residual flux is the mean between the cell's faces of the time averaged face flux divided by the face width.&lt;br /&gt;
&lt;br /&gt;
== Definitions == &lt;br /&gt;
&lt;br /&gt;
*'''Velocity'''   - time averaged velocity during the period of the simulation&lt;br /&gt;
*'''Flux'''       - time averaged specific flow in m2/s which is the flow in m3/s divided by the width in meters of the grid cell) during the period of the simulation&lt;br /&gt;
*'''FluxVel'''    - time averaged specific flow divided by the average grid cell thickness in m/s  which is the specific flow (m2/s) divided by the average thickness of the grid cell in meters during the period of the simulation&lt;br /&gt;
*'''Waterlevel''' - time averaged water elevation during the period of the simulation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
Simply turn on the residual option in the ''Hydrodynamic.dat'' file:&lt;br /&gt;
 RESIDUAL             : 1&lt;br /&gt;
&lt;br /&gt;
== Formulas ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;/Residual/Flux/X = \frac{\left( \overline{U\;AreaU} / DYY \right)^{+1/2} + \left( \overline{U\;AreaU} / DYY \right)^{-1/2}}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;/Residual/FluxVel/X = \frac{\left( \overline{U\;AreaU} / DYY \right)^{+1/2} + \left( \overline{U\;AreaU} / DYY \right)^{-1/2}}{2}/\overline{DWZ}^{-1/2}&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Compiling_with_CVF&amp;diff=126</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=126"/>
				<updated>2007-07-27T15:09:55Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: /* Optional compilation 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 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.&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;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>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Compiling&amp;diff=120</id>
		<title>Compiling</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Compiling&amp;diff=120"/>
				<updated>2007-07-27T15:08:55Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: /* Compiling in Windows */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Mohid can be compiled using different compilers under different operative systems. &lt;br /&gt;
&lt;br /&gt;
== Compiling in Windows ==&lt;br /&gt;
Currently, the Mohid developing team is working with two different FORTRAN 95 compilers: &lt;br /&gt;
#Compaq Visual Fortran 6.6c (CVF)&lt;br /&gt;
#Intel Fortran Compiler 9.0(IFC). &lt;br /&gt;
&lt;br /&gt;
See more on [[compiling with CVF|compiling with Compaq Visual Fortran 6.6c ]] and [[compiling with IFC|Intel Fortran Compiler 9.0 or higher]].&lt;br /&gt;
&lt;br /&gt;
A [[makefile]] can also be used to compile Mohid in Windows.&lt;br /&gt;
&lt;br /&gt;
== Compiling in [[*NIX platforms]] ==&lt;br /&gt;
Use a [[*NIX platforms|makefile]].&lt;br /&gt;
&lt;br /&gt;
Here are specific instructions to [[Compile MohidWater for Debian Linux|compile MOHID Water for Debian Linux]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Programming]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Compiling]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Current_events&amp;diff=180</id>
		<title>Current events</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Current_events&amp;diff=180"/>
				<updated>2007-07-02T15:40:11Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Properties_names&amp;diff=783</id>
		<title>Properties names</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Properties_names&amp;diff=783"/>
				<updated>2007-07-02T15:38:36Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*temperature&lt;br /&gt;
*salinity&lt;br /&gt;
*density&lt;br /&gt;
*phytoplankton&lt;br /&gt;
*zooplankton&lt;br /&gt;
*dissolved refractory organic phosphorus&lt;br /&gt;
*dissolved non-refractory organic phosphorus&lt;br /&gt;
*dissolved refractory organic nitrogen&lt;br /&gt;
*dissolved non-refractory organic nitrogen&lt;br /&gt;
*inorganic phosphorus&lt;br /&gt;
*particulate organic carbon&lt;br /&gt;
*particulate organic phosphorus&lt;br /&gt;
*particulate organic nitrogen&lt;br /&gt;
*labile dissolved organic carbon&lt;br /&gt;
*labile dissolved organic phosphorus&lt;br /&gt;
*labile dissolved organic nitrogen&lt;br /&gt;
*semi-labile dissolved organic carbon&lt;br /&gt;
*semi-labile dissolved organic phosphorus&lt;br /&gt;
*semi-labile dissolved organic nitrogen&lt;br /&gt;
*ammonia&lt;br /&gt;
*nitrate&lt;br /&gt;
*silicate acid&lt;br /&gt;
*biogenic silica&lt;br /&gt;
*carbon dioxide&lt;br /&gt;
*oxygen&lt;br /&gt;
*dissolved oxygen percent saturation&lt;br /&gt;
*diatoms carbon&lt;br /&gt;
*diatoms nitrogen&lt;br /&gt;
*diatoms phosphorus&lt;br /&gt;
*diatoms silica&lt;br /&gt;
*diatoms chlorophyll&lt;br /&gt;
*autotrophic flagellates carbon&lt;br /&gt;
*autotrophic flagellates nitrogen&lt;br /&gt;
*autotrophic flagellates phosphorus&lt;br /&gt;
*autotrophic flagellates chlorophyll&lt;br /&gt;
*picoalgae carbon&lt;br /&gt;
*picoalgae nitrogen&lt;br /&gt;
*picoalgae phosphorus&lt;br /&gt;
*picoalgae chlorophyll&lt;br /&gt;
*flagellates carbon&lt;br /&gt;
*flagellates nitrogen&lt;br /&gt;
*flagellates phosphorus&lt;br /&gt;
*flagellates chlorophyll&lt;br /&gt;
*microzooplankton carbon&lt;br /&gt;
*microzooplankton nitrogen&lt;br /&gt;
*microzooplankton phosphorus&lt;br /&gt;
*heterotrophic nanoflagellate carbon&lt;br /&gt;
*heterotrophic nanoflagellate nitrogen&lt;br /&gt;
*heterotrophic nanoflagellate phosphorus&lt;br /&gt;
*mesozooplankton carbon&lt;br /&gt;
*mesozooplankton nitrogen&lt;br /&gt;
*mesozooplankton phosphorus&lt;br /&gt;
*heterotrophic bacteria carbon&lt;br /&gt;
*heterotrophic bacteria nitrogen&lt;br /&gt;
*heterotrophic bacteria phosphorus&lt;br /&gt;
*nitrite&lt;br /&gt;
*biochemical oxygen demand&lt;br /&gt;
*cohesive sediment&lt;br /&gt;
*fecal coliforms&lt;br /&gt;
*escherichia coli&lt;br /&gt;
*T90&lt;br /&gt;
*oil&lt;br /&gt;
*ciliate&lt;br /&gt;
*bacteria&lt;br /&gt;
*particulate arsenic&lt;br /&gt;
*dissolved arsenic&lt;br /&gt;
*larvae&lt;br /&gt;
*age&lt;br /&gt;
*fish&lt;br /&gt;
*fish food&lt;br /&gt;
*macroalgae&lt;br /&gt;
*drifting macroalgae&lt;br /&gt;
*microphytobenthos&lt;br /&gt;
*particulated ammonia&lt;br /&gt;
*particulated refractory organic nitrogen&lt;br /&gt;
*nitrogen gas&lt;br /&gt;
*heterotrophic microorganism nitrogen&lt;br /&gt;
*anaerobic microorganism nitrogen&lt;br /&gt;
*autotrophic microorganism nitrogen&lt;br /&gt;
*anaerobic microorganism carbon&lt;br /&gt;
*autotrophic microorganism carbon&lt;br /&gt;
*heterotrophic microorganism carbon&lt;br /&gt;
*particulate labile organic carbon&lt;br /&gt;
*particulated refractory organic carbon&lt;br /&gt;
*generic property&lt;br /&gt;
*grossprod&lt;br /&gt;
*netprod&lt;br /&gt;
*nutrientlim&lt;br /&gt;
*nitrogenlim&lt;br /&gt;
*phosphoruslim&lt;br /&gt;
*lightlim&lt;br /&gt;
*temperaturelim&lt;br /&gt;
*salinitylim&lt;br /&gt;
*diagrossprod&lt;br /&gt;
*dianutrientlim&lt;br /&gt;
*dianitrogenlim&lt;br /&gt;
*diaphosphoruslim&lt;br /&gt;
*diasilicalim&lt;br /&gt;
*dialightlim&lt;br /&gt;
*diatemperaturelim&lt;br /&gt;
*diatoms&lt;br /&gt;
*water level&lt;br /&gt;
*velocity modulus&lt;br /&gt;
*velocity direction&lt;br /&gt;
*flow modulus&lt;br /&gt;
*velocity U&lt;br /&gt;
*velocity V&lt;br /&gt;
*velocity W&lt;br /&gt;
*water flux X&lt;br /&gt;
*water flux Y&lt;br /&gt;
*coriolis X&lt;br /&gt;
*baroclinic force X&lt;br /&gt;
*horizontal transport X&lt;br /&gt;
*coriolis Y&lt;br /&gt;
*baroclinic force Y&lt;br /&gt;
*horizontal transport Y&lt;br /&gt;
*barotropic velocity U&lt;br /&gt;
*barotropic velocity V&lt;br /&gt;
*water level analyzed for altimetry&lt;br /&gt;
*temperature analyzed for altimetry&lt;br /&gt;
*salinity analyzed for altimetry&lt;br /&gt;
*water level for altimetry assimilation&lt;br /&gt;
*variance field for assimilation&lt;br /&gt;
*baroclinic velocity U&lt;br /&gt;
*baroclinic velocity V&lt;br /&gt;
*obstacle drag coefficient&lt;br /&gt;
*vorticity&lt;br /&gt;
*baroclinic KE&lt;br /&gt;
*Perturbation Potential Energy&lt;br /&gt;
*Kinetic Energy&lt;br /&gt;
*shear velocity&lt;br /&gt;
*vertical z&lt;br /&gt;
*particulate contaminant&lt;br /&gt;
*dissolved contaminant&lt;br /&gt;
*sediment&lt;br /&gt;
*dissolved sodium&lt;br /&gt;
*dissolved calcium&lt;br /&gt;
*particulate sodium&lt;br /&gt;
*particulate calcium&lt;br /&gt;
*latent heat&lt;br /&gt;
*sensible heat&lt;br /&gt;
*evaporation&lt;br /&gt;
*net long wave radiation&lt;br /&gt;
*upward long wave radiation&lt;br /&gt;
*downward long wave radiation&lt;br /&gt;
*short wave solar radiation&lt;br /&gt;
*long wave solar radiation&lt;br /&gt;
*short wave solar radiation extinction&lt;br /&gt;
*long wave solar radiation extinction&lt;br /&gt;
*oxygen flux&lt;br /&gt;
*wind shear velocity&lt;br /&gt;
*surface radiation&lt;br /&gt;
*wind stress X&lt;br /&gt;
*wind stress Y&lt;br /&gt;
*surface water flux&lt;br /&gt;
*non solar flux&lt;br /&gt;
*turbulent kinetic energy&lt;br /&gt;
*carbon dioxide flux&lt;br /&gt;
*albedo&lt;br /&gt;
*wind velocity X&lt;br /&gt;
*wind velocity Y&lt;br /&gt;
*solar radiation&lt;br /&gt;
*precipitation&lt;br /&gt;
*atmospheric pressure&lt;br /&gt;
*air temperature&lt;br /&gt;
*relative humidity&lt;br /&gt;
*wind modulos&lt;br /&gt;
*wind angle&lt;br /&gt;
*cloud cover&lt;br /&gt;
*irrigation&lt;br /&gt;
*sunshine hours&lt;br /&gt;
*atmospheric transmitivity&lt;br /&gt;
*mean sea level pressure&lt;br /&gt;
*wind modulus&lt;br /&gt;
*wind direction&lt;br /&gt;
*refractory particulate organic matter&lt;br /&gt;
*labile particulate organic matter&lt;br /&gt;
*labile dissolved organic matter&lt;br /&gt;
*refractory dissolved organic matter&lt;br /&gt;
*particulate silica&lt;br /&gt;
*dissolved silica&lt;br /&gt;
*inorganic carbon&lt;br /&gt;
*pH&lt;br /&gt;
*bicarbonate&lt;br /&gt;
*carbonate&lt;br /&gt;
*algae_1&lt;br /&gt;
*algae_2&lt;br /&gt;
*algae_3&lt;br /&gt;
*algae_4&lt;br /&gt;
*algae_5&lt;br /&gt;
*epiphyton_1&lt;br /&gt;
*epiphyton_2&lt;br /&gt;
*epiphyton_3&lt;br /&gt;
*epiphyton_4&lt;br /&gt;
*epiphyton_5&lt;br /&gt;
*alkalinity&lt;br /&gt;
*detritus&lt;br /&gt;
*ANLIM&lt;br /&gt;
*APLIM&lt;br /&gt;
*ASLIM&lt;br /&gt;
*ALIGHTLIM&lt;br /&gt;
*AOVERALLLIM&lt;br /&gt;
*ENLIM&lt;br /&gt;
*EPLIM&lt;br /&gt;
*ESLIM&lt;br /&gt;
*ELIGHTLIM&lt;br /&gt;
*EOVERALLLIM&lt;br /&gt;
*NH4D&lt;br /&gt;
*NO3D&lt;br /&gt;
*LDOMD&lt;br /&gt;
*RDOMD&lt;br /&gt;
*LPOMD&lt;br /&gt;
*RPOMD&lt;br /&gt;
*LRDOMD&lt;br /&gt;
*LRPOMD&lt;br /&gt;
*CBODD&lt;br /&gt;
*PO4ER&lt;br /&gt;
*PO4EG&lt;br /&gt;
*PO4AR&lt;br /&gt;
*PO4AG&lt;br /&gt;
*PO4OM&lt;br /&gt;
*PO4BOD&lt;br /&gt;
*NH4ER&lt;br /&gt;
*NH4EG&lt;br /&gt;
*NH4AR&lt;br /&gt;
*NH4AG&lt;br /&gt;
*NH4OM&lt;br /&gt;
*NH4BOD&lt;br /&gt;
*NO3AG&lt;br /&gt;
*NO3EG&lt;br /&gt;
*DSIAG&lt;br /&gt;
*DSIEG&lt;br /&gt;
*DSID&lt;br /&gt;
*PSIAM&lt;br /&gt;
*PSID&lt;br /&gt;
*LDOMAP&lt;br /&gt;
*LDOMEP&lt;br /&gt;
*LPOMAP&lt;br /&gt;
*DOAP&lt;br /&gt;
*DOEP&lt;br /&gt;
*DOAR&lt;br /&gt;
*DOER&lt;br /&gt;
*DOOM&lt;br /&gt;
*DONIT&lt;br /&gt;
*ICARBONAP&lt;br /&gt;
*ICARBONEP&lt;br /&gt;
*ICARBONBOD&lt;br /&gt;
*sand diameter&lt;br /&gt;
*sand percentage&lt;br /&gt;
*D35&lt;br /&gt;
*D50&lt;br /&gt;
*D90&lt;br /&gt;
*bed rock&lt;br /&gt;
*sand tau critic&lt;br /&gt;
*sand&lt;br /&gt;
*transport capacity&lt;br /&gt;
*transport capacity X&lt;br /&gt;
*transport capacity Y&lt;br /&gt;
*bottom evolution&lt;br /&gt;
*new bathymetry&lt;br /&gt;
*wave stress X&lt;br /&gt;
*wave stress Y&lt;br /&gt;
*Current X&lt;br /&gt;
*Current Y&lt;br /&gt;
*wave amplitude&lt;br /&gt;
*wave period&lt;br /&gt;
*wave direction&lt;br /&gt;
*significant wave height&lt;br /&gt;
*mean wave length&lt;br /&gt;
*mean wave period&lt;br /&gt;
*mean wave direction&lt;br /&gt;
*mean directional spread&lt;br /&gt;
*peak frequency&lt;br /&gt;
*peak direction&lt;br /&gt;
*wind sea peak frequency&lt;br /&gt;
*wind sea peak direction&lt;br /&gt;
*consolidation flux&lt;br /&gt;
*porosity&lt;br /&gt;
*shear stress&lt;br /&gt;
*reference evapotranspiration&lt;br /&gt;
*TSS&lt;br /&gt;
*cohesive sediment fine&lt;br /&gt;
*cohesive sediment medium&lt;br /&gt;
*cohesive sediment coarse&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_GlobalData&amp;diff=542</id>
		<title>Module GlobalData</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_GlobalData&amp;diff=542"/>
				<updated>2007-07-02T15:36:30Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
Module GlobalData, is responsible for global variables such as [[properties names]] and ID numbers, error types ID, constants and parameters, classes registration numbers and some derived types used frequently in other classes (e.g. type T_Size, a derived type containing the matrixes bounds). &lt;br /&gt;
&lt;br /&gt;
This is mainly static information needed and used equally by all classes. Some methods are also provided by this class, mainly related to checking properties names spelling and attributing ID numbers. It also handles error and used keywords logging and I/O units.&lt;br /&gt;
&lt;br /&gt;
== Sub-routines ==&lt;br /&gt;
&lt;br /&gt;
=== Internal names ===&lt;br /&gt;
*CheckPropertyName&lt;br /&gt;
*GetPropertyName&lt;br /&gt;
*GetPropertyIDNumber&lt;br /&gt;
*Check_Particulate_Property&lt;br /&gt;
*TranslateTypeZUV&lt;br /&gt;
&lt;br /&gt;
=== I/O management ===&lt;br /&gt;
*UnitsManager&lt;br /&gt;
&lt;br /&gt;
=== Errors and logs management ===&lt;br /&gt;
*SetError&lt;br /&gt;
*WriteErrorMessage&lt;br /&gt;
*LogKeyWord&lt;br /&gt;
&lt;br /&gt;
=== Start/End management ===&lt;br /&gt;
*StartupMohid&lt;br /&gt;
*ShutdownMohid&lt;br /&gt;
&lt;br /&gt;
=== Object oriented management routines ===&lt;br /&gt;
&lt;br /&gt;
*RegisterNewInstance&lt;br /&gt;
*AssociateInstance&lt;br /&gt;
*DeassociateInstance&lt;br /&gt;
*RegisterModule&lt;br /&gt;
*ModuleIsRegistered&lt;br /&gt;
*Read_Lock&lt;br /&gt;
*Read_Unlock&lt;br /&gt;
*VerifyReadLock&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;br /&gt;
[[Category:MOHID Base 1]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Changing_the_code&amp;diff=94</id>
		<title>Changing the code</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Changing_the_code&amp;diff=94"/>
				<updated>2007-06-15T14:15:59Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Mohid's source code is stored in a data base running under MS Source Safe 6.0. &lt;br /&gt;
If you are about to change code from MOHID always:&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px blue; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
*'''keep in mind that you are not the only one who works with Mohid;''' &lt;br /&gt;
*'''don’t keep a file checked-out for a long time;'''&lt;br /&gt;
*'''keep in mind that the model should be easily usable;'''&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Check list before making any changes ==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px blue; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
*Get the latest version of all the source files; &lt;br /&gt;
*Check-out the files which you are going to change; &lt;br /&gt;
*Proceed with the changes of the source code; Note that if you want to change a file and it is checked out you cannot proceed with the changes;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Check list before checking in a module ==&lt;br /&gt;
If you have made your changes in a source code file and believe they are finished, walk through this check list before checking in the source code file(s) you have edited.&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;
*Get the latest version of all files from source safe except the ones that are checked out by you. Note that if a module is checked out by another user you must also get the latest version;&lt;br /&gt;
*Compile all the code; &lt;br /&gt;
*Verify that code compiles with zero warnings, zero info and zero errors.&lt;br /&gt;
*Verify that the code must compile either on single precision and double precision.&lt;br /&gt;
*Check-in the file(s) &lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Programming]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=HDF5_file&amp;diff=316</id>
		<title>HDF5 file</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=HDF5_file&amp;diff=316"/>
				<updated>2007-06-01T10:07:36Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#redirect [[HDF file]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Blocks&amp;diff=68</id>
		<title>Blocks</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Blocks&amp;diff=68"/>
				<updated>2007-05-31T17:40:23Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: /* Related links */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
Another way of defining options in a MOHID input data file is, as referred above, by using information blocks. These blocks are normally used so that advanced options can be defined through the combination of groups of keywords. &lt;br /&gt;
&lt;br /&gt;
== Block definition ==&lt;br /&gt;
[[Image:block1.jpg|350px|thumb|right|'''Structure of a block''']]&lt;br /&gt;
Each block of information is delimited by a '''''begin block tag''''' and an '''''end block tag''''', each written in a different line. The '''''begin block''''' and '''''end block''''' tags are normally written between the following symbols '''&amp;lt;''' and '''&amp;gt;''' (e.g. &amp;lt;beginproperty&amp;gt; and “&amp;lt;endproperty&amp;gt;”).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reading procedure ==&lt;br /&gt;
&lt;br /&gt;
[[Image:block2.jpg|350px|thumb|right|'''Reading procedure of a block''']]&lt;br /&gt;
The reading procedure is similar to the [[keywords]], but this time the 2 tags must be successfully found in order to define a block, identifying the line numbers where the block begins and ends. This allows a regular [[keyword]] search algorithm to work only between the 2 tags. A block can also be defined inside another block, therefore creating a hierarchical structure, in where up to three levels are allowed.&lt;br /&gt;
&lt;br /&gt;
== Related links ==&lt;br /&gt;
*[http://www.mohid.com/IHS Mohid Keywords Online DataBase]&lt;br /&gt;
*[[Keywords]]&lt;br /&gt;
*[[New_Keyword]]&lt;br /&gt;
*[[Module EnterData]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Input Data Formats]]&lt;br /&gt;
[[Category:keywords]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Actual_state&amp;diff=20</id>
		<title>Actual state</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Actual_state&amp;diff=20"/>
				<updated>2007-05-31T14:19:52Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Mohid Water Modelling System is organized in a hierarchical modular structure being, at the present time, constituted by over 60 [[modules]] which complete around 300000 source code lines. Each module is responsible to manage a certain kind of information handling a specific function or process. The information flux between modules is made in a client/server basis, assuring the information encapsulation in each module. Each module manages his associated memory, which is dynamically allocated.&lt;br /&gt;
&lt;br /&gt;
In order to convert, programmatically, environmental systems into a numerical model, an analysis of processes included in the model and the environmental compartments in which they take place, had to be conducted. Environmental systems are assumed to be divided into three compartments or media: air, water and land. This was the approach followed to reach the actual structure of Mohid leading to six functional groups of modules:&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px blue; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
*'''Global parameters modules''' – modules which handle global parameters like recognized property lists, time handling and functions, etc (e.g. [[Module GlobalData]], [[Module Time]]);&lt;br /&gt;
*'''Independent functions modules''' – modules that handle specific operations (e.g. [[Module Functions]] – various mathematical or scientific functions, [[Module Triangulation]] – performs advanced triangulation, [[Module LUD]] – equations systems solver);&lt;br /&gt;
*'''Structural modules''' - modules that handle geometry domain discretization, transformation and referentials, using variables like distances, areas, volumes, compute points, etc. (e.g. [[Module HorizontalGrid]] – handles the horizontal discretization, [[Module HorizontalMap]] – handles 2D horizontal mapping of grid cells like covered and uncovered cells, [[Module Map]] – handles 3D mapping of grid cells, [[Module Geometry]] - handles the vertical discretization and volumes);&lt;br /&gt;
*'''Data handling modules''' – modules that perform I/O operations (e.g. [[Module EnterData]] – reads and writes ASCII data files, [[Module HDF5]] – reads and writes matricial data into HDF5 format, [[Module TimeSerie]] – reads and writes formatted time series ASCII files);&lt;br /&gt;
*'''Specific functions modules''' – modules that perform specific operations that can only be used in MOHID (e.g. [[Module BoxDif]] - divides 2D and 3D domains into boxes and computes exchanges between boxes, total mass inside a box or process rates within a box, [[Module Statistics]] - computes basic statistic operations over space and time, [[Module Interface]] - interface between 3D and 0D models, [[Module WaterQuality]] – pelagic biochemical module);&lt;br /&gt;
*'''Processes modules''' - modules that correspond to the different processes taking place in the different environmental compartments ([[Module Hydrodynamic]], [[Module WaterProperties]], [[Module Turbulence]], [[Module Lagrangian]], [[Module InterfaceSedimentWater]], [[Module InterfaceWaterAir]], [[Module Atmosphere]]);&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All programs included in MOHID Water Modelling System are built on the top of one or more base libraries and the three core executables files can be found at the top of the pyramid:&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px blue; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
*[[MOHID Water]] - Three-dimensional numerical program to simulate surface water bodies.&lt;br /&gt;
*[[MOHID Land]] - Watershed model. Numerical program to simulate hydrographic basin and aquifers;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Smaller utility programs are easily built on the top of the libraries, which are usually designed for pre or post-processing results of the models. This support tools are normally managed by graphical user interfaces which allow management of input data, control of program execution, and output results analysis, along with other pre- and post-processsing operations.&lt;br /&gt;
&lt;br /&gt;
The integration of MOHID’s different tools can be easily achieved since these tools are based on the same framework. This coupling can thus be used to study the water cycle and its associated processes in an integrated approach.&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Mohid_Graphical_User_Interfaces&amp;diff=627</id>
		<title>Mohid Graphical User Interfaces</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Mohid_Graphical_User_Interfaces&amp;diff=627"/>
				<updated>2007-05-31T14:09:34Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The graphical user interfaces of the MOHID Water Modeling System are a set of programs to pre and post process the input and output data needed by the different numerical programs. This chapter describes how the user interfaces integrated in the MOHID Water Modeling System work and how they interact with the numerical code.&lt;br /&gt;
&lt;br /&gt;
The core graphical user interfaces are:&lt;br /&gt;
&lt;br /&gt;
* [[Mohid GUI]] - a graphical user interface to handle file structure organization of all files which are needed to set up a MOHID numerical simulation;&lt;br /&gt;
* [[Mohid GIS]] - a geographical information system which handles spatial and temporal variable data required or produced by MOHID numerical programs;&lt;br /&gt;
* [[Mohid PostProcessor]] - a graphical user interface which displays data stored in HDF files as animation on the screen;&lt;br /&gt;
* [[Mohid Time Series Editor]] – a graphical user interface which allows the user to visualize in a quick way time series data required or produced by MOHID numerical programs. &lt;br /&gt;
* [[Mohid Statistics Analyser]] - an application to perform statistical analysis of [[time series]].&lt;br /&gt;
&lt;br /&gt;
Data exchange between MOHID Graphical User Interfaces and MOHID numerical programs is done by files. There are two types of files which are used: (i) ASCII text files which follow a proper formatting and [[HDF file|HDF files]]. See also [[Input Data Formats]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Graphical User Interfaces]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=HDF_File&amp;diff=318</id>
		<title>HDF File</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=HDF_File&amp;diff=318"/>
				<updated>2007-05-31T14:05:18Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#redirect [[HDF file]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_HDF5&amp;diff=546</id>
		<title>Module HDF5</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_HDF5&amp;diff=546"/>
				<updated>2007-05-31T14:04:42Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
Module HDF5 is an interface between [[Mohid Water Modelling System]] and [[HDF5]] library that reads and writes matricial data into HDF5 format.&lt;br /&gt;
&lt;br /&gt;
The advantages of HDF5 are that the files can store much more data, the file access is much faster and the files can be read even if the run does not reach the end.&lt;br /&gt;
&lt;br /&gt;
== Programming ==&lt;br /&gt;
&lt;br /&gt;
'''Constructing phase'''&lt;br /&gt;
&lt;br /&gt;
In the constructing phase the following routines must be called:&lt;br /&gt;
-	[[GetHDF5FileAccess]]&lt;br /&gt;
-	[[ConstructHDF5]]&lt;br /&gt;
&lt;br /&gt;
In the /Grid group the following data should be stored:&lt;br /&gt;
-	[[WaterPoints3D]]&lt;br /&gt;
-	[[Bathymetry]]&lt;br /&gt;
-	[[ConnectionX]] &lt;br /&gt;
-	[[ConnectionY]] &lt;br /&gt;
&lt;br /&gt;
'''Working Cycle'''&lt;br /&gt;
&lt;br /&gt;
In the working cycle the following routines should be called:&lt;br /&gt;
-	[[HDF5SetSize]]&lt;br /&gt;
-	[[HDF5WriteData]] (for Time, ConnectionZ (SZZ), OpenPoints3D and for each property)&lt;br /&gt;
-	[[HDF5FlushMemory]]&lt;br /&gt;
&lt;br /&gt;
'''Destructor phase'''&lt;br /&gt;
&lt;br /&gt;
In the destructing phase the files must be closed. To do so one should call:&lt;br /&gt;
-	[[KillHDF5]]&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
Frequent errors are found as:&lt;br /&gt;
 HDF5-DIAG: Error detected in HDF5 library version: 1.6.4 thread 0.  Back trace f&lt;br /&gt;
 ollows.&lt;br /&gt;
   #000: D:\muqun\hdf5164-release-fortran\hdf5\src\H5G.c line 297 in H5Gopen(): g&lt;br /&gt;
 roup not found&lt;br /&gt;
     major(10): Symbol table layer&lt;br /&gt;
     minor(48): Object not found&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
[[HDF5 file]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;br /&gt;
[[Category:MOHID Base 1]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_FillMatrix&amp;diff=532</id>
		<title>Module FillMatrix</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_FillMatrix&amp;diff=532"/>
				<updated>2007-05-31T13:42:52Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: /* HDF file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview == &lt;br /&gt;
&lt;br /&gt;
Throughout all MOHID modules, two-dimensional (e.g. water elevation, wave height, wind velocity, bottom roughness length, etc.) and three-dimensional (e.g. temperature, salinity, nitrate concentrations, etc) variables need to be initialized. Also in some simulations these variables have an imposed solution which needs to be read from a file. In order to reduce input data errors, increase programming efficiency and normalize input data files format a generic input data module (ModuleFillMatrix) was designed. &lt;br /&gt;
&lt;br /&gt;
This module has a quite vast set of options to initialize and read 2D and 3D arrays, being these options defined in MOHID input data files. &lt;br /&gt;
The idea is quite simple, and is based on the fact that each 2D or 3D array to used/computed in MOHID is defined in the input data files in the form of a block.&lt;br /&gt;
&lt;br /&gt;
ModuleFillMatrix works based on a client/server philosophy, where the client module (e.g. ModuleWaterProperties is responsible for property temperature) requests the server module  (ModuleFillMatrix) to handle the initialization (or modification) of the array. Thus, the client  module sends information to ModuleFillMatrix about the input data file, namely the identification number (ID) of the file and the ID of the [[block]] in the file where the options for property ''X'' are defined.&lt;br /&gt;
&lt;br /&gt;
[[Image:FillMatrix.jpg|425px|thumb|center|'''ModuleFillMatrix input data scheme''']]&lt;br /&gt;
&lt;br /&gt;
== Reading solution from a file ==&lt;br /&gt;
The first operation ModuleFillMatrix does is to check whether the array is only to be initialized or if it is to be modified during the simulation from information stored in a file.&lt;br /&gt;
&lt;br /&gt;
This option is given by keyword [[FILE_IN_TIME]].&lt;br /&gt;
&lt;br /&gt;
=== Time series file ===&lt;br /&gt;
Uses a [[Time Series]] file to initialize the property. &lt;br /&gt;
&lt;br /&gt;
 FILE_IN_TIME          : TIMESERIE&lt;br /&gt;
 FILENAME              : ..\..\GeneralData\myTimeSeriesFile.dat&lt;br /&gt;
 DATA_COLUMN           : 2&lt;br /&gt;
 DEFAULTVALUE          : 0&lt;br /&gt;
&lt;br /&gt;
=== HDF file ===&lt;br /&gt;
Reads the solution from an [[HDF file]].&lt;br /&gt;
&lt;br /&gt;
 FILE_IN_TIME          : HDF&lt;br /&gt;
 FILENAME              : ..\..\GeneralData\myHDFfile.dat&lt;br /&gt;
 VGROUP_PATH           : \Results&lt;br /&gt;
 MULTIPLYING_FACTOR    : 1&lt;br /&gt;
 HDF_FIELD_NAME        : temperature&lt;br /&gt;
 DEFAULTVALUE          : 15&lt;br /&gt;
&lt;br /&gt;
=== Time series profile file ===&lt;br /&gt;
&lt;br /&gt;
 FILE_IN_TIME          : PROFILE_TIMESERIE&lt;br /&gt;
 FILENAME              : ..\..\GeneralData\myProfileTimeSeriesFile.dat&lt;br /&gt;
 DEFAULTVALUE          : 5&lt;br /&gt;
&lt;br /&gt;
== Initialization methods ==&lt;br /&gt;
&lt;br /&gt;
This option is given by keyword [[INITIALIZATION_METHOD]].&lt;br /&gt;
&lt;br /&gt;
=== Constant === &lt;br /&gt;
Assumes a constant value to initialize the property.&lt;br /&gt;
&lt;br /&gt;
 FILE_IN_TIME          : NONE&lt;br /&gt;
 INITIALIZATION_METHOD : CONSTANT&lt;br /&gt;
 DEFAULTVALUE          : 20&lt;br /&gt;
&lt;br /&gt;
=== ASCII Grid Data file ===&lt;br /&gt;
Uses a [[Grid Data]] file to initialize the property.&lt;br /&gt;
&lt;br /&gt;
 FILE_IN_TIME          : NONE&lt;br /&gt;
 INITIALIZATION_METHOD : ASCII_FILE&lt;br /&gt;
 FILENAME              : ..\..\GeneralData\myGridDataFile.dat&lt;br /&gt;
 DEFAULTVALUE          : 0&lt;br /&gt;
&lt;br /&gt;
=== Boxes ===&lt;br /&gt;
Uses a [[Boxes]] file to initialize the property. The default value is given to every grid point which is not inside any of the defined boxes. &lt;br /&gt;
&lt;br /&gt;
 FILE_IN_TIME          : NONE&lt;br /&gt;
 INITIALIZATION_METHOD : BOXES&lt;br /&gt;
 FILENAME              : ..\..\GeneralData\myBoxesFile.dat &lt;br /&gt;
 BOXES_VALUES          : 12.3  15.2  12.7  13.4  14.1&lt;br /&gt;
 DEFAULTVALUE          : 0&lt;br /&gt;
&lt;br /&gt;
=== Layers ===&lt;br /&gt;
 &lt;br /&gt;
 FILE_IN_TIME          : NONE&lt;br /&gt;
 INITIALIZATION_METHOD : LAYERS&lt;br /&gt;
 LAYERS_VALUES         : 35.4  35.2 36.1 &lt;br /&gt;
 DEFAULTVALUE          : 35.5&lt;br /&gt;
&lt;br /&gt;
=== Profile file ===&lt;br /&gt;
Uses a [[Profile]] file to initialize the property. &lt;br /&gt;
&lt;br /&gt;
 FILE_IN_TIME          : NONE&lt;br /&gt;
 INITIALIZATION_METHOD : PROFILE&lt;br /&gt;
 FILENAME              : ..\..\GeneralData\myProfileFile.dat&lt;br /&gt;
 DEFAULTVALUE          : 15&lt;br /&gt;
&lt;br /&gt;
=== Analytical profile ===&lt;br /&gt;
An analytical profile can be given with a linear or a exponential format. &lt;br /&gt;
&lt;br /&gt;
 FILE_IN_TIME          : NONE&lt;br /&gt;
 INITIALIZATION_METHOD : ANALYTIC_PROFILE&lt;br /&gt;
 DEFAULTVALUE          : 20&lt;br /&gt;
&lt;br /&gt;
For a linear profile (&amp;lt;math&amp;gt;Value = DefaultValue + CoefA * \frac{CellDepth} {CoefB}&amp;lt;/math&amp;gt;) define: &lt;br /&gt;
&lt;br /&gt;
 PROFILE_TYPE          : LINEAR&lt;br /&gt;
&lt;br /&gt;
For a exponential profile (&amp;lt;math&amp;gt;Value = DefaultValue - CoefA^{- \frac{CellDepth} {CoefB}}&amp;lt;/math&amp;gt;) define: &lt;br /&gt;
&lt;br /&gt;
 PROFILE_TYPE          : EXPONENTIAL&lt;br /&gt;
&lt;br /&gt;
The coefficients can be given by the following keywords:&lt;br /&gt;
&lt;br /&gt;
 CoefA                 : 0.1&lt;br /&gt;
 CoefB                 : 4500&lt;br /&gt;
&lt;br /&gt;
=== HDF file ===&lt;br /&gt;
&lt;br /&gt;
 FILE_IN_TIME          : NONE&lt;br /&gt;
 INITIALIZATION_METHOD : HDF&lt;br /&gt;
 VGROUP_PATH           : \Results&lt;br /&gt;
 MULTIPLYING_FACTOR    : 1&lt;br /&gt;
 HDF_FIELD_NAME        : temperature&lt;br /&gt;
 DEFAULTVALUE          : 15&lt;br /&gt;
&lt;br /&gt;
=== Time series file ===&lt;br /&gt;
Uses a [[Time Series]] file to initialize the property. &lt;br /&gt;
&lt;br /&gt;
 FILE_IN_TIME          : NONE&lt;br /&gt;
 INITIALIZATION_METHOD : TIMESERIE&lt;br /&gt;
 FILENAME              : ..\..\GeneralData\myTimeSeriesFile.dat&lt;br /&gt;
 DATA_COLUMN           : 2&lt;br /&gt;
 DEFAULTVALUE          : 0&lt;br /&gt;
&lt;br /&gt;
=== Time series profile file ===&lt;br /&gt;
 &lt;br /&gt;
 FILE_IN_TIME          : NONE&lt;br /&gt;
 INITIALIZATION_METHOD : PROFILE_TIMESERIE&lt;br /&gt;
 FILENAME              : ..\..\GeneralData\myProfileTimeSeriesFile.dat&lt;br /&gt;
 DEFAULTVALUE          : 10&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Important notes == &lt;br /&gt;
Keyword [[DEFAULTVALUE]] has '''always''' to be present. This insures that the user must be aware of the initialization option. &lt;br /&gt;
&lt;br /&gt;
Keyword [[REMAIN_CONSTANT]] defines whether the property will remain unaltered during the simulation. By default this boolean keyword is FALSE, which means that the model will dynamically compute the property values (e.g. current velocities) or it will read them from a file (e.g. wind speed and direction). If it's TRUE this means that the property values will remain constant throughout the simulation (e.g. constant wind speed and direction in a scenario simulation).&lt;br /&gt;
&lt;br /&gt;
== List of properties which are handled by Module FillMatrix ==&lt;br /&gt;
&lt;br /&gt;
=== ModuleAtmosphere ===&lt;br /&gt;
All properties of this module are 2D arrays:&lt;br /&gt;
*wind modulos&lt;br /&gt;
*wind angle&lt;br /&gt;
*wind velocity X&lt;br /&gt;
*wind velocity Y&lt;br /&gt;
*air temperature&lt;br /&gt;
*relative humidity&lt;br /&gt;
*sun hours&lt;br /&gt;
*cloud cover&lt;br /&gt;
*irrigation&lt;br /&gt;
*precipitation&lt;br /&gt;
*solar radiation&lt;br /&gt;
*atmospheric pressure&lt;br /&gt;
*mean sea level pressure&lt;br /&gt;
&lt;br /&gt;
=== ModuleAssimilation ===&lt;br /&gt;
All 2D/3D fields which can be used for any type of relaxation scheme or reference solution. This includes the reference fields and the decayment coefficients. &lt;br /&gt;
&lt;br /&gt;
=== ModuleConsolidation ===&lt;br /&gt;
*porosity (3D)&lt;br /&gt;
*stationary porosity (3D)&lt;br /&gt;
*rosion critical shear stress( 3D)&lt;br /&gt;
&lt;br /&gt;
=== ModuleHydrodynamic ===&lt;br /&gt;
*water level(2D)&lt;br /&gt;
*velocity U (3D)&lt;br /&gt;
*velocity V (3D)&lt;br /&gt;
*drag coefficient (3D) - used in when parameterizing obstacles&lt;br /&gt;
&lt;br /&gt;
=== ModuleInterfaceWaterAir ===&lt;br /&gt;
*latent heat&lt;br /&gt;
*sensible heat&lt;br /&gt;
*net long wave radiation&lt;br /&gt;
*upward long wave radiation&lt;br /&gt;
*downward long wave radiation&lt;br /&gt;
*evaporation&lt;br /&gt;
*“non-solar” flux&lt;br /&gt;
*wind shear stress X&lt;br /&gt;
*wind shear stress Y&lt;br /&gt;
*Surface radiation&lt;br /&gt;
*Turbulent kinetic energy&lt;br /&gt;
*wind shear velocity&lt;br /&gt;
*carbon dioxide flux&lt;br /&gt;
*oxygen flux&lt;br /&gt;
&lt;br /&gt;
=== ModuleInterfaceSedimentWater ===&lt;br /&gt;
*manning coefficient (2D)&lt;br /&gt;
*rugosity coefficient (2D)&lt;br /&gt;
*“wave” rugosity coefficient (2D)&lt;br /&gt;
*Erosion critical shear stress (2D)&lt;br /&gt;
*Deposition critical shear stress (2D)&lt;br /&gt;
*Erosion reference rate	(2D)&lt;br /&gt;
*Diffusion coefficient (2D)&lt;br /&gt;
*Consolidation rate (2D)&lt;br /&gt;
*Other properties* (2D)&lt;br /&gt;
&lt;br /&gt;
=== ModuleSand ===&lt;br /&gt;
*D35&lt;br /&gt;
*D50&lt;br /&gt;
*D90&lt;br /&gt;
*bed rock&lt;br /&gt;
*sand classes diameter&lt;br /&gt;
*sand classes percentage&lt;br /&gt;
&lt;br /&gt;
=== ModuleSedimentProperties ===&lt;br /&gt;
*Other properties*&lt;br /&gt;
*Partition fraction&lt;br /&gt;
*Partition rate&lt;br /&gt;
*Sediment dry density&lt;br /&gt;
*Turbulent horizontal diffusion coefficient&lt;br /&gt;
*Turbulent vertical diffusion coefficient&lt;br /&gt;
&lt;br /&gt;
=== ModuleTurbulence ===&lt;br /&gt;
*horizontal viscosity&lt;br /&gt;
*vertical viscosity&lt;br /&gt;
&lt;br /&gt;
=== ModuleWaterProperties ===&lt;br /&gt;
*sigma-T (density)&lt;br /&gt;
*specific heat&lt;br /&gt;
*filtration rate&lt;br /&gt;
*other properties*&lt;br /&gt;
&lt;br /&gt;
=== ModuleWaves ===&lt;br /&gt;
*wave height&lt;br /&gt;
*wave period&lt;br /&gt;
*wave direction&lt;br /&gt;
*radiation stress X&lt;br /&gt;
*radiation stress Y&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
Read the FillMatrix Module [http://maretec.mohid.com/PublicData/products/Manuals/FillMatrix.pdf  manual]&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;br /&gt;
[[Category:MOHID Base 2]]&lt;br /&gt;
[[Category:Input Data Formats]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Module_Functions&amp;diff=536</id>
		<title>Module Functions</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Module_Functions&amp;diff=536"/>
				<updated>2007-05-31T13:12:36Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
Module Functions is a set of scientific mathematical functions or routines that are used by various others classes but that did not fit as specific methods of a class. This way this class can be seen as a run-time mathematical library included in the model.&lt;br /&gt;
&lt;br /&gt;
== List of functions ==&lt;br /&gt;
&lt;br /&gt;
=== MOHID Utilities ===&lt;br /&gt;
*SetMatrixValue&lt;br /&gt;
*ReadTimeKeyWords&lt;br /&gt;
*ConstructPropertyID&lt;br /&gt;
*Check_Hydrodynamic_Property&lt;br /&gt;
*Check_Water_Property&lt;br /&gt;
*GetDataOnlineString&lt;br /&gt;
*IsOdd&lt;br /&gt;
*Chunk_K&lt;br /&gt;
*Chunk_J&lt;br /&gt;
*TimeToString&lt;br /&gt;
*ChangeSuffix&lt;br /&gt;
*SortNumerically_3D&lt;br /&gt;
&lt;br /&gt;
=== Math &amp;amp; Solvers ===&lt;br /&gt;
*InvSingularDiagMatrix2D&lt;br /&gt;
*CholeskyFactorization&lt;br /&gt;
*CholLinSystemSolver&lt;br /&gt;
*TriangLinSystemSolver&lt;br /&gt;
*THOMAS_2D&lt;br /&gt;
*THOMAS_3D&lt;br /&gt;
*THOMASZ&lt;br /&gt;
*tridag&lt;br /&gt;
*tridag_cyclic&lt;br /&gt;
*CGS2D&lt;br /&gt;
*LISOLVE&lt;br /&gt;
*SIPSOL&lt;br /&gt;
*BICGSTAB2D&lt;br /&gt;
*Secant&lt;br /&gt;
*Normcrossprod&lt;br /&gt;
*SLPMIN&lt;br /&gt;
*SLPMIN2&lt;br /&gt;
&lt;br /&gt;
=== Advection &amp;amp; Diffusion &amp;amp; Boundary Conditions ===&lt;br /&gt;
*ComputeAdvectionFace&lt;br /&gt;
*ComputeAdvection1D_V2&lt;br /&gt;
*ComputeAdvection1D&lt;br /&gt;
*ComputeAdvection3D&lt;br /&gt;
*ComputeDiffusion3D&lt;br /&gt;
*OrlanskiCelerity2D&lt;br /&gt;
&lt;br /&gt;
=== Heat &amp;amp; Mass transfer ===&lt;br /&gt;
*SaturatedVaporPressure&lt;br /&gt;
*LongWaveDownward&lt;br /&gt;
*LongWaveUpward&lt;br /&gt;
*LatentHeat&lt;br /&gt;
*SensibleHeat&lt;br /&gt;
*AerationFlux&lt;br /&gt;
&lt;br /&gt;
=== Oxygen Saturation ===&lt;br /&gt;
*OxygenSaturation&lt;br /&gt;
*OxygenSaturationHenry&lt;br /&gt;
*OxygenSaturationCeQualW2&lt;br /&gt;
&lt;br /&gt;
=== Density &amp;amp; Specific heat ===&lt;br /&gt;
*Density&lt;br /&gt;
*Sigma&lt;br /&gt;
*SigmaWang&lt;br /&gt;
*SigmaUNESCO&lt;br /&gt;
*SigmaLeendertse&lt;br /&gt;
*SigmaUNESCOPressureCorrection&lt;br /&gt;
*SigmaJMD95PressureCorrection&lt;br /&gt;
*SigmaMel96PressureCorrection&lt;br /&gt;
*'''ConvertTemperature''' - converts in-situ temperature into potential temperature &lt;br /&gt;
*SpecificHeatUNESCO&lt;br /&gt;
*CalcPotentialEnergy&lt;br /&gt;
&lt;br /&gt;
=== Grids &amp;amp; Coordinates ===&lt;br /&gt;
*RODAXY&lt;br /&gt;
*FromCartesianToGrid&lt;br /&gt;
*FromGridToCartesian&lt;br /&gt;
*ComputeGridZone&lt;br /&gt;
*GetLambda0&lt;br /&gt;
*GetEllipsoid&lt;br /&gt;
*LatLonToUTM&lt;br /&gt;
*UTMToLatLon&lt;br /&gt;
*LatLonToLambertSP2&lt;br /&gt;
&lt;br /&gt;
=== Interpolation ===&lt;br /&gt;
*InterpolateValueInTime&lt;br /&gt;
*InterpolateMatrix2DInTime&lt;br /&gt;
*InterpolateMatrix3DInTime&lt;br /&gt;
*LinearInterpolation&lt;br /&gt;
*InterpolateLinearyMatrix2D&lt;br /&gt;
*InterpolateLinearyMatrix3D&lt;br /&gt;
*InterpolateProfile&lt;br /&gt;
*InterpolateProfileR8&lt;br /&gt;
*QuadraticInterpolation&lt;br /&gt;
*QuadraticInterpolProfile&lt;br /&gt;
*PolIntProfile&lt;br /&gt;
*polint&lt;br /&gt;
&lt;br /&gt;
=== Biogeochemistry &amp;amp; Water quality ===  &lt;br /&gt;
*PhytoLightLimitationFactor&lt;br /&gt;
*ComputeT90_Canteras&lt;br /&gt;
*ComputeT90_Chapra&lt;br /&gt;
*SettlingVelocity  &lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;br /&gt;
[[Category:MOHID Base 1]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Mohid_Input/Output&amp;diff=629</id>
		<title>Mohid Input/Output</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Mohid_Input/Output&amp;diff=629"/>
				<updated>2007-05-31T12:55:07Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: /* Input */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In MOHID, input and output is made via ASCII and [[HDF5]] files. ASCII files are handled by [[Module EnterData]] and HDF5 files by [[Module HDF5]]. Both the ASCII files and HDF5 files have [[Input Data Formats|specific format conventions for MOHID]]. These conventions were defined in order to reduce [[Input Data Errors|input data errors]] and standardize the output formats so that [[Mohid Graphical User Interfaces]] can use them straightforwardly.&lt;br /&gt;
&lt;br /&gt;
== Input ==&lt;br /&gt;
To input data into MOHID please see [[Module FillMatrix]] and [[Module EnterData]].&lt;br /&gt;
&lt;br /&gt;
== Output ==&lt;br /&gt;
&lt;br /&gt;
=== HDF outputs ===&lt;br /&gt;
&lt;br /&gt;
*[[OUTPUT_TIME]]&lt;br /&gt;
*[[SURFACE_OUTPUT_TIME]]&lt;br /&gt;
&lt;br /&gt;
=== Time series outputs ===&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Grid&amp;diff=296</id>
		<title>Grid</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Grid&amp;diff=296"/>
				<updated>2007-05-31T10:43:54Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: /* Overview */&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 XX 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;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Input Data Formats]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Lines&amp;diff=402</id>
		<title>Lines</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Lines&amp;diff=402"/>
				<updated>2007-05-31T10:05:43Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.20.148: /* Lines file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
&lt;br /&gt;
Lines items are defined by the starting point and ending point. Lines items can be stored as a collection of lines. This type of items can be used to define, for example, reaches or a coast line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Lines file ==&lt;br /&gt;
&lt;br /&gt;
Lines items are stored in an ASCII text file. The default extension for Lines files in [[MohidGIS]] is '''*.lin'''. This file is organized in [[blocks]], each containing the vertices for a determined polygon. One block is defined by the following [[keywords]]: '''&amp;lt;begin_line&amp;gt;''' and '''&amp;lt;end_line&amp;gt;'''. Note that these keywords are case sensitive. One file can contain an infinite number of blocks. Inside each block there are 2 columns and 2 rows: the first row is relative to the line starting point. The second row is relative to the line ending point. The left column relates to the XX coordinates of a point and the right one to the YY coordinates.&lt;br /&gt;
&lt;br /&gt;
== Sample file ==&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_line&amp;gt;&lt;br /&gt;
 -9.5190   38.8148   &lt;br /&gt;
 -9.4545   38.5699   &lt;br /&gt;
 -9.2612   38.4098   &lt;br /&gt;
 -9.0372   38.4686   &lt;br /&gt;
 -9.0550   38.7375   &lt;br /&gt;
 -9.1291   38.8921   &lt;br /&gt;
 -9.2644   38.8792  &lt;br /&gt;
 -9.4384   38.8438   &lt;br /&gt;
 -9.5254   38.8373   &lt;br /&gt;
 -9.5190   38.8148   &lt;br /&gt;
 &amp;lt;end_line&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Input Data Formats]]&lt;/div&gt;</summary>
		<author><name>192.168.20.148</name></author>	</entry>

	</feed>