Package: whalestrike 0.6.3

Dan Kelley

whalestrike: Simulate Whale Ship Strikes

Provides tools for simulating the biophysical effects of vessel-strikes on whales. The aim is to support the evaluation of marine policies limiting ship speeds through regions in which whales reside. This is important because ship strikes are a major source of lethality for several whale species, including the critically endangered North Atlantic right whale. In this analysis, whales are modelled with a four-layer system comprising skin, blubber, sub-layer (muscle or organ) and bone. Reasonable values for the material properties of these layers, along with other factors such as whale surface area and mass, are provided for a variety of whale species. Similarly, key values are provided for several ship types. The collision is modelled according to Newtonian dynamics, with stresses and strains within the whale layers being simulated over time. The simulation results are analyzed in the context of whale-strike data, to develop a Lethality Index for the whale in the modelled collision. For the underlying science, see Kelley and others "Assessing the Lethality of Ship Strikes on Whales Using Simple Biophysical Models." (2021) <doi:10.1111/mms.12745>. For more on the R code, see Kelley "`whalestrike`: An R package for simulating ship strikes on whales" (2024) <doi:10.21105/joss.06473>.

Authors:Dan Kelley [aut, cre], James Vlasic [rtm], Sean Brilliant [rtm], Alexandra Mayette [rtm]

whalestrike_0.6.3.tar.gz
whalestrike_0.6.3.zip(r-4.7)whalestrike_0.6.3.zip(r-4.6)whalestrike_0.6.3.zip(r-4.5)
whalestrike_0.6.3.tgz(r-4.6-any)whalestrike_0.6.3.tgz(r-4.5-any)
whalestrike_0.6.3.tar.gz(r-4.7-any)whalestrike_0.6.3.tar.gz(r-4.6-any)
whalestrike_0.6.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
whalestrike/json (API)
NEWS

# Install 'whalestrike' in R:
install.packages('whalestrike', repos = c('https://dankelley.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/dankelley/whalestrike/issues

Pkgdown/docs site:https://dankelley.github.io

Datasets:

On CRAN:

Conda:

collisionshipswhales

5.88 score 6 stars 42 scripts 153 downloads 27 exports 31 dependencies

Last updated from:ed043aecd2. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK134
source / vignettesOK192
linux-release-x86_64OK138
macos-release-arm64OK104
macos-oldrel-arm64OK118
windows-develOK86
windows-releaseOK92
windows-oldrelOK119
wasm-releaseOK107

Exports:appapp_2025derivativedynamicsfillplotknot2mpslethalityIndexFromStressmaximumLethalityIndexmps2knotparameterspinshipAreaFromMassshipLengthshipMassFromLengthshipWaterForcestressFromLethalityIndexstressFromStrainFunctionstrikeupdateParameterswhaleAreaFromLengthwhaleCompressionForcewhaleLengthFromMasswhaleMassFromLengthwhaleMeasurementswhaleShapewhaleSkinForcewhaleWaterForce

Dependencies:base64encbslibcachemclicommonmarkdeSolvedigestfastmapfontawesomefsgluehtmltoolshttpuvjquerylibjsonlitelaterlifecyclemagrittrmemoisemimeotelpromisesR6rappdirsRcpprlangsassshinysourcetoolswithrxtable

Using the whalestrike package

Rendered fromwhalestrike.Rmdusingknitr::rmarkdownon May 11 2026.

Last update: 2026-03-03
Started: 2018-06-27

Readme and manuals

Help Manual

Help pageTopics
GUI application for whale simulationapp
GUI app for interactive whale-strike simulations (OLD VERSION, no longer maintained)app_2025
Calculate derivative using first differencederivative
Dynamical lawdynamics
Draw polygon between two xy curvesfillplot
Convert a speed in knots to a speed in m/sknot2mps
Compute lethality index, based on compression stresslethalityIndexFromStress
Find maximum Lethality Index during a strikemaximumLethalityIndex
Convert a speed in m/s to a speed in knotsmps2knot
Set parameters for a whale strike simulationparameters
Pin numerical values between stated limitspin
Plot a strike objectplot.strike
Whale blubber stress-strain relationshipraymond2007
Compute ship wetted area from massshipAreaFromMass
Nominal ship length in mshipLength
Ship displacement in kg based on vessel type and lengthshipMassFromLength
Ship Drag ForceshipWaterForce
Reference strike() solutionsol20200708
Compute stress, based on lethality indexstressFromLethalityIndex
Create a function for stress in laminated layersstressFromStrainFunction
Simulate the collision of a ship and a whalestrike
Summarize a parameters objectsummary.parameters
Summarize the parameters of a simulation, and its resultssummary.strike
Update parametersupdateParameters
Whale projected area, as function of lengthwhaleAreaFromLength
Whale compression forcewhaleCompressionForce
Compute whale length from masswhaleLengthFromMass
Whale mass inferred from lengthwhaleMassFromLength
Get values for various whale measurementswhaleMeasurements
Whale side-view shapewhaleShape
Skin forcewhaleSkinForce
Whale Drag ForcewhaleWaterForce