OpenDrift / opendrift

Open source framework for ocean trajectory modelling
https://opendrift.github.io
GNU General Public License v2.0
247 stars 120 forks source link

Deactivation of objects if sinked #1186

Closed shahbazbaig closed 6 months ago

shahbazbaig commented 11 months ago

I am trying to run simulation for Object_type 73 which is about containers drifting based upon currents and wind components with Leeway model. I explored different config settings both for environment and processes but have not found how to handle if the containers have been sunk into water after couple of days to perform Search and Rescue based operations.

If there are already such settings implemented please confirm.

knutfrode commented 11 months ago

Hi, There is no sinking in the Leeway model. Objects drift on the surface until they eventually hit land, where they become deactivated/stranded.

shahbazbaig commented 11 months ago

Hi, So do you know any model which can consider the sinking of model?

Thanks,

Shahbaz Baig

On Wed, Nov 8, 2023 at 2:11 PM Knut-Frode Dagestad @.***> wrote:

Hi, There is no sinking in the Leeway model. Objects drift on the surface until they eventually hit land, where they become deactivated/stranded.

— Reply to this email directly, view it on GitHub https://github.com/OpenDrift/opendrift/issues/1186#issuecomment-1801377756, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4IGSUJQ4L2QJYFVO6GGRDYDNEDZAVCNFSM6AAAAAA7CCAWTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBRGM3TONZVGY . You are receiving this because you authored the thread.Message ID: @.***>

knutfrode commented 11 months ago

I believe no implementations of the Leeway S&R model contain sinking. And I am not familiar with other S&R drift models other than Leeway. But most other OpenDrift modules contain sinking (or rising) as well as vertical advection and mixing. It should also not be difficult to incorporate sinking feature in Leeway, but then one must somehow decide when and how often objects shall start sinking, and how fast.

shahbazbaig commented 11 months ago

I just want to add time that after a certain period there are possibilities that container can be sink, just like it will sink in couple of hours if it has been damaged while falling from vessel or days if not properly sealed.

Can you share your idea how we can incorporate it into leeway model if you have understanding of Leeway implementation in OpenDrift?

On Thu, Nov 9, 2023 at 9:34 PM Knut-Frode Dagestad @.***> wrote:

I believe no implementations of the Leeway S&R model contain sinking. And I am not familiar with other S&R drift models other than Leeway. But most other OpenDrift modules contain sinking (or rising) as well as vertical advection and mixing. It should also not be difficult to incorporate sinking feature in Leeway, but then one must somehow decide when and how often objects shall start sinking, and how fast.

— Reply to this email directly, view it on GitHub https://github.com/OpenDrift/opendrift/issues/1186#issuecomment-1804167383, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4IGSX66XHQRABL62GYBYDYDUA3BAVCNFSM6AAAAAA7CCAWTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBUGE3DOMZYGM . You are receiving this because you authored the thread.Message ID: @.***>

knutfrode commented 10 months ago

This should be done in the update method of the relevant module. I.e. here if you want to modify the Leeway model: https://github.com/OpenDrift/opendrift/blob/master/opendrift/models/leeway.py#L356

There you could add some logics, and e.g. deactivate particles that should be sinking with self.deactivate_elements(<condition for sinking>, reason='sinking')

This would mean immediate deactivation at the location where sinking started. If you would like to include the horizontal motion during sinking, you would need to build a model from scratch, as Leeway model is considering surface currents only. However, horizontal motion during sinking should probably be negligible, as scales of ocean depth is much smaller than horizontal scales.