KTR-File: Difference between revisions

From BlueM
Jump to navigation Jump to search
(→‎Erläuterungen: Erläuterungen ür Kontrollgruppen angelegt)
m (category rename)
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__
{{Eingabedateien}}
{{Eingabedateien}}


<big>Kontrollfunktionen</big>
<big>Control functions</big>


''siehe auch [[Systemzustände|Theorie:Systemzustände]]''
''also refer to [[Systemzustände|Theory: System states]]''


==Datei==
==File==
Including an example for the calculation of hydro-power production at a dam.
<bluem>
<bluem>
*Kontrollfunktionen (*.KTR)
*Kontrollfunktionen (*.KTR)
*==========================
*==========================
*
*
**Kontrolltypen:  Typ: A = Aktuelle Systemzustaende
*Kontrolltypen:  Typ: A = Aktuelle Systemzustaende
*                    B = Bilanzen (Abweichungen vom Sollwert)
*                    B = Bilanzen (Abweichungen vom Sollwert)
*                    C = Bilanzen (aktuelle Systemzustaende)
*                    C = Bilanzen (aktuelle Systemzustaende)
*                    P = Pegel
*                    P = Pegel
*
*
*|--------|---|-------|---|-----|----------|---|----------------------|----------------|-------------------------------------|-----------------------------------------------|------------------------------|--------------------------------------------|
*|--------|---|-------|---|-----|----------|---|----------------------|----------------|-------------------------------|
*| Bez.  |KTR| Funkt.|KTR| Sys-| 1.KTR    |WEL|    Beschreibung    | S O L L W E R T|            I S T W E R T           |            K O O R D I N A T E N              |      ACHSENBESCHRIFTUNG      |        W E R T E  A E N D E R U N G      |
*| Bez.  |KTR| Funkt.|KTR| Sys-| 1.KTR    |WEL|    Beschreibung    | S O L L W E R T|            I S T W E R T     |
*|      an|Kng| S Z A |Typ|zust.|Z Kng Fak |  |                      |    Wert    JGG | Kng |Zschr|fest.Zeitraum|Monat|XZsch|                                              |                              |Kng|Intervall    Bezugsdatum  | konst.Gang |
*|      an|Kng| S Z A |Typ|zust.|Z Kng Fak |  |                      |    Wert    JGG | Kng |Zschr|fest.Zeitraum|Monat|
*|--------|---|-------|---|-----|----------|---|----------------------|----------------|-----|--1--|------2------|--3--|--4--|-----------------------|-----------------------|------------------------------|---|-----------(1)-------------|----(2)-----|
*|--------|---|-------|---|-----|----------|---|----------------------|----------------|-----|--1--|------2------|--3--|
*|        |  |      |  |    |          |  |                      |  Tsd.m3      | 1-4 | max.| Start  Ende | dt= | max.| Systemzustandsfenster | Kontrollgruppenfenster|    X-Achse        Y-Achse    |0-3|Typ Faktor  Bezugsdatum  |JGG WGG TGG |
*|        |  |      |  |    |          |  |                      |  Tsd.m3      | 1-3 | max.| Start  Ende | dt= |
*|    J/N|  | J/N i |  |    |          |  |                      |  m3/s, mm  -  |    | 7200| tt.mm tt.mm |Monat| 7200|      x        y      |      x        y      |                              |  |                          |            |
*|    J/N|  | J/N i |  |    |          |  |                      |  m3/s, mm  -  |    | 7200| tt.mm tt.mm |Monat|
*|-<-->-+-|<->|-+-+-+-|-+-|-<->-|++<-><--->|-+-|-<------------------>-|-<-------->-<->-|-<->-|<--->|-++.++-++.++-|-----|<--->|-<-------->-<-------->-|-<-------->-<-------->-|<-------------><------------->|<->|<->-<---->-TT.MM.JJJJ hh:mm|<->-<->-<->-|
*|-<-->-+-|<->|-+-+-+-|-+-|-<->-|<><-><--->|-+-|-<------------------>-|-<-------->-<->-|-<->-|<--->|-++.++-++.++-|-----|
*|  A  B | C | D E F | G |  H  | I J  K  | L |          M          |    N      O  |  P  |  Q  |  R    S  |  T  |  |    V          W     |    X         Y      |      Z            AA      | AB| AC  AD        AE        | AF  AG  AH |
*|  A  B | C | D E F | G |  H  | I J  K  | L |          M          |    N      O  |  P  |  Q  |  R    S  |  T  |
*|--------|---|-------|---|-----|----------|---|----------------------|----------------|-----|--1--|------2------|--3--|--4--|-----------------------|-----------------------|------------------------------|---|-----------(1)-------------|----(2)-----|
  | T100 J |y01| J N 0 | A | QA1 |          | J | Turbine discharge    |                |    |     |            |    |
| T100 J |y02| J N 3 | F | WSP |         | J | Hydraulic head       |               |    |    |             |     |
*|--------|---|-------|---|-----|----------|---|----------------------|----------------|-----|--1--|------2------|--3--|
*
*
*Kontrollgruppen: KGRP: Z = Zusammenfassung verschiedener Kontrollfunktionen
*Kontrollgruppen: KGRP: Z = Zusammenfassung verschiedener Kontrollfunktionen
Line 29: Line 33:
*                      2 : Kontrolliert FAKTOR - Wert
*                      2 : Kontrolliert FAKTOR - Wert
*
*
*|--------|---|-------|---|-----|----------|---|----------------------|----------------|-------------------------------------|-----------------------------------------------|------------------------------|--------------------------------------------|
*|--------|---|-------|---|-----|----------|---|----------------------|----------------|-------------------------------|
*| Bez.  |KTR| Funkt.|KTR| Sys-| 1.KTR    |WEL|    Beschreibung    | S O L L W E R T|            I S T W E R T           |            K O O R D I N A T E N              |      ACHSENBESCHRIFTUNG      |        W E R T E  A E N D E R U N G      |
*| Bez.  |KTR| Funkt.|KTR| Sys-| 1.KTR    |WEL|    Beschreibung    | S O L L W E R T|            I S T W E R T     |
*|      an|Kng| S Z A |Typ|zust.|Z Kng Fak |  |                      |    Wert    JGG | Kng |Zschr|fest.Zeitraum|Monat|XZsch|                                              |                              |Kng|Intervall    Bezugsdatum  | konst.Gang |
*|      an|Kng| S Z A |Typ|zust.|Z Kng Fak |  |                      |    Wert    JGG | Kng |Zschr|fest.Zeitraum|Monat|
*|--------|---|-------|---|-----|----------|---|----------------------|----------------|-----|--1--|------2------|--3--|--4--|-----------------------|-----------------------|------------------------------|---|-----------(1)-------------|----(2)-----|
*|--------|---|-------|---|-----|----------|---|----------------------|----------------|-----|--1--|------2------|--3--|
*|        |  |      |  |    |          |  |                      |  Tsd.m3      | 1-4 | max.| Start  Ende | dt= | max.| Systemzustandsfenster | Kontrollgruppenfenster|    X-Achse        Y-Achse    |0-3|Typ Faktor  Bezugsdatum  |JGG WGG TGG |
*|        |  |      |  |    |          |  |                      |  Tsd.m3      | 1-3 | max.| Start  Ende | dt= |
*|    J/N|  | J/N i |  |    |          |  |                      |  m3/s, mm  -  |    | 7200| tt.mm tt.mm |Monat| 7200|      x        y      |      x        y      |                              |  |                          |            |
*|    J/N|  | J/N i |  |    |          |  |                      |  m3/s, mm  -  |    | 7200| tt.mm tt.mm |Monat|
*|-<-->-+-|<->|-+-+-+-|-+-|-<->-|++<-><--->|-+-|-<------------------>-|-<-------->-<->-|-<->-|<--->|-++.++-++.++-|-----|<--->|-<-------->-<-------->-|-<-------->-<-------->-|<-------------><------------->|<->|<->-<---->-TT.MM.JJJJ hh:mm|<->-<->-<->-|
*|-<-->-+-|<->|-+-+-+-|-+-|-<->-|<><-><--->|-+-|-<------------------>-|-<-------->-<->-|-<->-|<--->|-++.++-++.++-|-----|
  |  A  A | B | C C C | D E |FF F  F | G |                     |               |     |    |             |     |     |                       |                       |                             |   |                           |            |
*|  A  B | C | D E F | G | | I J  K  | L |         M          |     N      O | |   R    S  T |
  | 1   2 | 1 | 1 2 3 | 1 | |12 3   4  | 1 |                      |                |    |    |            |    |    |                      |                      |                              |  |                          |            |
  | KGRP J |y03| J N 0 | A |    |+ y01 0.85| J | Hydropower production|               |     |     |             |     |
*|--------|---|-------|---|-----|----------|---|----------------------|----------------|-----|--1--|------2------|--3--|--4--|-----------------------|-----------------------|------------------------------|---|---------------------------|------------|
  |       |   |       |   |     |* y02 9.81|  |                      |                |    |    |            |    |
*|--------|---|-------|---|-----|----------|---|----------------------|----------------|-----|--1--|------2------|--3--|
</bluem>
</bluem>


==Erläuterungen==
==Explanations==


===Kontrollfunktionen===
;Hint:Control functions for the same element must be listed immediately one after anathoer (Bug 342)
'''Allgemein'''
*A: Kennung des Elements, von dem ein Systemzustand abgegriffen werden soll
*B: Kontrollfunktion aktiv? [J/N]
*C: eindeutige Kennung der Kontrollfunktion ''(muss mit '''y''' anfangen!)''
*D: Interpolation zwischen Stützstellen [J/N]
*E: Interpolation in der Zeit [J/N]
*F: [[Funktionsarten|Funktionsart]] ''(muss mit der angegebenen Funktionsart in der [[FKT-Datei]] übereinstimmen!)''
*G: Kontrolltyp: A = aktueller Zustand; F = Funktion; B = Bilanz mit Soll; C = Bilanz ohne Soll; P = Kontrollpegel
*H: Systemzustand (je nach Elementtyp andere Möglichkeiten, z.B. 1AB, 1ZU. Bei Talsperren auch VOL, WSP, oder Kennung der Steuerfunktion)
*I, J, K: nur für Kontrollgruppen relevant
*L: Wellenausgabe in [[KWL-Datei]] [J/N]
*M: Beschreibung
'''Sollwert ''(nur bei Kontrolltyp B)'''''
*N: [Tsd m³; m³, mm]
*O: Sollwert: Jahresganglinie
'''Ist-Wert ''(nur bei Kontrolltypen B und C)'''''
*P: Kennung für die Berechnungsart des Ist-Werts: [1-4]
:'''Berechnungsart 1: variabler, gleitender Zeithorizont'''
:*Q: Anzahl Zeitschritte [max. 7200]
:'''Berechnungsart 2: fixer Zeithorizont'''
:*R: Startdatum [TT.MM]
:*S: Enddatum [TT.MM]
:'''Berechnungsart 3: fixer Zeithorizont Monat'''
:*T: (Ist-Wert: Monat?)
:'''Berechnungsart 4: ???''' ''(nicht implementiert, siehe Bug 340!)''
:*U: Ist-Wert: Zeitschritt [max. 7200]
'''Koordinaten'''
*V, W, X, Y: Nur für graphische Oberfläche von Bedeutung
'''Achsenbeschriftung'''
*Z, AA: Nur für graphische Oberfläche von Bedeutung
'''Werteänderung'''
*AB: Kennung
*AC: Typ
*AD: Faktor
*AE: Tagesganglinien
*AF: Wochenganglinien
*AG: Jahresganglinien


===Kontrollgruppen===
===Control functions===
'''General'''
*'''A''': ID of the element from which a system state is to be called
*'''B''': Control function enabled/disabled? [J/N] J = Yes, N = No
*'''C''': Unique ID of the control function(must begin with <code>y</code>!)
*'''D''': Interpolation between supporting points [J/N]
*'''E''': Interpolation in time [J/N]
*'''F''': [[Funktionsarten|function type]] (if control-type <code>F</code> it must be identical to the function type in the [[FKT-Datei|FKT-File]]. For other control-types it should always be 0!
*'''G''': Control-type:
** <code>A</code> = current state
** <code>F</code> = Function (in this case the function must be defined in the [[FKT-Datei|FKT-File]]!)
** <code>B</code> = Balance with target/reference
** <code>C</code> = Balance without target/reference
** <code>P</code> = Control water gage
*'''H''': System state ( different possibilities according to element-type, e.g. <code>1AB</code>, <code>1ZU</code>. For a dam  also <code>VOL</code>, <code>WSP</code> or the identification of the control/steering function)
*'''I, J, K''': only relevant for [[#Kontrollgruppen|control groups]]
*'''L''': Discharge wave output in a [[KWL-Datei|KWL-File]] [J/N]
*'''M''': Description
'''Target-value''' (required only if control-type <code>B</code>)
*'''N''': Target-value [Tsd m³; m³, mm]
*'''O''': [[JGG-Datei|Annual pattern]] of the target-value
'''Is-value / current value''' (required only if control-type <code>B</code> and/or <code>C</code>)
*'''P''': ID of the calculation-type of the is-value /current value: [1-3]
:'''Calculation-type 1: variable, gliding time horizon
:*'''Q''': Number of time steps [max. 7200]
:'''Calculation-type 2: fix time horizon'''
:*'''R''': Beginning [TT.MM] [day.month]
:*'''S''': End [TT.MM] [day.month]
:'''Calculation-type 3: fix time horizon month'''
:*'''T''': '' Value is not required, is not imported''


'''Allgemein'''
===Control-groups===
*A1: Kennung des Elements, bei kontrollgruppen ist 'KGRP' obligatorisch
Refer to [[#Kontrollfunktionen|control-functions]],however with the following differences:
*A2: Kontrollfunktion aktiv? [J/N]
*'''A''': ID of the control-group(has to be <code>KGRP</code>!)
*B1: eindeutige Kennung der Kontrollfunktion ''(muss mit '''y''' anfangen!)''
*'''H''': Irrelevant for control-groups
*C1: Interpolation zwischen Stützstellen [J/N]
*'''I''': Calculation rules for the combination of control-functions/groups. Possible operators are: +, -, *, /, <, >, <=, >=
*C2: Interpolation in der Zeit [J/N]
*'''J''': ID of the control-function which is to be utilized (refer to '''C''')
*C3: [[Funktionsarten|Funktionsart]]
*'''K''': Multiplier for this control-function
*D1: Kontrolltyp: A = aktueller Zustand; F = Funktion; B = Bilanz mit Soll; C = Bilanz ohne Soll; P = Kontrollpegel
*E1: Systemzustand (je nach Elementtyp andere Möglichkeiten, z.B. 1AB, 1ZU. Bei Talsperren auch VOL, WSP, oder Kennung der Steuerfunktion)
*F1: Rechenvorschrift zur Kombination von Kontrollfunktionen / -gruppen. Mögliche Operatoren sind: +, -, *, /, <, >, <=, >=  


[[Kategorie:BlueM Eingabedateien]]
 
[[Category:BlueM.Sim input files]]

Latest revision as of 03:20, 1 August 2021

BlueM_icon.png BlueM.Sim | Downloads | Application | Theory | Development

Input files · ALL SYS · FKT KTR · EXT JGG WGG TGG · TAL HYA TRS EIN URB VER RUE BEK EZG FKA · BOA BOD LNZ EFL · DIF


Control functions

also refer to Theory: System states

File

Including an example for the calculation of hydro-power production at a dam.

*Kontrollfunktionen (*.KTR)
*==========================
*
*Kontrolltypen:  Typ: A = Aktuelle Systemzustaende
*                     B = Bilanzen (Abweichungen vom Sollwert)
*                     C = Bilanzen (aktuelle Systemzustaende)
*                     P = Pegel
*
*|--------|---|-------|---|-----|----------|---|----------------------|----------------|-------------------------------|
*| Bez.   |KTR| Funkt.|KTR| Sys-| 1.KTR    |WEL|     Beschreibung     | S O L L W E R T|             I S T W E R T     |
*|      an|Kng| S Z A |Typ|zust.|Z Kng Fak |   |                      |    Wert    JGG | Kng |Zschr|fest.Zeitraum|Monat|
*|--------|---|-------|---|-----|----------|---|----------------------|----------------|-----|--1--|------2------|--3--|
*|        |   |       |   |     |          |   |                      |   Tsd.m3       | 1-3 | max.| Start  Ende | dt= |
*|     J/N|   | J/N i |   |     |          |   |                      |  m3/s, mm   -  |     | 7200| tt.mm tt.mm |Monat|
*|-<-->-+-|<->|-+-+-+-|-+-|-<->-|<><-><--->|-+-|-<------------------>-|-<-------->-<->-|-<->-|<--->|-++.++-++.++-|-----|
*|   A  B | C | D E F | G |  H  | I J   K  | L |          M           |     N       O  |  P  |  Q  |   R     S   |  T  |
 | T100 J |y01| J N 0 | A | QA1 |          | J | Turbine discharge    |                |     |     |             |     |
 | T100 J |y02| J N 3 | F | WSP |          | J | Hydraulic head       |                |     |     |             |     |
*|--------|---|-------|---|-----|----------|---|----------------------|----------------|-----|--1--|------2------|--3--|
*
*Kontrollgruppen: KGRP: Z = Zusammenfassung verschiedener Kontrollfunktionen
*                 Wert: 1 : Kontrolliert IST  - Wert
*                       2 : Kontrolliert FAKTOR - Wert
*
*|--------|---|-------|---|-----|----------|---|----------------------|----------------|-------------------------------|
*| Bez.   |KTR| Funkt.|KTR| Sys-| 1.KTR    |WEL|     Beschreibung     | S O L L W E R T|             I S T W E R T     |
*|      an|Kng| S Z A |Typ|zust.|Z Kng Fak |   |                      |    Wert    JGG | Kng |Zschr|fest.Zeitraum|Monat|
*|--------|---|-------|---|-----|----------|---|----------------------|----------------|-----|--1--|------2------|--3--|
*|        |   |       |   |     |          |   |                      |   Tsd.m3       | 1-3 | max.| Start  Ende | dt= |
*|     J/N|   | J/N i |   |     |          |   |                      |  m3/s, mm   -  |     | 7200| tt.mm tt.mm |Monat|
*|-<-->-+-|<->|-+-+-+-|-+-|-<->-|<><-><--->|-+-|-<------------------>-|-<-------->-<->-|-<->-|<--->|-++.++-++.++-|-----|
*|   A  B | C | D E F | G |  H  | I J   K  | L |          M           |     N       O  |  P  |  Q  |   R     S   |  T  |
 | KGRP J |y03| J N 0 | A |     |+ y01 0.85| J | Hydropower production|                |     |     |             |     |
 |        |   |       |   |     |* y02 9.81|   |                      |                |     |     |             |     |
*|--------|---|-------|---|-----|----------|---|----------------------|----------------|-----|--1--|------2------|--3--|

Explanations

Hint
Control functions for the same element must be listed immediately one after anathoer (Bug 342)

Control functions

General

  • A: ID of the element from which a system state is to be called
  • B: Control function enabled/disabled? [J/N] J = Yes, N = No
  • C: Unique ID of the control function(must begin with y!)
  • D: Interpolation between supporting points [J/N]
  • E: Interpolation in time [J/N]
  • F: function type (if control-type F it must be identical to the function type in the FKT-File. For other control-types it should always be 0!
  • G: Control-type:
    • A = current state
    • F = Function (in this case the function must be defined in the FKT-File!)
    • B = Balance with target/reference
    • C = Balance without target/reference
    • P = Control water gage
  • H: System state ( different possibilities according to element-type, e.g. 1AB, 1ZU. For a dam also VOL, WSP or the identification of the control/steering function)
  • I, J, K: only relevant for control groups
  • L: Discharge wave output in a KWL-File [J/N]
  • M: Description

Target-value (required only if control-type B)

  • N: Target-value [Tsd m³; m³, mm]
  • O: Annual pattern of the target-value

Is-value / current value (required only if control-type B and/or C)

  • P: ID of the calculation-type of the is-value /current value: [1-3]
Calculation-type 1: variable, gliding time horizon
  • Q: Number of time steps [max. 7200]
Calculation-type 2: fix time horizon
  • R: Beginning [TT.MM] [day.month]
  • S: End [TT.MM] [day.month]
Calculation-type 3: fix time horizon month
  • T: Value is not required, is not imported

Control-groups

Refer to control-functions,however with the following differences:

  • A: ID of the control-group(has to be KGRP!)
  • H: Irrelevant for control-groups
  • I: Calculation rules for the combination of control-functions/groups. Possible operators are: +, -, *, /, <, >, <=, >=
  • J: ID of the control-function which is to be utilized (refer to C)
  • K: Multiplier for this control-function