Compare commits

..

2 Commits

Author SHA1 Message Date
Nexan f083f69414
More Notes
updated formula notepad regarding pH adjustment after alkalinity increasing
2026-07-16 22:23:50 -05:00
Nexan 4ce5f13b66
added gitignore
Generated by Fork
2026-07-16 22:23:15 -05:00
2 changed files with 87 additions and 0 deletions

66
.gitignore vendored 100644
View File

@ -0,0 +1,66 @@
### Python
# Byte-compiled files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
build/
dist/
*.egg-info/
*.egg
# dotenv environment variable files
.env
# Virtual environments
.venv
env/
venv/
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.pytest_cache/
# Type checkers
.mypy_cache/
# Jupyter Notebook
.ipynb_checkpoints
# pyenv
# .python-version
### Windows
# Windows thumbnail cache files
Thumbs.db
# Folder config file
[Dd]esktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows shortcuts
*.lnk
### VS Code
# VSCode settings (keep shared configuration)
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
# Local History for Visual Studio Code
.history/
# Built Visual Studio Code Extensions
*.vsix

View File

@ -15,6 +15,27 @@ Target CYG (saltwater) = Current FC / 0.05
## Alkalinity Raising ## Alkalinity Raising
Pounds of Sodium Bicarbonate (BP100) = [Desired TA Increase (ppm) * 1.4] / (Pool Gallons / 10,000) Pounds of Sodium Bicarbonate (BP100) = [Desired TA Increase (ppm) * 1.4] / (Pool Gallons / 10,000)
## Lowering pH (or readjusting pH after raising alkalinity)
3 options: Muriatic Acid, Acid Blue, Sodium Bisulfate/Lo N Slo
### 31.45% Muriatic Acid
Fluid Ounces of Muriatic = [10 fl oz * (Desired pH Drop / 0.2)] / (10,000 / pool gallons)
### Acid Blue
Fluid Ounces of Acid Blue = [10 fl oz * (Desired pH Drop / 0.2)] / (10,000 / pool gallons)
### Dry Acid or Lo N Slo
Ounces (by Weight) of Dry Acid = [13 oz * (Desired pH Drop / 0.2)] / (10,000 / pool gallons)
## Increase pH
Ounces (by weight) of Soda Ash (Balace Pak 200) = [6oz * (Desired pH Rise / 0.2)] / (10,000 / pool gallons)
## Adjusting pH Down after raising Alkalinity
Gemini says this should be done with a Matrix or Dynamic Algorithm, and the Algorithm sounds like the best option. However, instead of a "dynamic algorithm" like Gemini probably intended, I think several formulas might work fine.
Simply put, we first check the input Total Alkalinity (as provided by ALEX), and see whether it's above, below, or inside the target range. If the input is below, we would run the formula to determine how much Alk. Increaser is needed to reach the target range, preferably as close to the middle as possible, and "log" that number, which is our new TA.
Next, we need to figure out how to adjust for pH. We start with a simple formula:
Base Dose (fl oz) = [Pool Gallons / 10,000] * ([Current pH - Target pH]/ 0.2) * 10
## TA Lowering ## TA Lowering