Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Include the entities: Mass Hull, Mass Decks and Mass Bulkheads as children of Light Ship Weight. All three are singular obligatory.
  • Include the following parameters in entity Light Ship Weight: Mass, COGX, COGY, COGZ, MOMX, MOMY, and MOMZ.
  • Connect the same relations as above from the Knowledge Browser to the pertaining parameters in entity Light Ship Weight.
  • To show computed values set attribute @SHOW on QEntityData.

...

Mass Hull

 

Create the following parameter in the Knowledge Browser.

...

  • Include the following parameters in entity Mass Hull: Mass, COGX, COGY, COGZ, MOMX, MOMY, MOMZ, Volume and Weight_volume_factor.
  • Create the following relations in entity 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)

...

  • To show computed values set attribute @SHOW on QEntityData.
  • Make parameter Volume in entity Mass  Mass Hull use local properties ("Instantiate") and remove @MODIFY because you do not want to allow modification here.
  • Create the following relation in entity Mass Hull (here, 13 is the entity ID of Hydrostatics, change this for your case):

Volume = ENTITY#(13).Volume

...

Mass Decks

Include Entity:

Decks

child of “Mass Decks”

Entity Type: singular obligatory

...