...
Now that the whole ship itself is in place, you are ready for some analysis functionality.
...
Mass calculation
: Mass
, COGX
, COGY
, COGZ
, MOMX
, MOMY
, MOMZ
and QEntityRef
.Mass calculation
....
Mass = SUM(@QEntity, 1, @Mass)
...
(
The result will be the summation of all parameters
...
Mass
...
of the
...
entities one level below.)
COGX = MOMX/Mass
COGY = MOMY/Mass
COGZ = MOMZ/Mass
MOMX = SUM(@QEntity, 1, @MOMX)
MOMY = SUM(@QEntity, 1, @MOMY)
MOMZ = SUM(@QEntity, 1, @MOMZ)
QEntityData
.QEntityRef:
“Mass calculation: summation of light ship weight and total cargo weight”Figure 79: Entity "Mass calculation"
First include the Entities:
Mass Hull | child of “Light Ship Weight” | Entity Type: singular obligatory |
Mass Decks | child of “Light Ship Weight” | Entity Type: singular obligatory |
Mass Bulkheads | child of “Light Ship Weight” | Entity Type: singular obligatory |
...
Please note, that you just created 'normal' relations and connected these to the parameters in the entity, because these are going to be used in several Mass
entities.
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.
Parameter name | Dimension | Determined by | Reference | In Class |
| [t/m^3] | USR: User or system/equation | Weight factor per volume | Mass calculation |
Mass Hull
“: “Mass
”, “COGX
”, “COGY
”, “COGZ
”, “MOMX
”, “MOMY
”, “MOMZ
“, “Volume
”, “ and Weight_volume_factor
” and “QEntityData”....
Mass Hull
(here, 12 is the entity ID of Main Dimensions
, change this for your case):COGX = (
...
...
12).Lpp)*0
...
.5
(assume the centre of gravity of the hull in X direction half of the ship length
...
)
COGY = 0
...
(amidships)
COGZ = (
...
...
12).Dm)*0.45
...
(assume the centre of gravity of the hull in Z direction at 45 % of the moulded depth
...
)
MOMX = COGX*Mass
MOMY = COGY*Mass
MOMZ = COGZ*Mass
QEntityData
.Mass Hull
(here, 13 is the entity ID of Hydrostatics
, change this for your case):...