|
|
General HydroStatics
Ship Stability Software |
|
Command of the Week
(New or interesting aspects of GHS that you may not know about) |
|
Variable Array for Damage Cases
(Requires GHS ) |
|
Here is an efficient method for defining Damage Cases. It uses a VARIABLE array
like was mentioned in COW154.
Each variable in the array is named DCnum where num is the damage case number.
The content of each variable is simply a quoted string of tank names.
Since each damage case variable contains the names of the tanks to be flooded, it can be used both for changing the TYPE of the tanks and for creating NOTES or SUBTITLES to annotate the report. The image below (from a recent training class) shows an example with three damage cases. Note how variable DCn is set to 3, matching the number of cases. That is important, as it lets us call runDamageCases once for each case. The macro DamStabCalc performs the stability evaluation of the damage case. |
|
| The real tricks to damage stability are coming up with the damage cases themselves and writing a great DamStabCalc macro, but hopefully, you find this method of managing the cases useful. |
|
Questions, comments, or requests?
Contact Creative Systems, Inc. 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 Click here for an index to this and previous COWs |