A framework for ocean simulations built on top of Oceananigans and ClimaOcean.
One of the main contributions to ClimaOcean is providing a streamlined way to set up simulations. A FjordSim simulation is organized around three core components:
-
Bathymetry file Contains the domain coordinates (longitude, latitude, depth) along with the bathymetric data.
-
Forcing file Includes information about sinks and sources (e.g., rivers), boundary conditions, and custom forcings. It can also be used to load initial conditions.
-
Atmospheric data Currently relies on JRA55 from ClimaOcean.
Preparation scripts for the Oslofjord are available in the following repository: https://github.com/NIVANorge/oslofjord-sim
- Clone the git repository
git clone https://github.com/AquaBadgerForge/FjordSim.jl.git. - Move to the downloaded folder
cd FjordSim.jl. - Run Julia REPL and activate the FjordSim environment
julia --project. - Enter the Pkg REPL by pressing
]from Julia REPL. - Type
instantiateto 'resolve' aManifest.tomlfrom aProject.tomlto install and precompile dependency packages.
- Download the grid, forcing, atmospheric forcing.
- In
FjordSim.jl/app/oslofjord.jlit is possible to specify the location of the input data files. By default, the files should be in$HOME/FjordSim_data/oslofjord/and$HOME/FjordSim_data/JRA55/. Also, it is possible to specify the results folder destination. By default, the result will go to$HOME/FjordSim_results/oslofjord/. - Run
julia --project app/oslofjord.jl. This will generate a netcdf result file.
