VictorOnink / Lagrangian-Transport-Scenarios

The Lagrangian Transport Scenarios (LTS) framework runs, analyzes and visualizes oceanic Lagrangian particle simulations.
6 stars 1 forks source link

About advective Data #1

Open DENGGUANY opened 2 years ago

DENGGUANY commented 2 years ago

Hello, may I ask if other data sources can be used for advective data, such as the flow field output results of delft 3d simulation.

VictorOnink commented 2 years ago

The code currently is not set up for flow fields from e.g. Delft3D, but in principle parcels (the underlying package for the Lagrangian simulations) is able to handle simulations on such flow fields and so the LTS should be adaptable to handle Delft3D fields. However, I don't know enough about the format of the Delft3D data to be able to judge how easily LTS would be modified to utilise this data.

VeckoTheGecko commented 2 years ago

You can export mesh C-grids for Delft3D flow simulations as NetCDF files by specifying keyword FlNcdf (note the lowercase L) with value #map his# in the "Additional parameters" tab (see appendix at page 436/725 of the Delft3D-FLOW manual. Particularly Table A.6 on page 440).

After running the simulations and creating the NetCDF files, you can load them into parcels which can take NetCDF input. Unfortunately the output and input format of FLOW and parcels aren't the same, so you'll need to wrangle the data into the same format.

DENGGUANY commented 2 years ago

Thank you very much for your replies, yes, I found that BlueCloud can be used for 2d simulation in the scene, so is it possible to use this model to realize a two-dimensional simulation of a large lake that only considers the flow field and does not consider other factors such as wind?

VictorOnink commented 2 years ago

In principle, yes. The readme file explains it in a bit more detail, but basically you would need to add a new advection scenario corresponding to your lake circulation data and then a new model scenario that includes all the physical parameters/processes you're interested in, and then you should largely be ready to go. One thing you do need to be cautious about is whether your flow data is on an A or C grid, as currently all the code is written assuming A-grid flow fields. In theory there is no reason why it shouldn't work with C grids, but this could be a more involved process to adapt the framework for this (see "Creating a new advection scenario" in the readme file).

Let me know if you run into any issues, and I'll do my best to help out.