Skip to content

Commit

Permalink
rename slides to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
levuvietphong committed Nov 11, 2024
1 parent f62004d commit 79b7079
Show file tree
Hide file tree
Showing 59 changed files with 600 additions and 403 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ observations.csv
2-transport/results/
3-submesh/results/

slides/slides*bk*.Rmd
slides/imgs/R/
docs/slides*bk*.Rmd
docs/imgs/R/
package*
notebooks/.ipynb_checkpoints/
node_modules/
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ This tutorial offers a hands-on experience in setting up and running transport s

### 1. Learning Objectives :dart:
By the end of this workshop, participants will be able to:
* Understand key concepts of the [transport process kernel (PK)](https://github.com/amanzi/ats/tree/master/src/pk_transport) in Amanzi-ATS;
* Develop workflows that couple transport PK with [hydrology PK](https://amanzi.github.io/ats/stable/input_spec/process_kernels/physical/flow.html).
* Understand the basics of the [transport process kernel (PK)](https://github.com/amanzi/ats/tree/master/src/pk_transport) in Amanzi-ATS;
* Develop workflows that couple transport PK with [hydrology PK](https://amanzi.github.io/ats/stable/input_spec/process_kernels/physical/flow.html);
* Visualize and analyze Amanzi-ATS model outputs.

---

Expand All @@ -20,9 +21,9 @@ To get the most out of this tutorial, participants should have:

---
### 3. Setup Instructions :wrench:
The slides for the tutorial can be found [here](./slides/slides.html).
The slides for the tutorial can be found [here](https://amanzi.github.io/ats-hands-on-transport/slides.html).

The tutorial will be conducted in a `docker` container. The container includes the `terminal`, `text editor`, `ats`, `python`, `jupyter notebook`, and other dependencies. The `text editor` is customized to better work with the `ats` input files in `xml` format. Follow the steps below to set up the environment.
The tutorial will be run in a `docker` container. The container includes the `terminal`, `text editor`, `ats`, `python`, `jupyter notebook`, and other dependencies. The `text editor` is customized to better work with the `ats` input files in `xml` format. Follow the steps below to set up the environment.
1. **Pull the `docker` image:**
Make sure to pull the Docker container for this tutorial:
```bash
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
158 changes: 128 additions & 30 deletions slides/slides.Rmd → docs/slides.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,38 @@ output:

<br>

--
- Understand the basics of .content-box-purple[`transport PK`]

--
- Understand the basics of the .content-box-purple[`transport PK`]
- Build simple to advanced transport models with .content-box-yellow[`Amanzi-ATS`]
- .content-box-red[Visualize and analyze] `Amanzi-ATS` model outputs

--
- .content-box-red[Visualize and analyze] ATS model outputs
---

# Website

<br>

**Github `r fontawesome::fa("github")`:**

[`https://github.com/amanzi/ats-hands-on-transport`](https://github.com/amanzi/ats-hands-on-transport)

<br>

**Slides for tutorial:**

[`https://amanzi.github.io/ats-hands-on-transport/slides.html`](https://amanzi.github.io/ats-hands-on-transport/slides.html)

<br>

.font70[
**Other `Amanzi-ATS` resources:**
- Documentation: [`https://amanzi.github.io/ats/stable/`](https://amanzi.github.io/ats/stable/)
- Short course: [`https://github.com/amanzi/ats-short-course`](https://github.com/amanzi/ats-short-course)
- Regression tests: [`https://github.com/amanzi/ats-regression-tests`](https://github.com/amanzi/ats-regression-tests)
- Demos: [`https://github.com/amanzi/ats-demos`](https://github.com/amanzi/ats-demos)
]

---

# Setting up environment

<br>
Expand All @@ -49,9 +71,22 @@ docker pull --platform linux/amd64 metsi/ideas-watersheds-all-hands-2024:v0
- Run the `docker` container to start the `JupyterLab` server

```{bash, eval=FALSE}
docker run --rm -it -p 8888:8888 metsi/ideas-watersheds-all-hands-2024:v0
docker run -p 8888:8888 metsi/ideas-watersheds-all-hands-2024:v0
```

---
# VSCode and Dev Containers

<br>

### If you prefer VSCode/Cursor editors, use the extensions:
- .content-box-green[`Dev Containers`] to connect to the container and edit files (e.g., `XML`).
- .font90[Convenient for data transfer between `host` and `container`]

<br>

- .content-box-purple[`jupyter`] to edit/run notebooks inside the container with VSCode.

---
class: phong-dark
# .brand-orange[Integrated hydrology model]
Expand Down Expand Up @@ -91,6 +126,87 @@ $$ \frac{\partial \Theta_g}{\partial t} + \nabla \cdot \vec{\mathbf{q}_g} = Q_g$
]

.footnote[```Molins et al. (2022)```]

---
# Steps to Construct a Model
.pull-left-21[
.font90[
- **.brand-blue[Simulation domains]** `r fontawesome::fa("map")`
- Where the processes happen

- **.brand-blue[Dependency graph]** `r fontawesome::fa("network-wired")`
- Which `PKs` to use and how they are coupled


- **.brand-blue[Model parameters]** `r fontawesome::fa("cog")`
- Physical and numerical properties

- **.brand-blue[Initial and boundary conditions]** `r fontawesome::fa("object-ungroup")` `r fontawesome::fa("clock")`
- State of the system at $t=0$
- How system behaves at the boundaries at $t>0$

- **.brand-blue[Forcing, sources and sinks]** `r fontawesome::fa("cloud-sun-rain")`
- External forces that drive changes in the system
- Material or energy added/removed to/from the system
]]

--

<br>

.pull-right-12[
.small[
```xml
<ParameterList name="cycle driver">
<Parameter name="end cycle" type="int" value="10000" />
<Parameter name="start time" type="double" value=" 0" />
<Parameter name="start time units" type="string" value="s" />
<Parameter name="end time" type="double" value="86400" />
<Parameter name="end time units" type="string" value="s" />
<ParameterList name="PK tree">
<ParameterList name="flow coupler">
<Parameter name="PK type" type="string" value="coupled water" />
<ParameterList name="flow">
<Parameter name="PK type" type="string" value="richards flow" />
</ParameterList>
<ParameterList name="overland flow">
<Parameter name="PK type" type="string" value="overland flow, pressure basis" />
</ParameterList>
</ParameterList>
</ParameterList>
</ParameterList>
```
]]

---

# Dependency Graph - Integrated Hydrology

.pull-left-21[
<iframe src="imgs/dependency.html" width="800" height="600" frameborder="0"></iframe>
]

--

.pull-right-12[
<br> <br>

.font70[
```xml
<ParameterList name="PK tree">
<ParameterList name="flow coupler">
<Parameter name="PK type" type="string" value="coupled water" />
<ParameterList name="flow">
<Parameter name="PK type" type="string" value="richards flow" />
</ParameterList>
<ParameterList name="overland flow">
<Parameter name="PK type" type="string" value="overland flow, pressure basis" />
</ParameterList>
</ParameterList>
</ParameterList>
```
]]

---

# Domain of simulation
Expand Down Expand Up @@ -132,33 +248,15 @@ $\Delta$z = [0.1, 0.1, 0.1, 0.2, 0.2, 0.4, 0.4]
.font60[.footnote[<a href="imgs/domain.html" target="_blank">```domain of simulation```</a>]]

---

# Dependency Graph - Integrated Hydrology

# Simulation Time
.pull-left-21[
<iframe src="imgs/dependency.html" width="800" height="600" frameborder="0"></iframe>
- 24 hours
]

--

.pull-right-12[
<br> <br>
---
class: phong-dark
# .brand-orange[Transport hands-on]

.font70[
```xml
<ParameterList name="PK tree">
<ParameterList name="flow coupler">
<Parameter name="PK type" type="string" value="coupled water" />
<ParameterList name="flow">
<Parameter name="PK type" type="string" value="richards flow" />
</ParameterList>
<ParameterList name="overland flow">
<Parameter name="PK type" type="string" value="overland flow, pressure basis" />
</ParameterList>
</ParameterList>
</ParameterList>
```
]]
---

# Transport
Expand Down
Loading

0 comments on commit 79b7079

Please sign in to comment.