Tank¶
The Tank
node models a mesh containing a fluid such as a ballasttank or a cargotank. Alternatively they can also
be used to model caveties in a floating body.
The geometry of a tank is defined by a mesh. The definition of the mesh is exactly the same as for Buoyancy
nodes.
The capacity of the tank [m3] is defined by the volume enclosed by the mesh and the permeability []. The amount of fluid in a tank can be defined as volume [m3] or as fill percentage.
The fluid in the tank will fill all of the inside of the tank up till an automatically determined elevation. For tanks with physical sections this means that fluid will be distributed over both sections:
The fluid surface is always horizontal. This means that the fluid will redistribute if the orientation of the tank changes. During stability (GM) calculations this redistribution is used as well. This results in a more accurate approach of the stability curves than when using the freefluid surface correction.
The density of the fluid in the tank can either be defined [mT/m3] or can be set to be equal to the density of the water in the rest of the scene.
Damaged tanks can be modelled by setting the tank to freeflooding. In that case the density of the fluid in the tank is set to the density of the water in the scene and the fluid surface elevation equals the global fluid elevation.
Ullage of the tank [m] is calculated from the tank geometry and the fluid surface elevation. This is done as follows:
For zero inclination (left):
determine the geometrical center of the tank
determine the highest point of the tank
define the ullage reference point as the combination of these two.
For any inclination (right) the ullage is now the distance from the ullage reference point to the fluid surface measured in the original vertical direction of the tank (local z direction). Except if it exceeds the depth of the tank. In that case the ullage is equal to the depth of the tank.
When calculating shear and bending moments the fluid in the tank is discretized into slices perpendicular to the direction of the axis over which the shear and bending is calculated. Each of the slices then adds a distributed force over the thickness of the slice with the total force acting at the center of fluid of that slice. So fluid redistribution is fully accounted for in shear and bending moment diagrams as well.
TankAPI¶
Tank provides a fillable tank based on a mesh. The mesh is triangulated and chopped at the instantaneous flat fluid surface. Gravity is applied as an downwards force that the center of fluid. The calculation of fluid volume and center is as accurate as the provided geometry.
There as no restrictions to the size or aspect ratio of the panels. It is excellent to model as box using 6 faces. Using smaller panels has a negative effect on performance.
The normals of the panels should point *away* from the fluid. This means that the same basic shapes can be used for both buoyancy and tanks.
Property 
ReadOnly 
Documentation 

trimesh 
Readonly 

free_flooding 

permeability 
Permeability is the fraction of the enclosed volume that can be filled with fluid [] 

cog 
Readonly 
Returns the GLOBAL position of the center of volume / gravity 
cog_local 
Readonly 
Returns the local position of the center of gravity 
cog_when_full 
Readonly 
Returns the LOCAL position of the center of volume / gravity of the tank when it is filled 
fill_pct 
Amount of volume in tank as percentage of capacity [%] 

level_global 
The fluid plane elevation in the global axis system. Setting this adjusts the volume 

volume 
The volume of fluid in the tank in m3. Setting this adjusts the fluid level 

density 
Density of the fluid in the tank in mT/m3 

capacity 
Readonly 
Returns the capacity of the tank in m3. This is calculated from the defined geometry. 
ullage 
Readonly 
Ullage of the tank [m]. 