...
Mass Hull
, Mass Decks
and Mass Bulkheads
as children of Light Ship Weight
. All three are singular obligatory.Light Ship Weight
: Mass
, COGX
, COGY
, COGZ
, MOMX
, MOMY
, and MOMZ
.Light Ship Weight
.QEntityData
....
Create the following parameter in the Knowledge Browser.
...
Mass Hull
: Mass
, COGX
, COGY
, COGZ
, MOMX
, MOMY
, MOMZ
, Volume
and Weight_volume_factor
.Mass Hull
(here, 12 is the entity ID of Main Dimensions
, change this for your case):Mass = Weight_volume_factor*Volume
COGX = (ENTITY#(12).Lpp)*0.5
(assume the centre of gravity of the hull in X direction half of the ship length)
...
QEntityData
.Volume
in entity Mass Mass Hull
use local properties ("Instantiate") and remove @MODIFY because you do not want to allow modification here.Mass Hull
(here, 13 is the entity ID of Hydrostatics
, change this for your case):Volume = ENTITY#(13).Volume
...
Include Entity:
Decks | child of “Mass Decks” | Entity Type: singular obligatory |
...