-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bettina-ayse #221
base: master
Are you sure you want to change the base?
Bettina-ayse #221
Conversation
Hi, I would like to do some simulations. How did you imagine the example simulations there is probably a lack of comparative data for growth, as I don't have any available at the moment. |
test data are provided in the benchmark folder (https://github.com/pymanga/pyMANGA/pull/221/files) |
So, I have tested the "SoilWaterContent_CI.xml", "SoilWaterContent.xml" and "test_Benchmarks_CI.py" on Windows, and they work without any problems. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks 👍 Although I did not understand everything at the first attempt. Can we chat about it later today?
TreeModelLib/GrowthAndDeathDynamics/SimpleBettina/SimpleBettina.py
Outdated
Show resolved
Hide resolved
TreeModelLib/BelowgroundCompetition/SoilWaterContent/__init__.py
Outdated
Show resolved
Hide resolved
TreeModelLib/BelowgroundCompetition/SoilWaterContent/SoilWaterContent.py
Outdated
Show resolved
Hide resolved
TreeModelLib/BelowgroundCompetition/SoilWaterContent/SoilWaterContent.py
Outdated
Show resolved
Hide resolved
TreeModelLib/BelowgroundCompetition/SoilWaterContent/SoilWaterContent.py
Outdated
Show resolved
Hide resolved
TreeModelLib/BelowgroundCompetition/SoilWaterContent/SoilWaterContent.py
Outdated
Show resolved
Hide resolved
TreeModelLib/BelowgroundCompetition/SoilWaterContent/SoilWaterContent.py
Outdated
Show resolved
Hide resolved
TreeModelLib/BelowgroundCompetition/SoilWaterContent/SoilWaterContent.py
Outdated
Show resolved
Hide resolved
TreeModelLib/BelowgroundCompetition/SoilWaterContent/SoilWaterContent.py
Outdated
Show resolved
Hide resolved
TreeModelLib/BelowgroundCompetition/SoilWaterContent/SoilWaterContent.py
Outdated
Show resolved
Hide resolved
TreeModelLib/BelowgroundCompetition/SoilWaterContent/SoilWaterContent.py
Outdated
Show resolved
Hide resolved
@ChrisWudel Thank you for running the model! |
Documentation added. YAPF used. |
Benchmarks/ModuleBenchmarks/BelowgroundCompetition/OGSLargeScale3D/python_script.py
Outdated
Show resolved
Hide resolved
TreeModelLib/BelowgroundCompetition/SoilWaterContent/SoilWaterContent.py
Outdated
Show resolved
Hide resolved
## Measure for pore-size distribution | ||
self._n = float(args.find("n").text) | ||
## Suction pressure [hPa] | ||
self._psi_matrix = float(args.find("psi_matrix").text) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far, we always changed everything to SI also if this differs from the ODD, see for example SimpleBettina.
I would prefer to do everything is SI units to be consistent.
TreeModelLib/BelowgroundCompetition/SoilWaterContent/SoilWaterContent.py
Outdated
Show resolved
Hide resolved
TreeModelLib/GrowthAndDeathDynamics/Mortality/RandomGrowth/RandomGrowth.py
Outdated
Show resolved
Hide resolved
b6ff824
to
c307d98
Compare
...aProject/tree_dynamics/belowground_competition/SoilWaterContent/soil_properties/s_omega_r.md
Outdated
Show resolved
Hide resolved
...aProject/tree_dynamics/belowground_competition/SoilWaterContent/soil_properties/s_omega_s.md
Outdated
Show resolved
Hide resolved
## Maximal soil water content [m**3] | ||
self._max_soil_water_content = ( | ||
self._omega_r + (self._omega_s - self._omega_r) / (( | ||
1 + (-self._alpha * self._psi_matrix / 100)**self._n)**( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why "/100"?
exponent = 1 / (1 - 1 / self._n) | ||
self._psi_matrix = - ( | ||
base ** exponent - 1) ** (1 / self._n) / self._alpha | ||
self._psi_matrix[np.where(self._psi_matrix < -7860000)] = -7860000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment Janosch: Theoretical value representing very low water content (expon. pF-curve returns infinite big value)
70ae2a0
to
eb0f706
Compare
Co-authored-by: mcwimm <48250781+mcwimm@users.noreply.github.com>
Co-authored-by: mcwimm <48250781+mcwimm@users.noreply.github.com>
This PR contains a first implementation of the soil water content modification for bettina called BETTINA-AYSE. For details see ODD protocol by heinermann/janosch.
Benchmark files are provided.
Tasks