v0.0.2 Released

Geotechnical equations,
solved in Python.

GeoEq is an open-source Python library that brings validated geotechnical formulas into one clean, consistent, and well-documented package.

$ pip install geoeq
16
Functions
43
Tests
0
Dependencies
MIT
License
3.9+
Python

Built for geotechnical engineers.

Every function validates inputs, documents units, references its source method, and returns clear results. No hidden surprises.

Validated inputs

Every function checks for physically impossible values and raises clear errors before computing. No silent failures.

Documented units

Every docstring states what units are expected and returned. kN/m3, kPa, degrees -- never left to guesswork.

Traceable methods

Every formula references its source textbook or paper. Das, Holtz, Craig -- fully traceable engineering methods.

Zero dependencies

Pure Python standard library. Install it anywhere -- no numpy, no scipy, no heavy packages required.

Grain Size Analysis

Standardized sieve (ASTM/BS/IS) and hydrometer (ASTM D7928) modules with professional plotting.

Tested formulas

Verified against geotechnical textbooks (Das, Holtz) with high-resolution smooth plotting.

Publication Ready

Generate high-resolution PNG/SVG/PDF plots with automated $D_{10}$, $C_u$, and $C_c$ markers.

Up and running in seconds.

Install from PyPI and start computing soil properties immediately. No configuration, no setup files, no boilerplate.

v0.0.4 includes professional **Particle Size Distribution** analysis (Sieve & Hydrometer) with automated smooth curves and parameter extraction.

example.py
import geoeq as sp
 
# 1. Sieve Analysis
res = sp.sieve_ana(opening=["#4", "#200"], mass_retained=[10, 85])
 
# 2. Extract D10, Cu, Cc parameters
d10 = sp.grain_d10(res)
cu  = sp.grain_Cu(res)
 
# 3. Professional Academic Plotting
sp.grain_size_plot(res, smooth=True, save_as="plot.png")
 
print(f"Uniformity Coefficient (Cu): {cu:.2f}")

Growing into a full engineering toolkit.

GeoEq starts with fundamentals and expands into advanced geotechnical methods. Here is what is planned.

v0.0.4 -- current

Grain Size Analysis

Sieve & Hydrometer suite, professional academic plotting, and parameter extraction.

v0.1.x

Stress & Seepage

Effective stress, pore pressure, hydraulic gradient, quick condition.

v0.2.x

Foundations

Bearing capacity, settlement, Schmertmann method, eccentric loading.

v0.3.x

Site Investigation

SPT/CPT correlations, USCS classification, soil profile objects.

v0.4.x

Earth Pressure

Rankine, Coulomb, retaining wall stability, consolidation.

v0.5.x

Advanced Methods

Pile capacity, slope stability, liquefaction, seismic assessment.

Help shape the future of geotechnical computing.

GeoEq is an open-source project built to make geotechnical calculations clean, consistent, and accessible. Engineers, students, and researchers are invited to collaborate -- add methods, write tests, improve docs, or share feedback.