|
| 1 | +## Installing Julia |
| 2 | + |
| 3 | +ClimaAtmos is provided as a Julia package, so it requires having Julia installed. Information about Julia packages is available on the [Julia website](https://julialang.org). |
| 4 | + |
| 5 | +First, download and install Julia by following the instructions at [https://julialang.org/downloads/](https://julialang.org/downloads/). Then, you can launch a Julia REPL by running `$ julia --project` |
| 6 | + |
| 7 | +## Installing ClimaAtmos.jl |
| 8 | + |
| 9 | +ClimaAtmos.jl is a [registered Julia package](https://julialang.org/packages/). To install |
| 10 | + |
| 11 | +```julia |
| 12 | +julia> using Pkg |
| 13 | + |
| 14 | +julia> Pkg.add("ClimaAtmos") |
| 15 | +``` |
| 16 | + |
| 17 | +Alternatively, you can clone the `ClimaAtmos` |
| 18 | +[repository](https://github.com/CliMA/ClimaAtmos.jl) with: |
| 19 | + |
| 20 | +``` |
| 21 | +$ git clone https://github.com/CliMA/ClimaAtmos.jl.git |
| 22 | +``` |
| 23 | +This is useful if you want to keep up with bleeding-edge changes between major releases. |
| 24 | + |
| 25 | +Now change into the `ClimaAtmos.jl` directory with |
| 26 | + |
| 27 | +``` |
| 28 | +$ cd ClimaAtmos.jl |
| 29 | +``` |
| 30 | + |
| 31 | +To use ClimaAtmos, you need to instantiate all dependencies with: |
| 32 | + |
| 33 | +``` |
| 34 | +$ julia --project |
| 35 | +julia> ] |
| 36 | +(ClimaAtmos) pkg> instantiate |
| 37 | +``` |
| 38 | + |
| 39 | +## Some common terminology in ClimaAtmos |
| 40 | +The following terms are frequently used within the source code and between collaborators. Feel free to open a GitHub issue if you come across any other key terms that we've missed here. |
| 41 | +- `Yₜ`: The tendency state vector, where `Yₜ.sfc` components are modified. |
| 42 | +- `Y`: The current state vector. |
| 43 | +- `p`: Cache containing parameters, precomputed fields (radiation fluxes, surface |
| 44 | + conditions, precipitation fluxes), atmospheric model configurations, and |
| 45 | + slab model properties. |
| 46 | +- `t`: Current simulation time. |
| 47 | + |
| 48 | +The state `Y` is not assigned by default. If you want to explore the state variable, you can follow the steps below. Note that all but the last step below are executed by the [driver](https://github.com/CliMA/ClimaAtmos.jl/blob/main/.buildkite/ci_driver.jl). |
| 49 | + |
| 50 | +```Julia |
| 51 | +import ClimaAtmos as CA |
| 52 | +config = CA.AtmosConfig([your_path_to_config_file]) |
| 53 | +simulation = CA.get_simulation(config) |
| 54 | +Y = simulation.integrator.u |
| 55 | +``` |
0 commit comments