Commit 70232b9e authored by Sævik Pål Næverlid's avatar Sævik Pål Næverlid
Browse files

Merge branch 'feature/collision_treatment'

parents 92e9f57e 7067b4ae
# Chemicals
The module represents passive particles that have a vertical migration rate due
to upwelling/downwelling and vertical turbulence.
to upwelling/downwelling and vertical turbulence. Also, the module contains
improved land collision treatment to prevent artificial tracer concentration
buildup near shores.
## Usage
......@@ -16,6 +18,7 @@ Common changes applied to `ladim.yaml`:
- Vertical diffusion parameter (`ibm.vertical_mixing`)
- Time step length (`numerics.dt`)
- Output frequency (`output_variables.outper`)
- Land collision treatment (`ibm.land_collision`)
The file `particles.rls` is a tab-delimited text file containing particle
release time and location, as well as particle attributes at the release time.
......@@ -26,6 +29,18 @@ Finally, copy `ladim.yaml` and `particles.rls` to a separate directory and
run `ladim` here.
## Land collision treatment
The standard behaviour of Ladim is that particles crossing the land boundary
are rewinded to the position they had at the beginning of the time step. This
IBM checks if particles have not moved since the previous time step, in which
case they are assumed to have collided with land. Collided particles are
repositioned randomly within the cell where the particles originated.
To use the default Ladim land collision treatment instead, set the config entry
`ibm.land_collisions` to `"freeze"`.
## Output
The simulation result is stored in a file specified by the `files.output_file`
......
......@@ -21,6 +21,7 @@ gridforce:
ibm:
module: ladim_ibm.chemicals
vertical_mixing: 0.0001 # [m*2/s]
land_collision: reposition # Alternatives: 'reposition' (default), 'freeze'
particle_release:
variables: [release_time, X, Y, Z]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment