OP WEIR.DAT: Difference between revisions
From BAWiki
Jens Jürges (talk | contribs) (Picture added) |
Jens Jürges (talk | contribs) m (changed location of example file) |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
|version=March 2021 | |version=March 2021 | ||
|version_descr=March 2021 | |version_descr=March 2021 | ||
|significance= [[File:Illustration opweir en.png|350px|thumb|right]] contains input data to control [[UNTRIM2]] weir sections depending on model results at runtime. The advantage is that | |significance= [[File:Illustration opweir en.png|350px|thumb|right]] contains input data to control [[UNTRIM2]] weir sections depending on model results at runtime. The advantage of using this steering file is that user does not have to know or estimate the exact times of changes on the weir height. In this file, observation points inside the model can be defined to steer changes on the weir height when for example the waterlevel exceeds or falls below a given threshold at the observation point. Similar control conditions can be defined based on the magnitude or direction of the current velocity, or the speed of waterlevel change. Also, the difference of the waterlevels and current magnitudes at two given observation points can be used to define control conditions. Additionally, specific dates, times or weekdays can be used and different conditions can be combined logically (AND or OR connections). | ||
|filecontents= | |filecontents= | ||
'''Input Steering Data''' | '''Input Steering Data''' | ||
* general input data (block '''General_Data''') | * general input data (block '''General_Data''') | ||
** key "'''EPSG'''" : '''EPSG-Code''' of all | ** key "'''EPSG'''" : '''EPSG-Code''' of all horizontal coordinates in this file. | ||
** key "'''Time_Zone'''" : '''Time zone''' of all times in this file. | ** key "'''Time_Zone'''" : '''Time zone''' of all times in this file. | ||
* control data of one weir section (block '''Operational_Weir''') : This block contains conditions and data necessary to control | * control data of one weir section (block '''Operational_Weir''') : This block contains conditions and data necessary to control how a weir should be operated in runtime. This block might refer to one weir section but the conditions described here can be used multiple times. Different weir sections can use the same Operational_Weir block, if all weir sections should be controlled in the same way. On the contrary, different weir sections have to use different Operational_Weir blocks, if they should be controlled in a different way. For the model, weir sections are different when: the weir type (bottom_up or top_down) is not the same; the sill depth of the weir is different, or the conditions to close and open the weir are different. The name of the weir is the parameter that identifies the block in the modelling system. | ||
** Key "<b id="WN">Weir_Name</b>" : '''Description of the weir''' without blank spaces. | ** Key "<b id="WN">Weir_Name</b>" : '''Description of the weir''' without blank spaces. This key has to be different in all defined Operational_Weir blocks. The description will be used to identify the block from outside (e.g. from a utromp2009 steering file). | ||
** Key "<b id="WT">Weir_Type</b>" : '''Type of the weir''' (bottom_up | ** Key "<b id="WT">Weir_Type</b>" : '''Type of the weir''' (bottom_up or top_down). If this key is not defined, "bottom_up" will be used by default. This information must coincide with the information defined in the weir section of the corresponding utromp2009 steering file. | ||
*** bottom_up: The weir gate opens to the bottom. Water can flow | *** bottom_up: Water can flow over the weir only. The weir gate closes by moving upwards and opens to the bottom. | ||
*** top_down: Water can flow under the gate only. The weir gate closes downwards and opens to the top. | |||
** Key "<b id="TWH">Target_Weir_Height</b>" : '''Target height''' of the weir after a control operation | ** Key "<b id="TWH">Target_Weir_Height</b>" : '''Target height''' of the weir after a control operation | ||
*** This key can be used multiple times to define different target heights | *** This key can be used multiple times to define different target weir heights | ||
*** Parameter 1 defines a unique name. This name | *** Parameter 1 defines a unique name. This name is required later on in the file as a reference. | ||
*** Parameter 2 defines the height in m above mean sea level. | *** Parameter 2 defines the height in m above mean sea level. | ||
** Key "<b id="SWH">Start_Weir_Height</b>" : Name of the '''initial weir height at the beginning of the model run'''. The name must refer to parameter 1 of key [[#TWH|"Target_Weir_Height"]]. | ** Key "<b id="SWH">Start_Weir_Height</b>" : Name of the '''initial weir height at the beginning of the model run'''. The name must refer to parameter 1 of key [[#TWH|"Target_Weir_Height"]]. | ||
** Key "<b id="WS">Weir_Speed</b>" : '''Speed of weir gates''' to change the height of the weir. | ** Key "<b id="WS">Weir_Speed</b>" : '''Speed of weir gates''' to change the height of the weir. | ||
*** Parameter 1 defines a unique name. This name | *** Parameter 1 defines a unique name. This name is required later on in the file as a reference. | ||
*** Parameter 2 defines the speed in m/s. | *** Parameter 2 defines the speed in m/s. | ||
*** This key can be used multiple times to define different speeds (e.g. a typical speed and a maximum speed in | *** This key can be used multiple times to define different speeds (e.g. a typical speed and a maximum speed for the operation in hazardous situations). | ||
** Key "<b id="OC">Observation_Coordinates</b>" : '''Coordinates of an observation point''', where model results can be measured. | ** Key "<b id="OC">Observation_Coordinates</b>" : '''Coordinates of an observation point''', where model results can be measured. | ||
*** Important: An observation point should always be wet. Otherwise no control conditions to open or close a weir gate can be checked. | *** Important: An observation point should always be wet. Otherwise no control conditions to open or close a weir gate can be checked. | ||
*** Parameter 1 defines a unique name. This name | *** Parameter 1 defines a unique name. This name is required as a reference for other keys in the file. | ||
*** Parameter 2 and 3 defines the | *** Parameter 2 and 3 defines the geographical location (x- and y-coordinates). | ||
*** Parameter 4 defines the | *** Parameter 4 defines the vertical position in m above mean sea level. | ||
** Key "<b id="TH">Threshold</b>" : '''Threshold of a measurement value''' that has to be exceeded to start the change of a weir height. | ** Key "<b id="TH">Threshold</b>" : '''Threshold of a measurement value''' that has to be exceeded to start the change of a weir height. | ||
*** Parameter 1 defines a unique name. This name | *** Parameter 1 defines a unique name. This name is required as a reference for other keys in the file. | ||
*** Parameter 2 defines the type of threshold. The following types are defined: | *** Parameter 2 defines the type of threshold. The following types are defined: | ||
**** "waterlevel" = threshold to be compared with a waterlevel at an observation point | **** "waterlevel" = threshold to be compared with a waterlevel at an observation point | ||
Line 46: | Line 46: | ||
**** "waterlevel": Floating point value in m above mean sea level | **** "waterlevel": Floating point value in m above mean sea level | ||
**** "current_magnitude": Floating point value in m/s, greater or equal to 0 | **** "current_magnitude": Floating point value in m/s, greater or equal to 0 | ||
**** "current_direction": Floating point value in degrees east (0 degree = direction points to the east ; 90 degree = direction points to the north ; 180 degree = direction points to the west ; 270 degree = direction points to the south) | **** "current_direction": Floating point value in degrees east (0 degree = direction points to the east; 90 degree = direction points to the north; 180 degree = direction points to the west; 270 degree = direction points to the south) | ||
**** "diff_waterlevel": Floating point value in m | **** "diff_waterlevel": Floating point value in m | ||
**** "diff_current_magnitude": Floating point value in m/s | **** "diff_current_magnitude": Floating point value in m/s | ||
**** "gradt_waterlevel": Floating point value in m/h (!) | **** "gradt_waterlevel": Floating point value in m/h (!) | ||
**** "date": String of characters , Format = "DD.MM.YYYY" | **** "date": String of characters, Format = "DD.MM.YYYY" | ||
**** "time": String of characters , Format = "hh:mm:ss" or "hh:mm:ss.nnnnnnnnn" | **** "time": String of characters, Format = "hh:mm:ss" or "hh:mm:ss.nnnnnnnnn" | ||
**** "day_of_week": Integer value with the following meaning: 1= | **** "day_of_week": Integer value with the following meaning: 1=Sunday; 2=Monday; 3=Tuesday; 4=Wednesday; 5=Thursday; 6=Friday; 7=Saturday | ||
** Key "<b id="CC">Control_Condition</b>" : Information about '''control conditions''', which have to be | ** Key "<b id="CC">Control_Condition</b>" : Information about '''control conditions''', which have to be fulfilled to start opening or closing a weir. There are three different types of control conditions. Each of them will be described as follows: | ||
*** Type 1: Compare a computed value at an observation point with a threshold | *** Type 1: Compare a computed value at an observation point with a threshold | ||
**** Parameter 1 defines a unique name. This name | **** Parameter 1 defines a unique name. This name is required as a reference for other keys in the file. | ||
**** Parameter 2 is the name of the observation point as defined in key [[#OC|"Observation_Coordinates"]]. | **** Parameter 2 is the name of the observation point as defined in key [[#OC|"Observation_Coordinates"]]. | ||
**** Parameter 3 is the comparison operator: Allowed are ">", "<", ">=", "<=", "==" or "/=" | **** Parameter 3 is the comparison operator: Allowed are ">", "<", ">=", "<=", "==" or "/=" | ||
**** Parameter 4 is the name of the threshold as defined in key [[#TH|"threshold"]]. | **** Parameter 4 is the name of the threshold as defined in key [[#TH|"threshold"]]. | ||
*** Type 2: Compare the difference of computed values at two different observation points with a threshold | *** Type 2: Compare the difference of computed values at two different observation points with a threshold | ||
**** Parameter 1 defines a unique name. This name | **** Parameter 1 defines a unique name. This name is required as a reference for other keys in the file. | ||
**** Parameter 2 are the two names of the observation points as defined in the key [[#OC|"Observation_Coordinates"]]. The order of the names is important to compute the right sign of the difference. The notation ist "name1[-]name2" (without blank spaces). | **** Parameter 2 are the two names of the observation points as defined in the key [[#OC|"Observation_Coordinates"]]. The order of the names is important to compute the right sign of the difference. The notation ist "name1[-]name2" (without blank spaces). | ||
**** Parameter 3 is the comparison operator: Allowed are ">", "<", ">=", "<=", "==" or "/=" | **** Parameter 3 is the comparison operator: Allowed are ">", "<", ">=", "<=", "==" or "/=" | ||
**** Parameter 4 is the name of the threshold as defined in key [[#TH|"threshold"]]. | **** Parameter 4 is the name of the threshold as defined in key [[#TH|"threshold"]]. | ||
*** Type 3: Two different control conditions will be connected logically with "AND" or "OR" | *** Type 3: Two different control conditions will be connected logically with "AND" or "OR" | ||
**** Parameter 1 defines a unique name. This name | **** Parameter 1 defines a unique name. This name is required as a reference for other keys in the file. | ||
**** Parameter 2 is the name of control condition one. | **** Parameter 2 is the name of control condition one. | ||
**** Parameter 3 is the connecting operator: Allowed are "AND" or "OR". | **** Parameter 3 is the connecting operator: Allowed are "AND" or "OR". | ||
**** Parameter 4 is the name of control condition two. | **** Parameter 4 is the name of control condition two. | ||
** Key "<b id="CWH">Conditional_Weir_Height</b>" : Combination of a control condition, which has to be | ** Key "<b id="CWH">Conditional_Weir_Height</b>" : Combination of a control condition, which has to be fulfilled to start open or close a weir and a target weir height. At least one '''combination of control condition and target weir height''' is necessary. Typically, there are two combinations, one to close a weir and one to re-open it. | ||
*** Parameter 1 is the name of control condition, which has to be | *** Parameter 1 is the name of control condition, which has to be fulfilled to start open or close a weir. The name must refer to parameter 1 of key [[#CC|"Control_Condition"]]. | ||
*** Parameter 2 defines a priority value as an integer. The higher this value the higher the priority of the condition behind this combination. The priorität is important only in case there are different conditions | *** Parameter 2 defines a priority value as an integer. The higher this value the higher the priority of the condition behind this combination. The priorität is important only in case there are different conditions fulfilled at the same time. In this case the new target weir height will be the one with the highest priority. It is not allowed to use identical priority values. | ||
*** Parameter 3 is the name of the new target weir height. The name must refer to parameter 1 of key [[#TWH|"Target_Weir_Height"]]. | *** Parameter 3 is the name of the new target weir height. The name must refer to parameter 1 of key [[#TWH|"Target_Weir_Height"]]. | ||
*** Parameter 4 is the name of the speed of the weir gates to change the height. The name must refer to parameter 1 of key [[#WS|"Weir_Speed"]]. | *** Parameter 4 is the name of the speed of the weir gates to change the height. The name must refer to parameter 1 of key [[#WS|"Weir_Speed"]]. | ||
*** Parameter 5 defines a stopping time period (format = "dddddd-hh:mm:ss.nnnnnnnnn"). The stopping time is a period starting directly after reaching the target weir height. During this period no conditions will be checked. As a result it is not possible that the height of the weir can change again during this period. The stopping time period can be zero. But a stopping time period larger than zero makes sense to rule out unwanted weir closings or openings because of up or | *** Parameter 5 defines a stopping time period (format = "dddddd-hh:mm:ss.nnnnnnnnn"). The stopping time is a period starting directly after reaching the target weir height. During this period no conditions will be checked. As a result, it is not possible that the height of the weir can change again during this period. The stopping time period can be zero. But a stopping time period larger than zero makes sense to rule out unwanted weir closings or openings because of up or down surges. | ||
** Key "<b id="OSE">Observation_Start_End</b>" : '''Start and end of a time period''' where control conditions to open or close a weir will be checked. This gives the user the opportunity to limit the checking of control conditions to a part of the simulation period. The user can define several periods by using this key multiple times. Without this key the control conditions to open or close a weir will be checked during the whole simulation period. | ** Key "<b id="OSE">Observation_Start_End</b>" : '''Start and end of a time period''' where control conditions to open or close a weir will be checked. This gives the user the opportunity to limit the checking of control conditions to a part of the simulation period. The user can define several periods by using this key multiple times. Without this key the control conditions to open or close a weir will be checked during the whole simulation period. | ||
*** Parameter 1 defines the starting date and time. Format = "DD.MM.YYYY-hh:mm:ss.nnnnnnnnn" | *** Parameter 1 defines the starting date and time. Format = "DD.MM.YYYY-hh:mm:ss.nnnnnnnnn" | ||
Line 92: | Line 92: | ||
|contact_original=[mailto:victoria.ortiz@baw.de V. Ortiz], [mailto:jens.juerges@baw.de J. Jürges] | |contact_original=[mailto:victoria.ortiz@baw.de V. Ortiz], [mailto:jens.juerges@baw.de J. Jürges] | ||
|contact_maintenance=[mailto:victoria.ortiz@baw.de V. Ortiz], [mailto:jens.juerges@baw.de J. Jürges] | |contact_maintenance=[mailto:victoria.ortiz@baw.de V. Ortiz], [mailto:jens.juerges@baw.de J. Jürges] | ||
|examplefile=please refer to $PROGHOME/examples/ | |examplefile=please refer to $PROGHOME/examples/op_weir/op_weir.dat | ||
}} | }} |
Latest revision as of 13:12, 30 March 2021
Basic Information
File-Type
op_weir.dat
File-Form
FORMATTED
Version
March 2021
Description-Date
March 2021
Significance of the File
contains input data to control UNTRIM2 weir sections depending on model results at runtime. The advantage of using this steering file is that user does not have to know or estimate the exact times of changes on the weir height. In this file, observation points inside the model can be defined to steer changes on the weir height when for example the waterlevel exceeds or falls below a given threshold at the observation point. Similar control conditions can be defined based on the magnitude or direction of the current velocity, or the speed of waterlevel change. Also, the difference of the waterlevels and current magnitudes at two given observation points can be used to define control conditions. Additionally, specific dates, times or weekdays can be used and different conditions can be combined logically (AND or OR connections).
File-Contents (in Catchwords)
Input Steering Data
- general input data (block General_Data)
- key "EPSG" : EPSG-Code of all horizontal coordinates in this file.
- key "Time_Zone" : Time zone of all times in this file.
- control data of one weir section (block Operational_Weir) : This block contains conditions and data necessary to control how a weir should be operated in runtime. This block might refer to one weir section but the conditions described here can be used multiple times. Different weir sections can use the same Operational_Weir block, if all weir sections should be controlled in the same way. On the contrary, different weir sections have to use different Operational_Weir blocks, if they should be controlled in a different way. For the model, weir sections are different when: the weir type (bottom_up or top_down) is not the same; the sill depth of the weir is different, or the conditions to close and open the weir are different. The name of the weir is the parameter that identifies the block in the modelling system.
- Key "Weir_Name" : Description of the weir without blank spaces. This key has to be different in all defined Operational_Weir blocks. The description will be used to identify the block from outside (e.g. from a utromp2009 steering file).
- Key "Weir_Type" : Type of the weir (bottom_up or top_down). If this key is not defined, "bottom_up" will be used by default. This information must coincide with the information defined in the weir section of the corresponding utromp2009 steering file.
- bottom_up: Water can flow over the weir only. The weir gate closes by moving upwards and opens to the bottom.
- top_down: Water can flow under the gate only. The weir gate closes downwards and opens to the top.
- Key "Target_Weir_Height" : Target height of the weir after a control operation
- This key can be used multiple times to define different target weir heights
- Parameter 1 defines a unique name. This name is required later on in the file as a reference.
- Parameter 2 defines the height in m above mean sea level.
- Key "Start_Weir_Height" : Name of the initial weir height at the beginning of the model run. The name must refer to parameter 1 of key "Target_Weir_Height".
- Key "Weir_Speed" : Speed of weir gates to change the height of the weir.
- Parameter 1 defines a unique name. This name is required later on in the file as a reference.
- Parameter 2 defines the speed in m/s.
- This key can be used multiple times to define different speeds (e.g. a typical speed and a maximum speed for the operation in hazardous situations).
- Key "Observation_Coordinates" : Coordinates of an observation point, where model results can be measured.
- Important: An observation point should always be wet. Otherwise no control conditions to open or close a weir gate can be checked.
- Parameter 1 defines a unique name. This name is required as a reference for other keys in the file.
- Parameter 2 and 3 defines the geographical location (x- and y-coordinates).
- Parameter 4 defines the vertical position in m above mean sea level.
- Key "Threshold" : Threshold of a measurement value that has to be exceeded to start the change of a weir height.
- Parameter 1 defines a unique name. This name is required as a reference for other keys in the file.
- Parameter 2 defines the type of threshold. The following types are defined:
- "waterlevel" = threshold to be compared with a waterlevel at an observation point
- "current_magnitude" = threshold to be compared with a current velocity magnitude at an observation point
- "current_direction" = threshold to be compared with a current direction at an observation point
- "diff_waterlevel" = threshold to be compared with a waterlevel difference between two observation points
- "diff_current_magnitude" = threshold to be compared with a current velocity magnitude difference between two observation points
- "gradt_waterlevel" = threshold to be compared with the speed of waterlevel changes at an observation point
- "date" = threshold to be compared with the current date of simulation
- "time" = threshold to be compared with the current time of simulation
- "day_of_week" = threshold to be compared with the current date of the week of simulation
- Parameter 3 defines the threshold value. The following forms with respect to the type of threshold are allowed:
- "waterlevel": Floating point value in m above mean sea level
- "current_magnitude": Floating point value in m/s, greater or equal to 0
- "current_direction": Floating point value in degrees east (0 degree = direction points to the east; 90 degree = direction points to the north; 180 degree = direction points to the west; 270 degree = direction points to the south)
- "diff_waterlevel": Floating point value in m
- "diff_current_magnitude": Floating point value in m/s
- "gradt_waterlevel": Floating point value in m/h (!)
- "date": String of characters, Format = "DD.MM.YYYY"
- "time": String of characters, Format = "hh:mm:ss" or "hh:mm:ss.nnnnnnnnn"
- "day_of_week": Integer value with the following meaning: 1=Sunday; 2=Monday; 3=Tuesday; 4=Wednesday; 5=Thursday; 6=Friday; 7=Saturday
- Key "Control_Condition" : Information about control conditions, which have to be fulfilled to start opening or closing a weir. There are three different types of control conditions. Each of them will be described as follows:
- Type 1: Compare a computed value at an observation point with a threshold
- Parameter 1 defines a unique name. This name is required as a reference for other keys in the file.
- Parameter 2 is the name of the observation point as defined in key "Observation_Coordinates".
- Parameter 3 is the comparison operator: Allowed are ">", "<", ">=", "<=", "==" or "/="
- Parameter 4 is the name of the threshold as defined in key "threshold".
- Type 2: Compare the difference of computed values at two different observation points with a threshold
- Parameter 1 defines a unique name. This name is required as a reference for other keys in the file.
- Parameter 2 are the two names of the observation points as defined in the key "Observation_Coordinates". The order of the names is important to compute the right sign of the difference. The notation ist "name1[-]name2" (without blank spaces).
- Parameter 3 is the comparison operator: Allowed are ">", "<", ">=", "<=", "==" or "/="
- Parameter 4 is the name of the threshold as defined in key "threshold".
- Type 3: Two different control conditions will be connected logically with "AND" or "OR"
- Parameter 1 defines a unique name. This name is required as a reference for other keys in the file.
- Parameter 2 is the name of control condition one.
- Parameter 3 is the connecting operator: Allowed are "AND" or "OR".
- Parameter 4 is the name of control condition two.
- Type 1: Compare a computed value at an observation point with a threshold
- Key "Conditional_Weir_Height" : Combination of a control condition, which has to be fulfilled to start open or close a weir and a target weir height. At least one combination of control condition and target weir height is necessary. Typically, there are two combinations, one to close a weir and one to re-open it.
- Parameter 1 is the name of control condition, which has to be fulfilled to start open or close a weir. The name must refer to parameter 1 of key "Control_Condition".
- Parameter 2 defines a priority value as an integer. The higher this value the higher the priority of the condition behind this combination. The priorität is important only in case there are different conditions fulfilled at the same time. In this case the new target weir height will be the one with the highest priority. It is not allowed to use identical priority values.
- Parameter 3 is the name of the new target weir height. The name must refer to parameter 1 of key "Target_Weir_Height".
- Parameter 4 is the name of the speed of the weir gates to change the height. The name must refer to parameter 1 of key "Weir_Speed".
- Parameter 5 defines a stopping time period (format = "dddddd-hh:mm:ss.nnnnnnnnn"). The stopping time is a period starting directly after reaching the target weir height. During this period no conditions will be checked. As a result, it is not possible that the height of the weir can change again during this period. The stopping time period can be zero. But a stopping time period larger than zero makes sense to rule out unwanted weir closings or openings because of up or down surges.
- Key "Observation_Start_End" : Start and end of a time period where control conditions to open or close a weir will be checked. This gives the user the opportunity to limit the checking of control conditions to a part of the simulation period. The user can define several periods by using this key multiple times. Without this key the control conditions to open or close a weir will be checked during the whole simulation period.
- Parameter 1 defines the starting date and time. Format = "DD.MM.YYYY-hh:mm:ss.nnnnnnnnn"
- Parameter 2 defines the ending date and time (same format).
General Remarks
- While reading this steering data file the dictionary file op_weir_dico.dat will be automatically accessed in directory $PROGHOME/dic/ to support input.
Programs using this Type of File
Example-File
please refer to $PROGHOME/examples/op_weir/op_weir.dat
back to: File Descriptions