Repository navigation
Added Dissolving Particles - #448
Merged
Merged
Conversation
Added DissolvingParticles as a type of active particle. This module can be used to model dissolving OAE feedstock or secondary mineral precipitates.
The docs build expects generated/dissolving_particles.md, but the Buildkite examples step uses its own hardcoded list, so the example was never generated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jagoosw
reviewed
Oct 21, 2026
jagoosw
reviewed
Oct 21, 2026
jagoosw
reviewed
Oct 21, 2026
jagoosw
reviewed
Oct 21, 2026
jagoosw
reviewed
Oct 21, 2026
jagoosw
reviewed
Oct 21, 2026
jagoosw
reviewed
Oct 21, 2026
jagoosw
reviewed
Oct 21, 2026
Edits based on Jago's review
Adds optional required tracers upon which the sinking speed and dissolution rate can depend. E.g. sinking might depend on the water density and dissolution might depend on the saturation state.
Collaborator
Author
|
@jagoosw, I made the changes that you recommended in this review. This includes adding required_tracers so that the sinking speed and the dissolution rate can depend on model fields. Can you have a look at that part to see if it makes sense? |
updating call to sugar kelp test based on upstream change.
Collaborator
Sorry I was away this week, I'll look at it asap! |
jagoosw
reviewed
Nov 24, 2026
jagoosw
reviewed
Nov 24, 2026
jagoosw
reviewed
Nov 24, 2026
Remove the ParticlesWithFields wrapper. The sinking speed is computed by a kernel in update_biogeochemical_state! and stored in the particle field `sinking_speed`, which particle_w_velocity adds to the water velocity. `dissolution_rate`, `sinking_speed`, and StokesSinking's `water_density` and `dynamic_viscosity` are numbers or functions called as f(mineral, particle_fields, tracer_fields). Sinking speeds are positive upwards. Rewrite the docstrings without LaTeX and the example around the defaults, releasing the particles after the turbulence has spun up. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
fetch_output returns x, y, and z along with the particle fields, so the dissolving particles example saves the particles directly. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Save the total scale pH computed by CarbonChemistry from DIC and alkalinity, and show it alongside the alkalinity increase in the animation. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ults Extend the example with calcite whose dissolution rate depends on the calcite saturation, released across a front between undersaturated and nearly saturated water. Measure time from the release and show the particles on the pH panel. Run the docs page code as @example blocks and update it for the function signatures and the sign of the sinking speed. StokesSinking takes its default gravitational acceleration from Oceananigans.defaults, and DissolvingMineral releases only alkalinity by default, as calcium hydroxide does. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Collaborator
|
@johnryantaylor I've extended the example with a case where the dissolution depends on the saturation state and half the domain is under/over saturated. When tests run I'll merge |
jagoosw
approved these changes
Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added DissolvingParticles as a type of active particle. This module can be used to model dissolving OAE feedstock or secondary mineral precipitates.