buhlmann_zhl16 0.1.1
buhlmann_zhl16: ^0.1.1 copied to clipboard
Bühlmann ZHL-16 tissue model utilities (nitrogen-only for now) for dive planning.
example/buhlmann_zhl16_example.dart
import 'package:buhlmann_zhl16/buhlmann_zhl16.dart';
void main() {
final plan = Plan(dives: [
Dive(steps: [
SquareSegment(depthMeters: 18, minutes: 40), // dive
SurfaceInterval(minutes: 60), // SI
SquareSegment(depthMeters: 12, minutes: 50), // repetitive dive
]),
]);
final model = Zhl16cN2.runPlan(plan);
print('Max PN2 (ATA): ${model.maxPn2()}');
print('Ceiling (ATA): ${model.ceilingAmbientAta()}');
print('Ceiling (m): ${model.ceilingDepthMeters()}');
}