buhlmann_zhl16 0.1.3 copy "buhlmann_zhl16: ^0.1.3" to clipboard
buhlmann_zhl16: ^0.1.3 copied to clipboard

Bühlmann ZHL-16C tissue model utilities (nitrogen-only for now) for dive planning.

example/buhlmann_zhl16_example.dart

/// WARNING:
/// This library is NOT a dive planner and must not be used for real-world diving.
/// For educational and experimental use only.
library;

import 'package:buhlmann_zhl16/buhlmann_zhl16.dart';

void main() {
  final plan = Plan(dives: [
    Dive(steps: [
      SquareSegment(depthMeters: 30, minutes: 10),
      SquareSegment(depthMeters: 12, minutes: 40),
      SquareSegment(depthMeters: 5, minutes: 3), // safety stop
      SurfaceInterval(minutes: 60),
    ]),
    Dive(steps: [
      SquareSegment(depthMeters: 18, minutes: 10),
      SquareSegment(depthMeters: 10, minutes: 30),
      SquareSegment(depthMeters: 5, minutes: 3), // safety stop
    ]),
  ]);

  final model = Zhl16cN2.runPlan(plan);

  print('Max PN2 (ATA): ${model.maxPn2()}');
  print('Ceiling (ATA): ${model.ceilingAmbientAta()}');
  print('Ceiling (m):   ${model.ceilingDepthMeters()}');
}
0
likes
160
points
382
downloads

Publisher

unverified uploader

Weekly Downloads

Bühlmann ZHL-16C tissue model utilities (nitrogen-only for now) for dive planning.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on buhlmann_zhl16