General HydroStatics
Ship Stability Software
Command of the Week
(New or interesting aspects of GHS that you may not know about)

DB PutFlood and GetFlood
(Requires GHS version 17.00 or later)

(Use the command DB Update to get the latest version of the Data Base software.)

DB PutFlood name stores a case of flooding identified by the given name. The particular tanks/compartments that get put into that flooding case are those that currently have their types set to FLOOD.

At a later time use DB GetFlood name to set those same tanks and spaces to type FLOOD.

This Put/Get operation resembles the Put/Get for tank cases. The difference is that PutFlood only stores names of tanks while PutTankCase stores everything about every tank. Therefore GetFlood only touches the tanks in its list, and it does nothing to those tanks but set their type to FLOODED.

DB GetFlood without a parameter brings up a list of all flooding cases:


DB PutFlood will also take a list of tanks as an alternative to deriving the list from the currently flooded tanks. When the list is given directly in this manner it may consist of tank names and tank set names. This makes good use of tank sets.

DB GetUnFlood name reverses the effect of DB GetFlood name. It does not blindly set the types of the tanks in the list to INTACT. Whatever the type was before flooding, that type is restored.

What purpose do the check boxes serve? A single GetFlood command can run through all of the flood cases, executing a given macro with each case.

For syntax details see DB Info.

DB GetFlood leaves the flooded tank selection in the system variable PNAME. This facilitates intermediate stages of flooding using FLDINTER.LIB. Here is a simple example doing three intermediate stages:
MACRO Calc
 PAGE
 \Intermediate stage %1\
 STATUS
 RA
/
MACRO FldCalc
 SUBTITLE Flood Case %1 %2\
 .FI.Do 3, Calc
/
RUN FLDINTER.LIB /call
DB GetFlood *, .FldCalc

Questions, comments, or requests?
Contact Creative Systems, Inc.

support@ghsport.com

USA phone: 360-385-6212 Fax: 360-385-6213
Office hours: 7:00 am - 4:00 pm Pacific Time, Monday - Friday

Mailing address:
PO Box 1910
Port Townsend, WA 98368 USA

www.ghsport.com

Click here for an index to this and previous COWs