Casanova Drift Model (CDM)

A mechanistic model for simulating pesticide spray drift during agricultural applications

Casanova Drift Model (CDM)

The Casanova Drift Model (CDM) is a mechanistic model that simulates the trajectory and fate of pesticide spray droplets released from agricultural spray equipment. The model predicts the transport and deposition of spray droplets under various atmospheric and application conditions.

🔬 Mechanistic Simulation

Physics-based droplet transport using ODE integration with CVODE, accounting for drag, evaporation, and wind interactions.

📊 Deposition Profiles

Predicts ground deposition as a function of downwind distance, validated against SETAC DRAW test cases.

🌬️ Vertical Drift Profiles

Extracts vertical drift concentration profiles at specified downwind distances for non-target organism risk assessment.

🔗 Multiple Interfaces

C API shared library, command-line interface (CLI), and R package for flexible integration.

Key Capabilities

How It Works

Physical processes in the Casanova Drift Model

Test Cases

The model is validated against SETAC DRAW test cases:

Case Trial ID Nozzle Type Nozzle Pressure Surfactant Input File
B FR_1_017 AXI 11002 250 kPa (36 psig) None Case_B.json
G NL_1_660 XR 11004 300 kPa (44 psig) Agral Case_G.json
I DE_4_006 XR 11004 250 kPa (36 psig) None Case_I.json

Quick Start

CLI

# Run model with a test case
cdmcli tests/Case_B.json

# Save JSON output
cdmcli tests/Case_B.json -o results.json

C API

#include <cdm/CDM.h>

cdm_model_t* model = cdm_create_model(json_config);
int status = cdm_run_model(model);
cdm_print_report(model);
char* output = cdm_get_output_string(model);
cdm_free_string(output);
cdm_free_model(model);

R Package

library(cdm)
result <- cdm_run("tests/Case_B.json")
demo("caseB", package = "cdm")

Dependencies

CDM relies on high-quality scientific computing libraries, all managed through vcpkg:

Version

Current Version: 1.2.0