Difference between revisions of "River Runoff"

From WikiROMS
Jump to navigationJump to search
Line 7: Line 7:
Typically, this would be:
Typically, this would be:


TS_PSOURCE for salinity and/or temperature sources/sinks
:*'''[[TS_PSOURCE]]:''' for salinity and/or temperature sources/sinks


and/or
and/or


UV_PSOURCE for mass sources/sinks due to river runoff.  
:*'''[[UV_PSOURCE]]:''' for mass sources/sinks due to river runoff.  


Then you need to decide how to provide the information of river flow, vertical distribution of flow, direction, location, and tracer (temp, salt, sed, etc) values.
Then you need to decide how to provide the information of river flow, vertical distribution of flow, direction, location, and tracer (temp, salt, sed, etc) values. You can provide the data analytically or by providing the data in a NetCDF forcing file.
You can provide the data analytically or by providing the data in a NetCDF forcing file.


To provide this information analytically, you need to activate ANA_PSOURCE.
To provide this information analytically, you need to activate [[ANA_PSOURCE]] '''and''' set the following values in [[ana_psource.h]]:
In ana_psource.h, set the values for


Nsrc: Number of sources.
:<div class="box">[[Variables#Nsrc|Nsrc]]                    ! Number of sources.<br /><br />[[Variables#Dsrc|Dsrc]]([[Variables#Nsrc|Nsrc]])              ! direction. (0 for along xi-axis, 1 for eta-axis).<br /><br />[[Variables#Isrc|Isrc]]([[Variables#Nsrc|Nsrc]])              ! location of i index (u or v point)<br />[[Variables#Jsrc|Jsrc]]([[Variables#Nsrc|Nsrc]])              ! location of j index (u or v point)<br /><br />[[Variables#Lsrc|Lsrc]]([[Variables#Nsrc|Nsrc]],[[Variables#itemp|itemp]])        ! T or F if temp information will be provided. If not, then the model<br/>                          uses the value at the inflowing rho point.<br />[[Variables#Lsrc|Lsrc]]([[Variables#Nsrc|Nsrc]],[[Variables#isalt|isalt]])        ! T or F if salt information will be provided. If not, then the model<br />                          uses the value at the inflowing rho point.<br />[[Variables#Lsrc|Lsrc]]([[Variables#Nsrc|Nsrc]],[[Variables#ised|ised]])        ! T or F if sediment information will be provided. If not, then the<br />                          model uses the value at the inflowing rho point.<br /><br />[[Variables#Qshape|Qshape]]([[Variables#Nsrc|Nsrc]],[[Variables#N|N]])          ! vertical distribution of the flow.<br /><br />[[Variables#Qbar|Qbar]]([[Variables#Nsrc|Nsrc]])              ! depth-integrated mass flow.<br /><br />[[Variables#Tsrc|Tsrc]]([[Variables#Nsrc|Nsrc]],[[Variables#N|N]],[[Variables#itemp|itemp]])      ! actual vertical distribution of the temperature values.<br />[[Variables#Tsrc|Tsrc]]([[Variables#Nsrc|Nsrc]],[[Variables#N|N]],[[Variables#isalt|isalt]])      ! actual vertical distribution of the salinity values.<br />[[Variables#Tsrc|Tsrc]]([[Variables#Nsrc|Nsrc]],[[Variables#N|N]],[[Variables#ised|ised]])      ! actual vertical distribution of the sediment values.


Dsrc(Nsrc): direction. (0 for along xi-axis, 1 for eta-axis).


Isrc(Nsrc): location of i index (u or v point)
To provide this information in a NetCDF file, do '''NOT''' define the [[ANA_PSOURCE]]. Instead, create the NetCDF file and add the file name to <span class="blue">FRCNAME</span> in [[ocean.in#Output_NetCDF_Files|ocean.in]].


Jsrc(Nsrc): location of j index (u or v point)
You can find examples on how to write such a river forcing file with the "'''matlab'''" package
[https://www.myroms.org/index.php?page=Processing here]. You may also be interested in
[https://www.myroms.org/forum/viewtopic.php?t=63 this] forum post.


Lsrc(Nsrc, itemp): T or F if temp information will be provided. If not, then the model uses the value at the inflowing rho point.
Here are some forum discussions about the vertical profile of the flow.<br />
 
#[https://www.myroms.org/forum/viewtopic.php?t=60 Treatment of rivers]
Lsrc(Nsrc, isalt): T or F if salt information will be provided. If not, then the model uses the value at the inflowing rho point.
#[https://www.myroms.org/forum/viewtopic.php?t=79 More on rivers, ROMS2.0 to 2.1?]
 
Lsrc(Nsrc, ised): T or F if sediment information will be provided. If not, then the model uses the value at the inflowing rho point.
 
Qshape(Nsrc,N): vertical distribution of the flow.
 
Qbar(Nsrc): depth-integrated mass flow.
 
Tsrc(Nsrc,N,itemp): actual vertical distribution of the temperature values.
 
Tsrc(Nsrc,N,isalt): actual vertical distribution of the salinity values.
 
Tsrc(Nsrc,N,ised): actual vertical distribution of the sediment values.
 
 
To provide this information in a netcdf file, do NOT define the ANA_PSOURCE. Instead, create the netcdf file and provide the file name in ocean.in.
You can find examples on how to write such a river forcing file in the "matlab" package at
https://www.myroms.org/index.php?page=Processing
you may also be interested in this
https://www.myroms.org/forum/viewtopic.php?t=63
 
Here are some forum discussions about the vertical profile of the flow.
https://www.myroms.org/forum/viewtopic.php?t=60  
and
https://www.myroms.org/forum/viewtopic.php?t=79

Revision as of 16:15, 9 April 2008

Description of River Input


River Input

First you need to set the appropriate CPP options. Typically, this would be:

  • TS_PSOURCE: for salinity and/or temperature sources/sinks

and/or

  • UV_PSOURCE: for mass sources/sinks due to river runoff.

Then you need to decide how to provide the information of river flow, vertical distribution of flow, direction, location, and tracer (temp, salt, sed, etc) values. You can provide the data analytically or by providing the data in a NetCDF forcing file.

To provide this information analytically, you need to activate ANA_PSOURCE and set the following values in ana_psource.h:

Nsrc  ! Number of sources.

Dsrc(Nsrc)  ! direction. (0 for along xi-axis, 1 for eta-axis).

Isrc(Nsrc)  ! location of i index (u or v point)
Jsrc(Nsrc)  ! location of j index (u or v point)

Lsrc(Nsrc,itemp)  ! T or F if temp information will be provided. If not, then the model
uses the value at the inflowing rho point.
Lsrc(Nsrc,isalt)  ! T or F if salt information will be provided. If not, then the model
uses the value at the inflowing rho point.
Lsrc(Nsrc,ised)  ! T or F if sediment information will be provided. If not, then the
model uses the value at the inflowing rho point.

Qshape(Nsrc,N)  ! vertical distribution of the flow.

Qbar(Nsrc)  ! depth-integrated mass flow.

Tsrc(Nsrc,N,itemp)  ! actual vertical distribution of the temperature values.
Tsrc(Nsrc,N,isalt)  ! actual vertical distribution of the salinity values.
Tsrc(Nsrc,N,ised)  ! actual vertical distribution of the sediment values.


To provide this information in a NetCDF file, do NOT define the ANA_PSOURCE. Instead, create the NetCDF file and add the file name to FRCNAME in ocean.in.

You can find examples on how to write such a river forcing file with the "matlab" package here. You may also be interested in this forum post.

Here are some forum discussions about the vertical profile of the flow.

  1. Treatment of rivers
  2. More on rivers, ROMS2.0 to 2.1?