Question

Is there a way to get a hydrostatics table with the LCG fixed and the trim allowed to vary?


Answer

To accomplish creating a hydrostatics table with the LCG fixed and the trim allowed to vary we have created a macro which cycles through several drafts. Below is the macro to illustrate this.

PROJECT HSLCG

READ FV.GF
REPORT

VARIABLE DFT,DFTINC

MACRO SETDRAFT
`Sets LCF draft as given in variable DFT,
`and solves for trim keeping CG constant.
`Must call about 4 times or until SOLVE does not change LCF draft.
DRAFT = {DFT}
SOLVE WEIGHT,TRIM
/

MACRO HSLCG
.SETDRAFT (4)
STATUS WEIGHT
GHS

SET DFT = {DFT} PLUS {DFTINC}
/

LCG = 4.5
VCG = 4.0
SET DFT = 2 `<-- Initial draft
SET DFTINC = .5 `<-- Draft increment
.HSLCG (5) `<-- Number of increments

VIEW
REPORT OFF
Copyright (C) 2005 Creative Systems, Inc.