Professional Documents
Culture Documents
Section 1. Introduction
1-1. 1-2. 1-3. Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 Contents of this Document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 Reference Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
Section 2. Initialization
2-1. 2-2. 2-3. Section Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Operational Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Start-up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3.1. Start-up from Operator WEStation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3.2. Start-up from Engineering WEStation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3.3. Start-up from a Command Tool. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System Security and Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1 2-2 2-3 2-3 2-3 2-3 2-5
2-4.
3-3. 3-4.
3-5.
4-4.
9/98
U0-8801
4-7.
5-3.
5-4.
5-5. 5-6.
5-7.
U0-8801
ii
Westinghouse Proprietary Class 2C
9/98
6-3.
6-7.
9/98
iii
Westinghouse Proprietary Class 2C
U0-8801
Glossary Index
U0-8801
iv
Westinghouse Proprietary Class 2C
9/98
9/98
v
Westinghouse Proprietary Class 2C
U0-8801
U0-8801
vi
Westinghouse Proprietary Class 2C
9/98
Section 1. Introduction
1-1. Reference Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
Section 2. Initialization
2-1. Start-up Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
9/98
vii
Westinghouse Proprietary Class 2C
U0-8801
Section 1. Introduction
1-1. Overview
The Calculation Builder Subsystem (CBS) of the Relational Database Management System (RDBMS) allows the user to perform very complex calculations on an Engineering/Operator WEStation in a user-friendly environment. A WEStation equipped with the Calculation Builder software (referred to as WEScalc) enables the user to perform system calculations outside of the DPU environment, on any system point and stored variable. The functions of the CBS are as follows:
Provides user friendly Graphical User Interface to create and modify equations on-line. Allows user to include calls to supplied functions (such as, steam table functions) in equations. Does not require user to compile and link equations. Does not require source code modications. Ability to run concurrently with other WEStation software. Provides sophisticated report generation.
The calculations created in the CBS are named and stored in sets. A calculation set consists of:
Calculated variables derived from user-dened calculations. Set execution conditional statement. User-dened constants used in the calculations. User-dened WDPF inputs used in the calculations. User-dened WDPF points that broadcast the calculation results onto the WDPF system. User-dened comments. On-line scheduling properties.
9/98
1-1
Westinghouse Proprietary Class 2C
U0-8801
U0-8801
1-2
Westinghouse Proprietary Class 2C
9/98
Title Operator WEStation Users Guide Operator WEStation Configuration Manual Engineering WEStation Users Guide WEStation Historian (HSR) Users Guide PL/SQL Users Guide and Reference Oracle SQL*Connect Users Guide Oracle 7 Server Concepts Manual
Description Discusses the operations and functions of the Operator WEStation. Discusses menu set-up and describes the procedure for configuring menu windows. Discusses the operations and functions of the Engineering WEStation. Discusses the operation and functions of the WEStation Historian (HSR). Describes SQL (Structured Query Language) syntax. Provides a description of the remote database processing function. Discusses the Oracle database instance concept.
Westinghouse documents are designated by a U0 number. In addition to the documents listed in Table 1-1, this manual may refer to applicable vendor documentation, which is dened on a project basis. These documents may include:
Operating system (UNIX/Solaris) manuals. Window manager (OpenWindows) documentation. Workstation hardware (Sun) documentation. Peripheral device documentation.
Man pages (standard UNIX on-line documentation) are also available for operating system functions and certain WDPF functions.
9/98
1-3
Westinghouse Proprietary Class 2C
U0-8801
Section 2. Initialization
2-1. Section Overview
This section will address the following topics:
Operational requirements (Section 2-2). Start-up and start-up options (Section 2-3). System security and restrictions (Section 2-4).
9/98
2-1
Westinghouse Proprietary Class 2C
U0-8801
Operator WEStation using the Solaris 2.3 (or later) Operating System. Engineering WEStation using the Solaris 2.3 (or later) Operating System. Oracle Version 7 software.
U0-8801
2-2
Westinghouse Proprietary Class 2C
9/98
2-3. Start-up
2-3. Start-up
The CBS can be started from either of the following:
An Operator WEStation (Section 2-3.1). An Engineering WEStation (Section 2-3.2) A command tool (Section 2-3.3)
When started from a command tool, command line options may be used for program customization (see Section 2-3.3 for details on command line options). (Additionally, the Operator WEStation Conguration Manual (U0-8110) describes the procedure for conguring menu windows and customizing menus.)
9/98
2-3
Westinghouse Proprietary Class 2C
U0-8801
2-3. Start-up
Start-up Options Command line options allow the user to include information for customizing programs. Additional parameters and options may be added to the command line to customize functions such as character font style selection, debug option. Refer to Table 2-1 for a list and description of available parameters.
Table 2-1. Start-up Options
Options
Description user name password Oracle database instance (Refer to Oracle 7 Server Concepts manual for information regarding database instance.) font
Function Refers to Oracle user name Refers to Oracle user password Denes the Oracle database accessed.
-fn
U0-8801
2-4
Westinghouse Proprietary Class 2C
9/98
For instance, two different users may have each created a calculation set (each with its own data) and saved the sets under the same name. Thus, there are two different sets that have the same name. This is possible since the owner of the sets is different. All created sets have read-only access to other users. The owner of the calculation set is the only one who is able to modify the set. Other users may open the set for viewing and copy the set. The user(s) can then modify the copy of the calculation set, if required.
9/98
2-5
Westinghouse Proprietary Class 2C
U0-8801
Design philosophy (Section 3-2). Data storage (Section 3-3). Modes of operation (Section 3-4). Quality of results (Section 3-5).
9/98
3-1
Westinghouse Proprietary Class 2C
U0-8801
The Main module of the CBS is designed to manipulate entire sets. The Properties module is a group of editors that allow the user to modify individual aspects (such as input and output variables, comments and constants.) of a calculation set. (The individual editors of the Properties module are discussed further in Section 5.) Although each editor works with data that has its own specic format, the editors are designed with the same interface and functionality. Thus, the user needs to learn only one interface, making the overall program operation much easier to learn.
U0-8801
3-2
Westinghouse Proprietary Class 2C
9/98
The main window is referred to as the Main module. It contains the following:
Five menu buttons Execution information and general information about the calculation set (in the top of the main window) Four scroll lists (in the bottom half of the main window) list the individual components that make up the calculation set.
9/98
3-3
Westinghouse Proprietary Class 2C
U0-8801
All commands are invoked from the menus associated with the buttons running across the top of the window. Any command that is grayed-out is unavailable at that particular moment. Table 3-1 lists the various menu options of the Main module.
Table 3-1. Main Module Menu Options
Button File
Options
Description The File button is used to load, save, and delete existing calculation sets and to enter new calculation sets.
Load (which offers 2 options): List Filter/Sort Save Save As New Delete
View
The View button is used to modify components displayed in the scroll list.
Each of these menus offers 4 options: Calculated Variable Input Variables Output Variables Constants Properties
Calculate
Report
Calculated Variables Input Variables Output Variables Constants Comments Conditional Evaluation Execute Set Load Inputs Update Outputs Display Errors List Options
The Properties button allows the user to inspect and modify the components of the current calculation set.
The Calculate button allows the user to perform calculations and provides access to calculation functions. The Report button is used to print calculation sets.
U0-8801
3-4
Westinghouse Proprietary Class 2C
9/98
Calculated Variables Input Variables Output Variables Constants Comments Conditional Evaluation
The base window of each editor is divided in half. The top half is devoted to the common menu and a scroll list. The bottom half is devoted to entry of specic data. The Output Variables editor of the Properties Module (Figure 3-2) is shown as an example.
9/98
3-5
Westinghouse Proprietary Class 2C
U0-8801
U0-8801
3-6
Westinghouse Proprietary Class 2C
9/98
All editor commands are invoked from the menus associated with the buttons running across the top of the Properties editor window. Table 3-2 lists the various menu options of each editor in the Properties module.
Table 3-2. Properties Module Editor Menu Options
Button View
Options
Description The View button is used to modify components displayed in the scroll list. The Insert button is used to add a new item to the scroll list.
Insert
Edit
Filter/Sort Locate Clear List Before After Top Bottom Undo Copy Paste Delete Selected List Options
9/98
3-7
Westinghouse Proprietary Class 2C
U0-8801
Initially creating a calculation set. Modifying an existing permanent set. Executing the set off-line with different input values.
The scope of working sets is temporary. They exist only while the user who created the set has the set loaded. Working sets are deleted when the user who created the set does either of the following:
Quits the Calculation Builder the session for the application. Loads another working set.
U0-8801
3-8
Westinghouse Proprietary Class 2C
9/98
Permanent Sets Permanent sets can be viewed, modied, or copied. However, only the owner of a set may modify it. Other users may view or copy the set. Permanent sets are identied by the following:
Permanent sets are retained in the database until manually deleted. To delete a set, load the set as a working set. Select the Delete option of the File menu from the Main module. (Refer to Section 4 for information on the Delete option of the File menu.) Saving a Set as a Permanent Set A working set can be saved as a permanent set at any time by performing the following: 1. Create a working set. 2. Select the File menu on the Main module (refer to Section 4 for information on the File menu). 3. Select either the Save or Save As option from the File menu.
9/98
3-9
Westinghouse Proprietary Class 2C
U0-8801
Access to historical data. Modication capabilities. Debugging capabilities. For further debugging in the off-line mode, there is an option to update output points on the highway. This allows graphics or other users of the output points to access current data.
Sets are typically run in the off-line mode while being developed and during testing. Calculation sets in the off-line mode involve the following:
Use historical WDPF data or user-specied values for inputs. Run only when invoked by a user. Display the values of the outputs. Do not broadcast their values on the WDPF Highway.
U0-8801
3-10
Westinghouse Proprietary Class 2C
9/98
Obtain their inputs from the WDPF Highway. Run without user intervention at predetermined scheduling intervals. Broadcast their outputs on the WDPF Highway.
When a set is placed on-line, it automatically begins execution at a user-supplied frequency. On-line sets retain the execution mode after rebooting and drop failures. They continue to run automatically when a failed drop has been restored to operation. On-line sets will continue to run until the owner changes its execution mode to offline. Placing a Set in the On-line Mode Once a set is fully debugged in the off-line mode, then the user can schedule a set to run on-line, using live WDPF data. To place a calculation set in the on-line mode, the user must perform a save with online scheduling dened for the set. (Refer to Section 6.)
9/98
3-11
Westinghouse Proprietary Class 2C
U0-8801
U0-8801
3-12
Westinghouse Proprietary Class 2C
9/98
The quality of the calculated variable is assigned the worst quality of all the input variables referenced in the formula eld. These quality statements are not shown in the formula eld. If the Propagate Quality check box on the main window is not checked, the user must create quality statements manually for each calculated variable within the formula eld. This option must be chosen when specic quality statements are required. By default, the Propagate Quality check box is checked for each calculation set. The Quality override option allows the user to do the following:
Selectively override automatic quality generation for specied calculated variables. Manually generate quality statements for the selected variable(s).
Using this option, the user can have automatic quality generation for most of the calculated variables and have manually-generated quality for those calculated variables which require it. The Quality override option is available in the Calculated Variable editor of the Properties module (see Figure 3-3). Refer to Section 5 for additional information on the editors of the Properties module.
9/98
3-13
Westinghouse Proprietary Class 2C
U0-8801
Figure 3-3. Quality Override Check Box (for Calculated Variables Option)
U0-8801
3-14
Westinghouse Proprietary Class 2C
9/98
Accessing the Main module (Section 4-2). Using the File menu (Section 4-3). Using the View menu (Section 4-4). Using the Properties menu (Section 4-5). Using the Calculate menu (Section 4-6). Using the Report menu (Section 4-7).
9/98
4-1
Westinghouse Proprietary Class 2C
U0-8801
U0-8801
4-2
Westinghouse Proprietary Class 2C
9/98
9/98
4-3
Westinghouse Proprietary Class 2C
U0-8801
Load allows the user to load a permanent calculation set as the working (Section 4-3.1). Save/Save As allows the user to save the working calculation set as a permanent set (Section 4-3.2). New allows the user to clear existing working set data and to enter new data for a working calculation set (Section 4-3.3). Delete allows the user to delete the working calculation set and its corresponding permanent set (Section 4-3.4).
U0-8801
4-4
Westinghouse Proprietary Class 2C
9/98
9/98
4-5
Westinghouse Proprietary Class 2C
U0-8801
At this point, another window (Figure 4-2) will appear offering two choices:
List Filter/Sort
Using the List Option The List option allows the user to view a list of the available permanent sets. To view a list of the permanent calculation sets available, perform the following steps: 1. Select the File menu.
2. Select the Load option.
U0-8801
4-6
Westinghouse Proprietary Class 2C
9/98
3. Select the List option. 4. The Calc:List/Load Set window will appear with a list of available permanent calculation sets (Figure 4-3). 5. Select the appropriate calculation set from the list in the Calc:List/Load Set window (or manually enter the Set Name and Owner). 6. Press Load on the Calc:List/Load Set window.
9/98
4-7
Westinghouse Proprietary Class 2C
U0-8801
Figure 4-4 represents the main window loaded with the calculation set data.
U0-8801
4-8
Westinghouse Proprietary Class 2C
9/98
Using the Filter/Sort Option The Filter/Sort option allows the user to select and limit the list of permanent calculation sets. To limit the list of permanent calculation sets, perform the following steps: 1. Select the File menu. 2. Select the Load option. 3. Select the Filter/Sort option. 4. The Filter/Sort window will appear (Figure 4-5). 5. Select the appropriate set name, description or owner. This function allows the user to sort and lter the permanent calculation sets by name, description or owner.
To lter the list, enter a string of characters in the text entry elds for Set Name, Description, or Owner (wild cards are permitted). To sort the list, select the box next to Set Name, Description and/or Owner with the desired priority of each item. (An item with a priority of 1 will be checked rst.) Press the Apply button to lter and/or sort. Press Reset to restore the previous lter/sort settings.
9/98
4-9
Westinghouse Proprietary Class 2C
U0-8801
U0-8801
4-10
Westinghouse Proprietary Class 2C
9/98
9/98
4-11
Westinghouse Proprietary Class 2C
U0-8801
U0-8801
4-12
Westinghouse Proprietary Class 2C
9/98
Calculated Variables Input Variables Output Variables Constants Comments Conditional Evaluation
Refer to Section 5 for information on the Properties module and its editors.
9/98
4-13
Westinghouse Proprietary Class 2C
U0-8801
Press Conrm to remove the current calculation set from the RDBMS. Press Cancel to return to the main window.
Refer to Section 3 for additional details regarding permanent sets. Deleting Working Sets A working set is a set that is currently being displayed and manipulated by the user, and does not exist in the database. Thus, working sets are deleted whenever the user does any of the following:
Loads another calculation set. Quits the CBS application. Uses the New button.
U0-8801
4-14
Westinghouse Proprietary Class 2C
9/98
Filter/Sort allows the user to lter or sort the items of the calculation set lists (Section 4-4.1). Locate allows the user to search for a specic entry in the scroll list. (Section 4-4.2). Clear List allows the user to clear entries in the scrolling list (Section 4-4.3).
These options are applicable to all four scrolling lists in the base window.
9/98
4-15
Westinghouse Proprietary Class 2C
U0-8801
After choosing one of the options from the View menu, the user is presented with a choice of lists (Figure 4-8):
U0-8801
4-16
Westinghouse Proprietary Class 2C
9/98
9/98
4-17
Westinghouse Proprietary Class 2C
U0-8801
General Information All of the Filter/Sort windows are divided in half. The upper half of the window is devoted to the lter function, and the lower half of the window is devoted to the sort function. To lter a scroll list, enter a pattern in one or more of the input elds to match against. Wild cards (*) are accepted in all of the input elds. Sorting may be performed independently or in conjunction with ltering. The bottom half of the window lists several sort choices, with an order and a priority for each. The priority determines which sort type is applied rst, and the order determines how the sort is done (in ascending or descending order). To assign an order to a sort type, click on the A (ascending) or D (descending). To assign a priority to a sort type, click on the box to the left of the desired type. The order in which the boxes are selected determines their priority (1 is assigned rst, 2 is assigned second, and so forth). Clicking on the box again removes that sort type from the sort and shifts all lower priority (higher number) sort types to the next higher priority (lower number). Press the Apply button to lter and/or sort. Press the Reset button to return to the main window.
U0-8801
4-18
Westinghouse Proprietary Class 2C
9/98
All windows associated with the Locate option are the same. Figure 4-10 provides an example of Locate applied to the Input Variables list.
The Locate function performs the search based on the name typed in the input eld. Wild cards are accepted. Wild cards will locate the rst name that matches.
9/98
4-19
Westinghouse Proprietary Class 2C
U0-8801
The Clear List option removes the information from the scroll list only. It does not affect the information in the RDBMS.
U0-8801
4-20
Westinghouse Proprietary Class 2C
9/98
Calculated Variables Input Variables Output Variables Constants Comments Conditional Evaluation
3. The Properties screen for that editor will appear. The Calculation Builder Main module will remain open. If the Properties module is invoked this way, the editor will initially have no entries in its scrolling list (see Section 5 for an explanation of the Properties module).
9/98
4-21
Westinghouse Proprietary Class 2C
U0-8801
U0-8801
4-22
Westinghouse Proprietary Class 2C
9/98
Execute Set allows the user to perform calculations dened in the current calculation set (Section 4-6.1). Load Inputs allows the user to retrieve historical data for a past time period from the WEStation HSR (Section 4-6.2). Update Outputs allows the user to place output variables onto the highway for debugging other programs that use the calculated variables (Section 4-6.3).
9/98
4-23
Westinghouse Proprietary Class 2C
U0-8801
Display Errors allows the user to display errors encountered during Execute Set option (Section 4-6.4).
U0-8801
4-24
Westinghouse Proprietary Class 2C
9/98
If the execution was successful, the results will be stored into the RDBMS, and the Calculation Builder windows will update to show the calculation results. If the execution was not successful, a message will appear telling the user to check the error list. (Refer to Section 4-6.4 for information regarding the display of errors.)
9/98
4-25
Westinghouse Proprietary Class 2C
U0-8801
U0-8801
4-26
Westinghouse Proprietary Class 2C
9/98
All of the variables that have an error associated with them. The reason for the error.
9/98
4-27
Westinghouse Proprietary Class 2C
U0-8801
U0-8801
4-28
Westinghouse Proprietary Class 2C
9/98
9/98
4-29
Westinghouse Proprietary Class 2C
U0-8801
Accessing the Properties module (Section 5-2). Editor overview (Section 5-3).
View menu (Section 5-4). Insert menu (Section 5-5). Edit menu (Section 5-6). Print menu (Section 5-7).
9/98
5-1
Westinghouse Proprietary Class 2C
U0-8801
Calculated Variables Input Variables Output Variables Constants Comments Conditional Evaluation
3. The Properties screen for that editor will appear with no entries in its scrolling list.
U0-8801
5-2
Westinghouse Proprietary Class 2C
9/98
Figure 5-1. Accessing the Properties Module Using the Scrolling Lists
2. The Properties screen for that editor will appear (see Figure 5-2) 3. The selected item will appear on the Properties screen (shown in Figure 5-2).
9/98
5-3
Westinghouse Proprietary Class 2C
U0-8801
U0-8801
5-4
Westinghouse Proprietary Class 2C
9/98
Calculated Variables Input Variables Output Variables Constants Comments Conditional Evaluation
All of the properties editors share a common design and a similar interface. The top half of the screen is devoted to the common menu. The bottom half of the screen is used to enter information specic to the type of variable being edited. In all cases, the input is checked for correctness, and an error message is displayed indicating the specic problem.
Variable - name of the calculated variable. Description - text description of the variable. Units - units of the variable. Quality override - overrides automatic generation of a quality statement. If checked, automatic generation of a quality statement will not be performed, and the user must input a quality statement manually.
9/98
5-5
Westinghouse Proprietary Class 2C
U0-8801
Note If the value of any other calculated variable besides the one being dened is altered, the user must specify an update statement within the formula. For example, if the formula for the variable C$C1 causes C$C2 to be changed, an update statement of the form u(C$C2, C$C2, QC$C2) must be included to ensure that the value of C$C2 is propagated correctly. Explicit update statements are not required for formulas that only modify the calculated variable that is being dened.
U0-8801
5-6
Westinghouse Proprietary Class 2C
9/98
Variable - name of the input variable. Description - text description of the variable. Units - units of the variable. Value - current value of the input. Quality - current quality of the input. Valid Range (High, Low) - denes a valid operating range for the input variable, if entered. Use Substitute Value - if box is checked, the Substitute Value is used for the input variable even if the Primary Input or Alternate Input is valid. Substitute Value - is a typical value for the input and will be used only if both the Primary Input and Alternate Input are out of range or have bad quality. Primary Input (WDPF, CALC) - denes where the data for the input Variable comes from. This can be a WDPF Highway point or a calculated variable from another set. WDPF Point Name - name of the WDPF highway point from where this input is obtained when running in the on-line mode. Value Type: (AVG, MAX, MIN, INS) - processing type for the current Value of the input. Must select one of the following, using average, maximum, minimum, or instantaneous. The default is average.
9/98
5-7
Westinghouse Proprietary Class 2C
U0-8801
Calculated Name (Set, Owner) - name of the calculated variable in another set that is to be used for the input. The set name and owner of the other set must be specied. Alternate Input (WDPF, CALC, NONE) - denes where the data for the input variable comes from if the Primary input is out of range or has bad quality.
U0-8801
5-8
Westinghouse Proprietary Class 2C
9/98
Variable - name of the variable to be output. This eld must be a valid input or calculated variable. Point Name - WDPF point name used to broadcast this output.
9/98
5-9
Westinghouse Proprietary Class 2C
U0-8801
5-3.4. Constants
Constants are used to simplify the calculation process. Note that there is only one set of constants for each Calculation Builder System. The following denes some of the elds available from the Constants window (Figure 5-6):
Constant - name of the constant. Description - description of the constant. Units - units of the constant. Value - value of the constant.
U0-8801
5-10
Westinghouse Proprietary Class 2C
9/98
5-3.5. Comments
Comments are used to document the changes made to a calculation set. The following denes the elds available from the Comments window (Figure 5-7):
Version - version number assigned by the user. Date/Time - date and time this comment was entered. Comments - comments associated with this version.
9/98
5-11
Westinghouse Proprietary Class 2C
U0-8801
IF - conditional statements to be executed before execution of the calculation set. If this statement evaluates to false, then the following will occur: The ELSE condition of this screen is evaluated. The calculation set is not executed.
ELSE - statements executed if the IF condition of this screen evaluates to false. These statements are then executed in lieu of the calculation set. The ELSE clause by default automatically sets all the calculated variables to zero with bad quality.
U0-8801
5-12
Westinghouse Proprietary Class 2C
9/98
9/98
5-13
Westinghouse Proprietary Class 2C
U0-8801
Filter/Sort (Section 5-4.1). Locate (Section 5-4.2). Clear List (Section 5-4.3).
U0-8801
5-14
Westinghouse Proprietary Class 2C
9/98
9/98
5-15
Westinghouse Proprietary Class 2C
U0-8801
Calculated Variables Figure 5-10 illustrates the Filter/Sort window for Calculated Variables.
U0-8801
5-16
Westinghouse Proprietary Class 2C
9/98
Input Variables Figure 5-11 illustrates the Filter/Sort window for Input Variables.
9/98
5-17
Westinghouse Proprietary Class 2C
U0-8801
Output Variables Figure 5-12 illustrates the Filter/Sort window for Output Variables.
U0-8801
5-18
Westinghouse Proprietary Class 2C
9/98
9/98
5-19
Westinghouse Proprietary Class 2C
U0-8801
U0-8801
5-20
Westinghouse Proprietary Class 2C
9/98
9/98
5-21
Westinghouse Proprietary Class 2C
U0-8801
To insert a new item, perform the following steps: 1. Press the Insert button on the base window. 2. Choose a location from the Insert menu: If there are no items in the list, then only Top or Bottom are valid option choices. When there are items in a list, an item must be selected to use the Before and After options. 3. The new item can be edited by entering information in the blank elds below the scrolling list. 4. Each editor requires that the name eld be lled before the new item can be added to the list. 5. The Input Variable editor requires the WDPF point or the external calculated point information. 6. Press the Apply button in the base window to insert the information into the list. - OR Press the Reset button to clear the entry elds.
U0-8801
5-22
Westinghouse Proprietary Class 2C
9/98
9/98
5-23
Westinghouse Proprietary Class 2C
U0-8801
U0-8801
5-24
Westinghouse Proprietary Class 2C
9/98
Calculated Variables Input Variables Output Variables Constants Comments Note There is no Print menu associated with the Conditional Evaluation editor.
3. Press the Print button. 4. The Print menu (Figure 5-15) presents three options:
Selected prints the information for the currently selected item List prints all of the scroll list items in the current base window Options changes the default settings relating to printing.
9/98
5-25
Westinghouse Proprietary Class 2C
U0-8801
U0-8801
5-26
Westinghouse Proprietary Class 2C
9/98
9/98
5-27
Westinghouse Proprietary Class 2C
U0-8801
Sending Print Requests to a Printer To send the data to a printer, perform the following steps: 1. Select Options from the Print menu of a Properties module editor. 2. Select the printer name from the printer pull-down menu, or type the desired name at the prompt for the printer name. 3. Press the Apply button to change the print defaults to the options selected. 4. Press the Reset button to leave the defaults unchanged or to clear the selected values and reset the default values. Sending Print Requests to a File To write the data to a le, perform the following steps: 1. Select Options from the Print menu of a Properties module editor. 2. Specify the directory name and the le name in the next two lines. 3. Press the Apply button to change the print defaults to the options selected. 4. Press the Reset button to leave the defaults unchanged or to clear the selected values and reset the default values.
U0-8801
5-28
Westinghouse Proprietary Class 2C
9/98
Creating a calculation set (Section 6-2). Dening calculation set properties (Section 6-3). Viewing a calculation set (Section 6-4). Executing a set in the off-line mode (Section 6-5). Scheduling a set for on-line execution (Section 6-6). Printing reports (Section 6-7).
9/98
6-1
Westinghouse Proprietary Class 2C
U0-8801
Copying an existing set (Section 6-2.1). Creating a new set (Section 6-2.2).
In both cases, the new set is a working set. It will remain as a working set until one of the following occurs:
The set is deleted. The user quits the application. The set is saved as a permanent set. Note Remember that the new set (whether copied from an existing set or created as a new set) is a working set. The set will not exist as a permanent set in the database until it is saved using either the File/ Save or File/Save As option from the Main module (see Section 3 for additional information on working sets and permanent sets).
U0-8801
6-2
Westinghouse Proprietary Class 2C
9/98
The steps required to modify the set are almost exactly the same as those required to create a new set (see Section 6-2.2). There is only one difference. When modifying a set, properties may already exist for that set.
Select the File menu from the Main module (refer to Section 4 for information on the File menu). Select the New option.
2. Select the Properties menu from the Main module (refer to Section 5 for information on the Properties menu and its editors). 3. Select the appropriate editor from the Properties menu:
Calculated Variables Input Variables Output Variables Constants Comments Conditional Evaluation
4. A screen(s) corresponding to the editor(s) selected will appear. Any or all of these screens may be active at the same time.
9/98
6-3
Westinghouse Proprietary Class 2C
U0-8801
Create calculated variables, input variables, and output variables. Dene numerical constants for the calculations. Add comments to the calculation set. Dene a conditional evaluation expression to the calculation set.
6. Perform the following to save the set: Select the File menu from the Main module (refer to Section 4 for information on the File menu). Select the Save As option.
U0-8801
6-4
Westinghouse Proprietary Class 2C
9/98
Calculated variables dene all of the calculation expressions for the set. Input variables dene inputs for the calculations either WDPF Highway points or previously calculated variables from other calculation sets. Output variables dene WDPF Highway points for broadcasting calculation results on the WDPF Highway. Constants dene symbolic names for numerical constants that can be referenced in the calculation expressions. Comments are used to document a calculation set. Conditional evaluation denes the conditions that must be true before a calculation set executes.
It is not necessary to dene all of these properties for each calculation set. If a particular property is not applicable to a calculation set, it may be left unspecied. Table 6-1 provides the naming conventions that are used for calculation sets through the Properties screens. These naming conventions cannot be overridden.
Table 6-1. Naming Conventions for Calculation Set Properties
9/98
6-5
Westinghouse Proprietary Class 2C
U0-8801
Calculated variable name (prexed with C$). Description of the variable. Units of the calculated result.
A text edit eld is provided for dening the calculated expression that is evaluated for that variable. Any valid Structured Query Language (SQL) statement can be included in this eld, including calls to supplied library functions. Refer to Appendix A for a list and brief description of supplied library functions. A quality variable (prexed QC$) is generated automatically for each calculated variable. The quality variable is equal to the worst quality of any input variable referenced in the calculation expression and the calculated result itself. This automatic generation may be overridden by the user by checking the Quality override box and typing the desired quality statement in the calculation expression eld. The Quality override box must be checked, and the user must input the desired quality statement directly whenever the default quality rule (worst quality of any input referenced in the calculation expression) is not sufcient. This is necessary when the expression contains a conditional expression (such as, an IF statement) or other complex logic.
U0-8801
6-6
Westinghouse Proprietary Class 2C
9/98
These inputs can be obtained from the WDPF Highway points or from the calculated variables of the calculation sets. Input variables are dened by the following:
Input variable name (prexed I$). Description of the variable. Units of the variable.
9/98
6-7
Westinghouse Proprietary Class 2C
U0-8801
Valid range for the variable. Source of the input. Post Processing (AVE, MAX, MIN)
The calculated Input Variable value and Quality are assigned subject to the following rules: 1. If the Use Substitute Value box is checked (see Figure 6-1), the substitute value eld (Sub. Value) is always used as the calculated Input Variable value, and it is always assigned a fair Quality. (If the substitute value eld is blank, the calculated Input Variable is assigned the value of zero, with fair Quality.) 2. If the Primary Input has good or fair Quality, and its value is within the Valid Range High and Low elds (or these elds are not specied), the value and Quality of the calculated Input Variable is set to the Primary Input value and Quality. If an Alternate Input is specied, and its Quality is good or fair, and its value is within the Valid Range High and Low elds (or these eld are not specied), the value and Quality of the calculated Input Variable is set to the Alternate Input variable value and Quality. Otherwise, the value of the calculated Input Variable is set to the substitute value eld and assigned a fair Quality.
Source of the result to output. WDPF Highway point that will be used to broadcast the result.
Sources may be either input variables or calculated variables. If an input variable is used as the source, then the post-processed value and quality of the input is broadcast. If a calculated variable is used as the source, then the post-execution value and quality of that variable is broadcast.
U0-8801
6-8
Westinghouse Proprietary Class 2C
9/98
This symbolic name can then be used in calculation expressions. While all other properties of a set are private to that set, constants are public. Creating a constant will make it available for use by all calculation sets, even ones owned by other users. Similarly, deleting a constant deletes it from all sets. Caution Be extremely careful when deleting constants to ensure that they are not referenced by other calculation sets.
As changes are made to a calculation set, this property can be used to assign a version number and describe the changes made.
9/98
6-9
Westinghouse Proprietary Class 2C
U0-8801
An initial condition that must be true before the rest of the calculation set is executed. An else condition that is executed if the initial condition evaluates to false.
To access the Conditional Evaluation window, refer to Section 5. The syntax for these elds is identical to the calculation expression eld for calculated variables.
U0-8801
6-10
Westinghouse Proprietary Class 2C
9/98
9/98
6-11
Westinghouse Proprietary Class 2C
U0-8801
U0-8801
6-12
Westinghouse Proprietary Class 2C
9/98
If the execute interval boundary box is not check, the on-line set will begin execution immediately after generation, and will execute at the specied execution interval. (For this example, the execution box is not checked in Figure 6-2.) If the execute interval boundary box is checked, execution will be delayed until the next execution boundary. For example, if the execution interval is 60 (one hour), the set will wait until the start of the next hour before execution. Subsequent executions will each begin on an hour boundary. Similarly, if the execution interval is 1440 (one day), execution will wait until the beginning of the next day, and then run at the start of each subsequent day.
9/98
6-13
Westinghouse Proprietary Class 2C
U0-8801
4. Save the set as a permanent set (see Section 3 for information regarding permanent sets). This set is then executed automatically at every execution interval. Input variables are retrieved from the WDPF Highway, and output variables are broadcast on the WDPF Highway. Sets scheduled for on-line execution will restart automatically following reboots or failures of the drop.
U0-8801
6-14
Westinghouse Proprietary Class 2C
9/98
9/98
6-15
Westinghouse Proprietary Class 2C
U0-8801
U0-8801
6-16
Westinghouse Proprietary Class 2C
9/98
A-2. HCLSP
A-2.1. Description
This function computes the specic enthalpy in the compressed liquid region given entropy and pressure.
A-2.2. Inputs
Specic entropy Pressure
A-2.3. Example
Calculate feedwater outlet enthalpy as compressed liquid function of feedwater outlet entropy (SFHOG) and feedwater pressure (PBFW). C$HFHOG := C.HCLSP(I$SFHOG, C$PBFW);
9/98
A-1
Westinghouse Proprietary Class 2C
U0-8801
A-2. HCLSP
A-3. HCLTP
A-3.1. Description
This function computes the specic enthalpy in the compressed liquid region given temperature and pressure.
A-3.2. Inputs
Temperature Pressure
A-3.3. Example
Calculate feedwater outlet enthalpy as compressed liquid function of feedwater outlet temperature (TFHO5) and feedwater pressure (PBFW). C$HFHO5 := C.HCLTP(I$TFHO5, C$PBFW);
A-4. HISTPP
A-4.1. Description
This function computes the specic enthalpy of an isentropic drop from conditions t1 and p1, down to pressure p2. The conditions of t1 and p1 must be in the superheated region, and condition of p2 can be in either the superheated or wet region.
U0-8801
A-2
Westinghouse Proprietary Class 2C
9/98
A-2. HCLSP
A-4.2. Inputs
Temperature, t1 Pressure, p1 Pressure, p2
A-4.3. Example
Compute boiler feed pump A turbine isentropic enthalpy as a function of supply steam temperature and pressure (TBTSTA, PBTSTA) and exhaust pressure (PBXABA). C$HBTSIA := C.HISTPP(I$TBTSTA, C$PBTSTA, C$PBXABA);
A-5. HSLP
A-5.1. Description
This function computes the specic enthalpy in the saturated liquid region given pressure.
A-5.2. Inputs
Pressure
A-5.3. Example
Compute enthalpy of the blowdown as a saturated liquid function of drum pressure (PDRUMA). C$HBLDWN := C.HSLP(C$PDRUMA);
9/98
A-3
Westinghouse Proprietary Class 2C
U0-8801
A-2. HCLSP
A-6. HSLT
A-6.1. Description
This function computes the specic enthalpy in the saturated liquid region given temperature.
A-6.2. Inputs
Temperature
A-6.3. Example
Compute steam jet air ejector drain temperature as a saturated liquid function of drain temperature (TSJAED). C$HSJAED := C.HSLT(C$TSJAED);
A-7. HSSTP
A-7.1. Description
This function computes the specic enthalpy in the superheated steam region given temperature and pressure.
A-7.2. Inputs
Temperature Pressure
U0-8801
A-4
Westinghouse Proprietary Class 2C
9/98
A-2. HCLSP
A-7.3. Example
Calculate enthalpy of main steam at high pressure turbine throttle as a superheated steam function of the temperature (TMNSTM) and pressure (PMNABS). C$HMNSTM := C.HSSTP(I$TMNSTM, C$PMNABS);
A-8. HSVP
A-8.1. Description
This function computes the specic enthalpy in the saturated vapor region given pressure.
A-8.2. Inputs
Pressure
A-8.3. Example
Calculate the enthalpy of the dry saturated vapor at the low pressure turbine exhaust pressure (PCNABS). C$HCNVAC := C.HSVP(C$PCNABS);
A-9. HSWSP
A-9.1. Description
This function computes the specic enthalpy in the superheated or wet steam region given entropy and pressure.
9/98
A-5
Westinghouse Proprietary Class 2C
U0-8801
A-10. PSLT
A-9.2. Inputs
Entropy Pressure
A-9.3. Example
Calculate the intermediate pressure turbine bowl enthalpy as a function of bowl entropy (SIPBWL) and pressure (PIPBWL). C$HIPBWL := C.HSWSP(C$SIPBWL, C$PIPBWL);
A-10. PSLT
A-10.1. Description
This function computes the pressure in the saturated liquid region given temperature.
A-10.2. Inputs
Temperature
A-10.3. Example
Calculate auxiliary condenser A expected back pressure as a saturated liquid function of expected saturation temperature (TCXCLNA). C$PCXCLNA := C.PSLT(C$TCXCLNA);
U0-8801
A-6
Westinghouse Proprietary Class 2C
9/98
A-11. SCLHP
A-11. SCLHP
A-11.1. Description
This function computes the specic entropy in the compressed liquid region given enthalpy and pressure.
A-11.2. Inputs
Enthalpy Pressure
A-11.3. Example
Calculate feedwater outlet entropy as a compressed liquid function of feedwater outlet enthalpy (HFHO5) and feedwater pressure (PBFW). C$SFHO5 := C.SCLHP(I$HFHO5, C$PBFW);
A-12. SCLTP
A-12.1. Description
This function computes the specic enthalpy in the compressed liquid region given temperature and pressure.
A-12.2. Inputs
Temperature Pressure
9/98
A-7
Westinghouse Proprietary Class 2C
U0-8801
A-13. SSLP
A-12.3. Example
Calculate feedwater outlet entropy as a compressed liquid function of feedwater outlet temperature (TFHO5) and feedwater pressure (PBFW). C$SFHO5 := C.SCLTP(I$TFHO5, C$PBFW);
A-13. SSLP
A-13.1. Description
This function computes the specic entropy in the saturated liquid region given pressure.
A-13.2. Inputs
Pressure
A-13.3. Example
Calculate auxiliary condenser A entropy as a saturated liquid function of expected saturation pressure (PCXCLNA). C$SCXCLNA := C.SSLP(C$PCXCLNA);
A-14. SSLT
A-14.1. Description
This function computes the specic entropy in the saturated liquid region given temperature.
U0-8801
A-8
Westinghouse Proprietary Class 2C
9/98
A-15. SSSTP
A-14.2. Inputs
Temperature
A-14.3. Example
Calculate auxiliary condenser A entropy as a saturated liquid function of expected saturation temperature (TCXCLNA). C$SCXCLNA := C.SSLT(C$TCXCLNA);
A-15. SSSTP
A-15.1. Description
This function computes the specic entropy in the superheated steam region given temperature and pressure.
A-15.2. Inputs
Temperature Pressure
A-15.3. Example
Calculate the intermediate pressure turbine bowl entropy as a function of bowl temperature (TIPBWL) and pressure (PIPBWL). C$SIPBWL := C.SSSTP(C$TIPBWL, C$PIPBWL);
9/98
A-9
Westinghouse Proprietary Class 2C
U0-8801
A-16. SSVP
A-16. SSVP
A-16.1. Description
This function computes the specic entropy in the saturated vapor region given pressure.
A-16.2. Inputs
Pressure
A-16.3. Example
Calculate the entropy of the dry saturated vapor at the low pressure turbine exhaust pressure (PCNABS). C$SCNVAC := C.SSVP(C$PCNABS);
A-17. SSWHP
A-17.1. Description
This function computes the specic entropy in the superheated steam region given enthalpy and pressure.
A-17.2. Inputs
Pressure Enthalpy
U0-8801
A-10
Westinghouse Proprietary Class 2C
9/98
A-18. TCLHP
A-17.3. Example
Calculate the intermediate pressure turbine bowl entropy as a function of bowl enthalpy (HIPBWL) and pressure (PIPBWL). C$SIPBWL := C.SSWHP(C$HIPBWL, C$PIPBWL);
A-18. TCLHP
A-18.1. Description
This function computes the temperature in the compressed liquid region given enthalpy and pressure.
A-18.2. Inputs
Pressure Enthalpy
A-18.3. Example
Calculate feedwater outlet temperature as compressed liquid function of feedwater outlet enthalpy (HFHO5) and feedwater pressure (PBFW). C$TFHO5 := C.TCLHP(I$HFHO5, C$PBFW);
9/98
A-11
Westinghouse Proprietary Class 2C
U0-8801
A-19. TCLSP
A-19. TCLSP
A-19.1. Description
This function computes the temperature in the compressed liquid region given entropy and pressure.
A-19.2. Inputs
Pressure Entropy
A-19.3. Example
Calculate feedwater outlet temperature as compressed liquid function of feedwater outlet entropy (SFHO5) and feedwater pressure (PBFW). C$TFHO5 := C.TCLSP(I$SFHO5, C$PBFW);
A-20. TSLP
A-20.1. Description
This function computes the temperature in the saturated liquid region given pressure.
A-20.2. Inputs
Pressure
U0-8801
A-12
Westinghouse Proprietary Class 2C
9/98
A-21. TSWHP
A-20.3. Example
The saturation temperature of the steam entering the condenser is computed from the exhaust steam pressure (PCONDA). C$CNTCNVAC := C.TSLP(C$PCONDA);
A-21. TSWHP
A-21.1. Description
This function computes temperature in the superheated or wet steam region given enthalpy and pressure.
A-21.2. Inputs
Pressure Enthalpy
A-21.3. Example
Calculate the intermediate pressure turbine inlet temperature as a function of inlet enthalpy (HHRHIP) and pressure (PHRABS). C$THRHIP := C.TSWHP(C$HHRHIP, C$PHRABS);
A-22. TSWSP
A-22.1. Description
This function computes temperature in the superheated or wet steam region given entropy and pressure.
9/98
A-13
Westinghouse Proprietary Class 2C
U0-8801
A-23. VCLTP
A-22.2. Inputs
Pressure Entropy
A-22.3. Example
Calculate the intermediate pressure turbine inlet temperature as a function of inlet entropy (SHRHIP) and pressure (PHRABS). C$THRHIP := C.TSWSP(C$SHRHIP, C$PHRABS);
A-23. VCLTP
A-23.1. Description
This function computes specic volume in the compressed liquid region given temperature and pressure.
A-23.2. Inputs
Pressure Temperature
A-23.3. Example
Calculate suction specic volume as compressed liquid function of deaerator outlet temperature (TFHO4) and suction pressure (PBFABA). C$VBFABA := C.VCLTP(I$TFHO4, C$PBFABA);
U0-8801
A-14
Westinghouse Proprietary Class 2C
9/98
A-24. VSLT
A-24. VSLT
A-24.1. Description
This function computes specic volume in the saturated liquid region given pressure.
A-24.2. Inputs
Temperature
A-24.3. Example
Compute specic volume of circulating water as saturated liquid function of circulating water inlet temperature (TCWIN). C$VCWIN := C.VSLT(C$TCWIN);
A-25. VSSTP
A-25.1. Description
This function computes specic volume in the superheated steam region given temperature and pressure.
A-25.2. Inputs
Pressure Temperature
9/98
A-15
Westinghouse Proprietary Class 2C
U0-8801
A-26. VSVP
A-25.3. Example
Calculate rated specic volume as superheated steam function of rated throttle temperature (TRATED) and pressure (PRTABS). C$VRATED := C.VSSTP(K$TRATED, C$PRTABS);
A-26. VSVP
A-26.1. Description
This function computes specic volume in the saturated vapor region given pressure.
A-26.2. Inputs
Pressure
A-26.3. Example
Calculate the saturated dry specic volume at exhaust pressure (PCNABS). C$VCNPRS := C.VSVP(C$PCNABS);
A-27. VSWHP
A-27.1. Description
This function computes specic volume in the superheated or wet steam region given enthalpy and pressure.
U0-8801
A-16
Westinghouse Proprietary Class 2C
9/98
A-28. VSWSP
A-27.2. Inputs
Pressure Enthalpy
A-27.3. Example
Calculate rated specic volume as superheated steam function of rated throttle enthalpy (HRATED) and pressure (PRTABS). C$VRATED := C.VSWHP(K$HRATED, C$PRTABS);
A-28. VSWSP
A-28.1. Description
This function computes specic volume in the superheated or wet steam region given entropy and pressure.
A-28.2. Inputs
Pressure Entropy
A-28.3. Example
Calculate rated specic volume as superheated steam function of rated throttle entropy (SRATED) and pressure (PRTABS). C$VRATED := C.VSWSP(K$SRATED, C$PRTABS);
9/98
A-17
Westinghouse Proprietary Class 2C
U0-8801
A-29. XSWHP
A-29. XSWHP
A-29.1. Description
This function computes steam quality in the superheated or wet steam region given enthalpy and pressure.
A-29.2. Inputs
Pressure Enthalpy
A-29.3. Example
Calculate the quality of the steam at the expected expansion line end point (HELEPE) and exhaust pressure (PCNABS). C$XELEPE := C.XSWHP(C$HELEPE, C$PCNABS);
A-30. XSWSP
A-30.1. Description
This function computes steam quality in the superheated or wet steam region given entropy and pressure.
A-30.2. Inputs
Pressure Entropy
U0-8801
A-18
Westinghouse Proprietary Class 2C
9/98
A-31. HICTPP
A-30.3. Example
Calculate the quality of the steam at the low pressure turbine exhaust entropy (SLTREX) and exhaust pressure (PCNABS). C$XLTREX := C.XSWSP(C$SLTREX, C$PCNABS);
A-31. HICTPP
A-31.1. Description
This function computes specic enthalpy of an isentropic rise from conditions t1 and p1, up to pressure p2 in the compressed liquid region.
A-31.2. Inputs
Pressure, p1 Pressure, p2 Temperature, t1
A-31.3. Example
Calculate the boiler feed pump isentropic enthalpy from inlet conditions (TBFSCT, PBFSCA) and outlet condition (PBFW). C$HBFWTI := C.HICTPP(I$TBFSCT,C$PBFSCA,C$PBFW);
A-32. FIBNSRCH
A-32.1. Description
This function computes actual air density and volume using a Fibonacci Search technique.
9/98
A-19
Westinghouse Proprietary Class 2C
U0-8801
A-33. GOLDSRCH
A-32.2. Inputs
Cooling tower hot water inlet temperature, tcwhot Cooling tower cold water outlet temperature, tcwcld Atmospheric pressure (in psia), patmos Search starting high temperature, thigh Search starting low temperature tlow Search length, tlnth Constant in L/G equation, lgconst Inlet air enthalpy, airenthin Code: Return density = -1.0 Return volume = 1.0
A-32.3. Example
Calculate actual density. C$TACTDENS := C.FIBNSRCH (C$TCWHOT, C$TCWCLD, C$PATMOS, C$THIGH, C$TLOW, C$TLNTH, C$LGCONST, C$AIRENTHIN, -1.0); Calculate actual volume. C$TACTVOL := C.FIBNSRCH (C$TCWTHOT, C$TCWCLD, C$PATMOS, C$THIGH, C$TLOW, C$TLNTH, C$LGCONST, C$AIRENTHIN, 1.0);
A-33. GOLDSRCH
A-33.1. Description
This function computes the estimated cooling tower outlet temperature using the Search by Golden Section.
U0-8801
A-20
Westinghouse Proprietary Class 2C
9/98
A-34. INTRPAXS
A-33.2. Inputs
KaV/L for test temperature, ak Target KaV/L, aktgt Inlet temperature, t1 Search section length, dist Test temperature, ttst Search range, alnth Inlet temperature, at1 Outlet temperature, at2 Test temperature, at3 Slope of air enthalpy line (L/G), slope Air enthalpy at inlet wet bulb temperature, ewtblb
A-33.3. Example
The outlet temperature that ts the target KaV/L, inlet temperature, wet bulb temperature, and slope is calculated by function GOLDSRCH. C$TTCWEST := C.GOLDSRCH (C$AK,C$AKTGT, C$T1, C$DIST, C$TTST, C$ALNTH, C$AT1,C$AT2,C$AT3,C$SLOPE,C$EWTBLB);
A-34. INTRPAXS
A-34.1. Description
This function computes the percent correction for 1 percent auxiliary extraction ow from ASME PTC 6.1 curve using interpolation.
9/98
A-21
Westinghouse Proprietary Class 2C
U0-8801
A-35. KAVL
A-34.2. Inputs
Flow index Pressure Flow
A-34.3. Example
Calculate the fractional correction for 1% steam coil air heater supply steam ow at ow index (2.0), supply steam pressure (PTRX11), and supply steam ow (WSCARG). C$PSCCOR := C.INTRPAXS(2.0, C$PTRX11, C$WSCARG);
A-35. KAVL
A-35.1. Description
This function computes KaV/L using Simpson's Rule.
A-35.2. Inputs
Inlet temperature, t1 Outlet temperature, t2 Slope of air enthalpy line (L/G), slope Air enthalpy at inlet wet bulb temperature, ewtblb
A-35.3. Example
Calculate the test value of KaV/L based on inlet temperature (TCWHOT), outlet temperature (TCWCLD), slope of the air enthalpy line (SLOPE), and air enthalpy (EWTBLB). C$ACTCALCAK := C.KAVL(C$TCWTWR, C$TCWCLD, C$SLOPE, C$EWTBLB);
U0-8801
A-22
Westinghouse Proprietary Class 2C
9/98
A-36. REGFALS
A-36. REGFALS
A-36.1. Description
This function computes the corrected value of L/G based on outlet temperature using a successive approximation algorithm based on the Regula Falsi Principle.
A-36.2. Inputs
Test KaV/L, calcak Constant in base KaV/L equation, const1 Design value of KaV/L, current water ow, desak Design value of KaV/L, design water ow, odesak Design wet bulb temperature, denwb Design hot water inlet temperature, dtmpin Design cold water outlet temperature, dtmpot Inverse of exponent in characteristic equation, expnin
A-36.3. Example
Calculate the corrected value of L/G. C$TACTSLOPE := C.REGFALS (C$CALCAK, C$CONST1, C$DESAK, C$ODESAK, C$DENWB, K$DTMPIN, K$DTMPOT, C$EXPNIN);
A-37. ENTHAL
A-37.1. Description
This function computes the calculated gas enthalpy (Btu/lb).
9/98
A-23
Westinghouse Proprietary Class 2C
U0-8801
A-37. ENTHAL
A-37.2. Inputs
Units code: English units = 1.0. SI or metric units = -1.0 Initial gas temperature (degrees Fahrenheit), tgi Gas turbine fuel air ratio (decimal value), fgr Supplementary ring fuel gas ratio (decimal), fsr Weight of injection moisture (lb/lb air), wmj Weight of ambient moisture (lb/lb air), wma Percent carbon in fuel, pcf Percent carbon dioxide in fuel, pdf Percent hydrogen in fuel, phf Percent carbon monoxide in fuel, pmf Percent nitrogen in fuel, pnf Percent oxygen in fuel, pof Percent sulfur in fuel, psf Percent sulfur dioxide in fuel, puf Percent noncombustibles in fuel, pnc Enthalpy of exhaust gas at 32 degrees Fahrenheit (0 degrees Celsius), hbase Enthalpy conversion factor (decimal value), hconv
A-37.3. Example
Compute the enthalpy of the stack gas leaving a heat recovery steam generator as a function of the weight of injection moisture (WMJ), fuel/air ratio (FGR), fuel element percentages (PCARB, PC02, PHYDR, PCO, PNITR, POXY, PSULF, PSO2, and PNC), weight of ambient moisture (WMA), and the temperature (TGI) of the gas leaving the heat recovery steam generator. C$H1HSTACK := C.ENTHAL(-1.0, C$TGI, C$FGR, 0.0, C$WMJ, C$WMA, C$PCARB, C$PCO2, C$PHYDR, C$PCO, C$PNITR, C$PSULF, C$PSO2, C$PNC, C$PNC, C$HBASE, 0.0);
U0-8801
A-24
Westinghouse Proprietary Class 2C
9/98
A-38. CALC_AVG
A-38. CALC_AVG
A-38.1. Description
This function computes an average from a set of up to 18 inputs.
A-38.2. Inputs
Input, (p1 through p18) Number of inputs to average, nbr_samp
A-38.3. Example
Calculate the average exhaust gas temperature. C$C1TCTEX := C.CALC_AVG(I$C1TCTEX1, I$C1TCTEX2, I$C1TCTEX3, I$C1TCTEX4, I$C1TCTEX5, I$C1TCTEX6, I$C1TCTEX7, I$C1TCTEX8, I$C1TCTEX9, I$C1TCTEX10, I$C1TCTEX11, I$C1TCTEX12, I$C1TCTEX13, I$C1TCTEX14, I$C1TCTEX15, I$C1TCTEX16, I$C1TCTEX17, 0, 17);
A-39. WBDENSVOL
A-39.1. Description
This function computes the density and volume of a saturated mixture at wet bulb temperature and atmospheric pressure.
9/98
A-25
Westinghouse Proprietary Class 2C
U0-8801
A-40. WBENTH
A-39.2. Inputs
Wet bulb temperature, twb Saturated liquid pressure at twb, ptest Atmospheric pressure (psia), patmos Code: Return density = -1.0 Return volume = 1.0
A-39.3. Example
Calculate design air volume at the design outlet wet bulb temperature (DESTWB). C$DESVOL := C.WBDENSVOL(C$DESTWB, C$PTEST, C$PATMOS, 1.0); Calculate the design air density at the design outlet wet bulb temperature (DESTWB). C$DESDENS := C.WBDENSVOL(C$DESTWB, C$PTEST, C$PATMOS, -1.0);
A-40. WBENTH
A-40.1. Description
This function computes the wet bulb temperature and partial pressure of moisture corresponding to total heat of enthalpy.
A-40.2. Inputs
Total heat, enth Circulating water inlet temperature, tcwin
U0-8801
A-26
Westinghouse Proprietary Class 2C
9/98
A-41. HUMID
A-40.3. Example
Calculate design outlet wet bulb temperature corresponding to the design heat in the outlet air (TOTHDES) and design hot water inlet temperature (DTMPIN). C$TDESTWB := C.WBENTH(C$TOTHDES, K$DTMPIN);
A-41. HUMID
A-41.1. Description
This function computes the humidity ratio (in pounds of water per pounds of dry air) from wet and dry bulb temperatures and barometric pressure.
A-41.2. Inputs
Wet bulb temperature (degrees Fahrenheit), wblb Dry bulb temperature (degrees Fahrenheit), dblb Barometric pressure (in/Hg), baro
A-41.3. Example
Calculate the humidity ratio as a function of wet bulb temperature (TWTBLB), ambient temperature (TAMBNT) and barometric pressure (PBARO). C$RHUMID := C.HUMID(I$TWTBLB, I$TAMBNT, I$PBARO);
A-42. RELHUMID
A-42.1. Description
This function computes the relative humidity of moist air as a percentage from wet and dry bulb temperatures and barometric pressure.
9/98
A-27
Westinghouse Proprietary Class 2C
U0-8801
A-43. RELHMDEW
A-42.2. Inputs
Wet bulb temperature (degrees Fahrenheit), wblb Dry bulb temperature (degrees Fahrenheit), dblb Barometric pressure (in/Hg), baro
A-42.3. Example
Calculate the relative humidity as a function of wet bulb temperature (TWTBLB), ambient temperature (TAMBNT) and barometric pressure (PBARO) C$RELHMD := C.RELHUMID(I$TWTBLB, I$TAMBNT, I$PBARO);
A-43. RELHMDEW
A-43.1. Description
This function computes the relative humidity of moist air as a percentage from dew point and dry bulb temperatures, and barometric pressure.
A-43.2. Inputs
Dew point temperature (degrees Fahrenheit), dewpt Dry bulb temperature (degrees Fahrenheit), dblb Barometric pressure (in/Hg), baro
A-43.3. Example
Calculate the relative humidity as a function of dew point temperature (TDWPNT), ambient temperature (TAMBNT), and barometric pressure (PBARO). C$RELHMD := C.RELHMDEW(I$TDWPNT, I$TAMBNT, I$PBARO);
U0-8801
A-28
Westinghouse Proprietary Class 2C
9/98
A-44. WETBLB
A-44. WETBLB
A-44.1. Description
This function computes the wet bulb temperature from relative humidity, dry bulb temperature, and barometric pressure.
A-44.2. Inputs
Relative humidity, relhum Dry bulb temperature (degrees Fahrenheit), dblb Barometric pressure (in/Hg), baro
A-44.3. Example
Calculate wet bulb temperature as a function of ambient temperature (TAMBNT), barometric pressure (PBARO), and relative humidity (RELHMD). C$TTWTBLB := C.WETBLB(I$TAMBNT, I$PBARO, C$RELHMD);
9/98
A-29
Westinghouse Proprietary Class 2C
U0-8801
Index C
Calculate menu 4-23 Display Errors option 4-27, 6-12 Execute Set option 4-24 Load Inputs option 4-25 Update Outputs option 4-27 Calculated Variables 6-5 dening 6-6 editor elds 5-5 Filter/Sort option 5-16 Calculation Builder Subsystem (CBS) applications 6-1 functions 1-1 Main module 3-2 modules 3-2 requirements 2-2 start-up 2-3 start-up options 2-4 calculation set 1-1 creating 6-2 dening 2-5 displaying errors 4-27 executing 4-24 executing in off-line mode 6-12 functions from Properties menu 6-5 loading inputs 4-25 naming conventions for Properties 6-5 permanent 3-8 viewing 6-11 working 3-8 Clear List option using 5-21 Comments 6-5 dening 6-9 editor elds 5-11 Filter/Sort option 5-20 Conditional Evaluation 6-5 editor elds 5-12 for dening expressions 6-10 Constants 6-5 dening 6-9 editor elds 5-10 Filter/Sort option 5-19 creating a calculation set by copying an existing set 6-2 using the New option 6-3
D
data storage 3-8 Display Errors option 6-12 See also Calculate menu
E
Edit (Properties) menu 3-7 Copy option 5-23 Delete option 5-24 Paste (insert) option 5-24 Undo option 5-23 ELSE statement 5-12 Engineering WEStation 2-3 execution interval 6-13 changing 6-15 See also modes of operation
F
File menu Delete option 4-14 Load option 4-5, 6-15 New option 4-13 Save As option 4-11 Save option 4-11 using 4-4 Filter/Sort option using 5-16 window information 4-18
I
IF statement 5-12 Input Variables 6-5 dening 6-7 editor elds 5-7 Filter/Sort option 5-17 Insert menu 3-7 using 5-22
L
Library Functions See Appendix A Load option See also File menu 6-15 Locate option using 5-21
9/98
Index-1
Westinghouse Proprietary Class 2C
U0-8801
Index M
main module for Calculation Builder Subsystem (CBS) 3-3 accessing 4-2 modes of operation 3-10 changing to executing on-line 6-13 executing off-line 6-12 stopping on-line set execution 6-15
R
reference documents 1-3 Relational Database Management System (RDBMS) 1-1, 3-8 Report menu 4-29 printing reports 6-16
S
Scheduling on-line execution See modes of operation 6-13 starting up Calculation Builder Subsystem (CBS) from a command tool 2-3 from Engineering WEStation 2-3 from Operator WEStation 2-3 Supplied Numerical Library Functions See Appendix A system security/restrictions 2-5
N
naming conventions Calculation Set Properties 6-5 Numerical Library Functions See Appendix A
O
off-line mode 3-10 on-line mode 3-10 Operator WEStation 2-3 Options menu (for Print) 5-27 Output Variables 6-5 dening 6-8 editor elds 5-9 Filter/Sort option 5-18
V
View menu 3-7 Clear List option 4-20, 5-21 Filter/Sort option 4-17, 5-16 Locate option 4-18, 5-21 using 4-15
P
permanent set 3-8 deleting 4-14 ltering/sorting for loading 4-9 listing 4-6 loading as a working set 4-5 Print menu 3-7 Options menu 5-25 sending requests to a le 5-28 sending requests to a printer 5-28 using 5-25 Propagate Quality box 3-12 Properties menu 4-21 editors 5-5 Properties module editor accessing from main module 5-3 accessing from Properties menu 5-2 Properties module editors 3-5
W
WEScalc 1-1 wild cards 4-18 working set 3-8 clearing 4-13 deleting 4-14 saving as a permanent set 4-11
Q
quality 3-12, 4-27, 5-12 variable 6-6 Quality override option 3-13
U0-8801
Index-2
Westinghouse Proprietary Class 2C
9/98