Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
c05688e
Update README.md
TheWinterCoderDev Nov 22, 2026
cfbf45e
chore: add development and testing dependencies
TheWinterCoderDev Nov 22, 2026
0cdfae4
Create consolidation_1d.py
TheWinterCoderDev Nov 22, 2026
888d98e
Create __init__.py
TheWinterCoderDev Nov 22, 2026
6c5f9a1
Create __init__.py
TheWinterCoderDev Nov 22, 2026
78f9d83
Add Terzaghi 1D Consolidation Isochrone Generator
TheWinterCoderDev Nov 22, 2026
9964c7e
Add .gitignore for Python and IDE files
TheWinterCoderDev Nov 22, 2026
4281b1a
fix: correct Python dependency requirements
TheWinterCoderDev Nov 24, 2026
ec1bd62
Create conftest.py for pytest configuration
TheWinterCoderDev Nov 24, 2026
4ebfa70
Add unit tests for 1D consolidation solver
TheWinterCoderDev Nov 24, 2026
e2f6afd
Create python-ci.yml
TheWinterCoderDev Nov 24, 2026
3b2c249
Revise README for clarity and organization
TheWinterCoderDev Nov 24, 2026
0cabb1e
Update toolbox title in README
TheWinterCoderDev Nov 24, 2026
d6e2d5c
Update CI badge link in README.md
TheWinterCoderDev Nov 24, 2026
6a2f3ed
Add documentation for Terzaghi 1D consolidation module
TheWinterCoderDev Nov 24, 2026
1b40b50
Create CHANGELOG.md
TheWinterCoderDev Nov 24, 2026
d85f4f8
Create CONTRIBUTING.md with contribution guidelines
TheWinterCoderDev Nov 24, 2026
61ceda8
Create SECURITY.md for security policy and guidelines
TheWinterCoderDev Nov 24, 2026
fa8b89e
Add test_reference_pressure_value function
TheWinterCoderDev Nov 24, 2026
5ad3690
Update release date for version 0.1.0
TheWinterCoderDev Nov 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

name: Python CI

on:
push:
branches:
- main
- 'refactor/**'
- 'release/**'

pull_request:
branches:
- main

workflow_dispatch:

permissions:
contents: read

jobs:
numerical-validation:
name: Terzaghi 1D Consolidation Tests
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.13'

- name: Install dependencies
run: |
python -m pip install -r requirements-dev.txt

- name: Run tests
run: |
python -m pytest tests/ -v
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

# Python bytecode
__pycache__/
*.py[cod]

# Virtual environments
.venv/
venv/

# Python testing
.pytest_cache/
.coverage
htmlcov/

# Generated output files
outputs/

# IDE files
.vscode/
.idea/

# OS files
.DS_Store
Thumbs.db
69 changes: 69 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@

# Changelog

All notable changes to Civil Engineering Toolbox
will be documented in this file.

This project follows Semantic Versioning principles.

## [0.1.0] - 2026-11-24

### Added

- Initial modular Python package architecture.
- Geotechnical Engineering module.
- Terzaghi one-dimensional consolidation solver.
- Fourier-series approximation of normalized
excess porewater pressure.
- Input validation and numerical error handling.
- NumPy-based vectorized calculations.
- Reproducible consolidation isochrone generator.
- Eight automated unit tests using pytest.
- Continuous integration with GitHub Actions.
- Scientific documentation for the consolidation model.
- Development dependency configuration.

### Changed

- Updated project identity to Civil Engineering Toolbox.
- Redesigned README around a multidisciplinary vision.
- Separated numerical calculations from visualization.
- Improved code organization and maintainability.
- Introduced consistent naming conventions.

### Preserved

- Original academic consolidation implementation.
- Original project history and engineering objectives.

### Known Limitations

- Only the geotechnical consolidation module is available.
- Fourier-series convergence depends on the number
of retained terms.
- No comprehensive numerical error assessment.
- No advanced constitutive soil models.
- Not certified for safety-critical engineering use.

## Planned Development

### v0.2.0 — Geotechnical Utilities

Potential additions:

- Average degree of consolidation.
- Physical time conversion.
- Settlement calculations.
- Additional numerical validation.

### Future Modules

- Structural Engineering.
- Transportation Engineering.
- Hydraulics and Hydrology.
- Geospatial Engineering.
- Engineering Data Analytics.
- Computational Automation.

Development priorities may change according to
technical validation and community contributions.
179 changes: 179 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@

# Contributing to Civil Engineering Toolbox

Thank you for your interest in contributing!

Civil Engineering Toolbox is an open-source initiative
dedicated to developing accessible computational
tools for civil engineers, researchers and students.

Contributions from the international engineering
community are welcome.

## 1. Ways to Contribute

You can help by:

- Developing new engineering algorithms.
- Reporting bugs and numerical inaccuracies.
- Improving existing functions.
- Writing technical documentation.
- Adding reproducible engineering examples.
- Expanding automated test coverage.
- Reviewing engineering assumptions and calculations.

## 2. Engineering Disciplines

Contributions may cover:

- Geotechnical Engineering.
- Structural Engineering.
- Transportation Engineering.
- Hydraulics and Hydrology.
- Geospatial Engineering.
- Engineering Data Analytics.
- Computational and Numerical Methods.

New disciplines may be introduced when justified
by the scope and maturity of the project.

## 3. Before Contributing

Please check existing Issues and Pull Requests.

For substantial features, open a GitHub Issue
describing the proposed functionality before
starting development.

Your proposal should explain:

1. Engineering problem being addressed.
2. Intended users and applications.
3. Mathematical or physical formulation.
4. Required inputs and expected outputs.
5. Relevant engineering references.
6. Proposed validation methodology.

## 4. Development Workflow

1. Fork the repository.
2. Create a descriptive feature branch.
3. Implement your changes.
4. Add or update unit tests.
5. Document assumptions and limitations.
6. Run the test suite locally.
7. Submit a Pull Request.

Example branch names:

- feat/structural-beam-analysis
- feat/geotechnical-settlement
- fix/consolidation-validation
- docs/hydraulic-methods

## 5. Code Quality

Python contributions should follow PEP 8
where practical.

Functions should include:

- Descriptive names.
- Type annotations where appropriate.
- Clear docstrings.
- Defined input and output units.
- Meaningful exceptions.
- Reproducible examples.

Avoid unnecessary dependencies.

## 6. Engineering Validation

Every new engineering algorithm should include:

- Mathematical or physical assumptions.
- Governing equations.
- References to established sources.
- Valid input domains.
- Numerical limitations.
- Automated tests.
- Independent reference comparisons
whenever practical.

A successful test run does not automatically
establish engineering validity.

## 7. Testing

Install the development dependencies:

```bash
python -m pip install -r requirements-dev.txt
```

Run the test suite:

```bash
python -m pytest -v
```

All existing tests should pass before submitting
a Pull Request.

## 8. Documentation

Scientific modules should include documentation
covering:

- Engineering background.
- Mathematical formulation.
- Model assumptions.
- Units and parameter definitions.
- Usage examples.
- Numerical verification.
- Known limitations.
- Engineering references.

## 9. Licensing and Intellectual Property

Contributions must be compatible with the
GNU General Public License v3.0.

Contributors must have the right to submit
their code and supporting materials.

Do not submit proprietary source code,
confidential engineering information,
restricted datasets or third-party materials
without appropriate authorization.

## 10. Community Standards

Please communicate respectfully and constructively.

Technical disagreements should focus on evidence,
engineering reasoning and reproducible results.

Harassment, discrimination and personal attacks
are not acceptable.

## 11. Pull Request Checklist

- [ ] My contribution addresses a defined problem.
- [ ] I have documented engineering assumptions.
- [ ] I have added or updated tests.
- [ ] All tests pass locally.
- [ ] I have updated relevant documentation.
- [ ] I have reviewed license compatibility.
- [ ] I have not included confidential information.

Thank you for helping make engineering knowledge
more accessible.

---

Civil Engineering Toolbox

Engineering knowledge should be shared.

Ad Victoriam!
Loading