Crandore Hub

soilFlux

Physics-Informed Neural Networks for Soil Water Retention Curves

Implements a physics-informed one-dimensional convolutional neural network (CNN1D-PINN) for estimating the complete soil water retention curve (SWRC) as a continuous function of matric potential, from soil texture, organic carbon, bulk density, and depth. The network architecture ensures strict monotonic decrease of volumetric water content with increasing suction by construction, through cumulative integration of non-negative slope outputs (monotone integral architecture). Four physics-based residual constraints adapted from Norouzi et al. (2025) <doi:10.1029/2024WR038149> are embedded in the loss function: (S1) linearity at the dry end (pF in [5, 7.6]); (S2) non-negativity at pF = 6.2; (S3) non-positivity at pF = 7.6; and (S4) a near-zero derivative in the saturated plateau region (pF in [-2, -0.3]). Includes tools for data preparation, model training, dense prediction, performance metrics, texture classification, and publication-quality visualisation.

Versions across snapshots

VersionRepositoryFileSize
0.1.5 rolling linux/jammy R-4.5 soilFlux_0.1.5.tar.gz 3.5 MiB
0.1.5 rolling linux/noble R-4.5 soilFlux_0.1.5.tar.gz 3.5 MiB
0.1.5 rolling source/ R- soilFlux_0.1.5.tar.gz 3.3 MiB
0.1.5 latest linux/jammy R-4.5 soilFlux_0.1.5.tar.gz 3.5 MiB
0.1.5 latest linux/noble R-4.5 soilFlux_0.1.5.tar.gz 3.5 MiB
0.1.5 latest source/ R- soilFlux_0.1.5.tar.gz 3.3 MiB
0.1.5 2026-04-26 source/ R- soilFlux_0.1.5.tar.gz 3.3 MiB
0.1.5 2026-04-23 source/ R- soilFlux_0.1.5.tar.gz 3.3 MiB
0.1.5 2026-04-09 windows/windows R-4.5 soilFlux_0.1.5.zip 3.5 MiB

Dependencies (latest)

Imports

Suggests