Expand description
§NavalToolbox
High-performance naval architecture library for hydrostatics, stability, and tank calculations.
§Features
- Hull geometry loading (STL, VTK)
- Multi-hull vessel support
- Hydrostatic calculations (volume, CoB, waterplane properties, metacentric heights)
- Stability analysis (KN curves, GZ curves)
- Tank management with free surface effects
§Usage
ⓘ
use navaltoolbox::{Hull, Vessel, HydrostaticsCalculator};
let hull = Hull::from_stl("ship.stl")?;
let vessel = Vessel::new(hull);
let calc = HydrostaticsCalculator::new(&vessel, 1025.0);
let state = calc.from_draft(5.0, 0.0, 0.0)?;
println!("Volume: {} m³", state.volume);§Disclaimer
NavalToolbox has been developed with care to ensure that all models and methods are correct. However, results must not be considered as a guarantee of performance. The author cannot be held responsible for any inaccuracies in the calculations or for any consequences arising from the use of this software. Users are advised to independently verify critical calculations and to use this software as a tool to support, not replace, professional engineering judgment.
Re-exports§
pub use appendage::Appendage;pub use appendage::AppendageGeometry;pub use appendage::AppendageLoadError;pub use deckedge::DeckEdge;pub use deckedge::DeckEdgeLoadError;pub use deckedge::DeckEdgeSide;pub use downflooding::DownfloodingOpening;pub use downflooding::OpeningGeometry;pub use downflooding::OpeningType;pub use hull::Hull;pub use hydrostatics::HydrostaticState;pub use hydrostatics::HydrostaticsCalculator;pub use scripting::CriteriaContext;pub use scripting::CriteriaResult;pub use scripting::CriteriaStatus;pub use scripting::CriterionResult;pub use scripting::PlotData;pub use scripting::PlotElement;pub use scripting::ScriptEngine;pub use scripting::ScriptError;pub use silhouette::Silhouette;pub use stability::CompleteStabilityResult;pub use stability::StabilityCalculator;pub use stability::StabilityCurve;pub use stability::StabilityPoint;pub use stability::WindHeelingData;pub use tanks::Tank;pub use tanks::TankState;pub use vessel::Vessel;
Modules§
- appendage
- Appendage module for additional volume elements.
- deckedge
- Deck edge (livet) module for freeboard calculation.
- downflooding
- Downflooding openings for intact stability calculations.
- hull
- Hull geometry module.
- hydrostatics
- Hydrostatics module.
- mesh
- Mesh utilities module.
- scripting
- Scripting module for stability criteria verification.
- silhouette
- Silhouette module for wind heeling moment calculations.
- stability
- Stability module.
- tanks
- Tanks module.
- vessel
- Vessel module.