PiCLES is a fast and efficient wave model for Earth System Models, using Particle-in-Cell methods for better performance. This version was developped to introduce a sequential importance resampling method to swell dynamics in PiCLES.
A brief guide on how to use PiCLES.
You will need Julia version 1.10.0 installed. For this, we recommend using juliaup
- Open a terminal or command prompt.
- Install juliaup using:
curl -fsSL https://install.julialang.org | sh
- Restart your shell or add Juliaup to your PATH if needed.
- Install Julia version 1.10.0:
juliaup add 1.10.0
(Once registered as a Package this will be simpler, sry for the delay)
- Open a terminal or command prompt.
- Clone the PiCLES repository using Git:
git clone https://github.com/tomprotin/PiCLES.git - Navigate into the cloned repository directory:
cd PiCLES
- Start Julia version, 1.10.0 by typing
julia +1.10.0in your terminal within the PiCLES directory where theProject.tomlfile is located. - Activate the project environment:
using Pkg Pkg.activate(".")
- Install the required dependencies:
This may take some time.
Pkg.instantiate()
You are now ready to reproduce the test cases for your simulations.
To run the two test cases from the command line, follow these steps:
- Open a terminal or command prompt.
- Navigate to the PiCLES directory where the
Project.tomlfile is located. - Start Julia by typing
julia +1.10.0in your terminal. - In the Julia REPL, include the
test_case_1.jlfile:include("tests/test_case_1.jl")
- The test will run and save the results in a new repertory at
PiCLES/plots/test_case_1/. - In the Julia REPL, include the
test_case_2.jlfile:include("tests/test_case_2.jl")
- The test will run and save the results in
PiCLES/plots/test_case_2/.