Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified docs/build/doctrees/api/spyice.postprocess.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/build/doctrees/api/spyice.preprocess.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/build/doctrees/index.doctree
Binary file not shown.
21 changes: 18 additions & 3 deletions docs/build/doctrees/nbsphinx/quick_start/example/jupyter_run.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Quick start guide to model building and running with SPyice"
"# Model building and running with SPyice for heat-salt transport system"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Demonstrates a simple example for a freezing sea ice model for a simple heat diffusion setup with default settings of initial conditions of 265K at the top boundary and Salinity of 34ppt choosing constant fixed Dirichlet boundary conditions. For the one phase distinct interface system where sea water is at melt temperature of 271.25K. "
"Demonstrates a simple example for a freezing sea ice model heat-salt transport setup with default settings of initial conditions of 265K at the top boundary and Salinity of 34ppt choosing constant fixed Dirichlet boundary conditions. For the one phase distinct interface system where sea water is at melt temperature of 271.25K.\n"
]
},
{
Expand All @@ -30,6 +30,7 @@
"import os\n",
"from pathlib import Path\n",
"import matplotlib.pyplot as plt\n",
"from datetime import datetime\n",
"\n",
"%matplotlib inline\n",
"from omegaconf import OmegaConf\n",
Expand All @@ -55,6 +56,7 @@
"outputs": [],
"source": [
"# creates a OmegaConf object from a dictionary for fast testing only for parameters: constants, dt, S_IC, iter_max, dz\n",
"# make sure to change userinput_data data class values if any parameters in constants_dict is changed!\n",
"constants_dict = {\n",
" \"constants\": {\"constants\": \"real\"},\n",
" \"dt\": {\"dt\": 47},\n",
Expand All @@ -68,6 +70,9 @@
"# choose your output directory\n",
"base_dir = Path.cwd()\n",
"output_base_dir = Path(base_dir, \"output\")\n",
"# Current date-time string\n",
"timestamp = datetime.now().strftime(\"%Y%m%d_%H%M%S\")\n",
"output_base_dir = create_output_directory(output_base_dir, timestamp)\n",
"wo_hydra_dir = Path(output_base_dir, \"without_hydra\")\n",
"out_dir_final = create_output_directory(wo_hydra_dir, config.initial_salinity.S_IC, \"2\", \"0.01\", \"47\", \"1500\", \"example\")"
]
Expand Down Expand Up @@ -119,7 +124,17 @@
"outputs": [],
"source": [
"# choose the diffusion only equation for heat diffusion without the influence of salinity and physical properties\n",
"userinput_data.is_diffusiononly_equation = True"
"userinput_data.is_diffusiononly_equation = True\n",
"userinput_data.is_salinity_equation = True"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"preprocess_data = PreProcess.update_preprocess_dataclass(preprocess_data, userinput_data)"
]
},
{
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The SPyIce package is a software tool that enables 1D finite difference simulation for vertical transport equations. It specifically focuses on thermal diffusion with the influence of salinity and physical properties. The package utilizes the Thomas tridiagonal solver as the solver algorithm. With SPyIce, users can model and analyze the behavior of temperature, salinity, and other relevant variables in a vertical system. It provides a comprehensive framework for studying the thermal diffusion process and its interaction with salinity in various scenarios. Hydra is used to automate the simulation runs of the Sea-Ice Model. It is used to manage and run sea ice simulations, making it easier for users to explore different scenarios and optimize their models."
"The SPyIce package is a software tool that enables 1D finite difference simulation for vertical transport equations. It specifically focuses on thermal diffusion with the influence of salinity and physical properties. The package utilizes the Thomas tridiagonal solver as the solver algorithm. With SPyIce, users can model and analyze the behavior of temperature, salinity, and other relevant variables in a vertical system. It provides a comprehensive framework for studying the thermal diffusion process and its interaction with salinity in various scenarios. Hydra is used to automate the simulation runs of the Sea-Ice Model. It is used to manage and run sea ice simulations, making it easier for users to explore different scenarios and optimize their models.\n",
"\n",
"<img src=\"../../images/seaice_withboundary.png\" width=\"250\">"
]
},
{
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 14 additions & 4 deletions docs/build/doctrees/nbsphinx/user_guide/jupyter_run.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"execution_count": 1,
"metadata": {
"ExecuteTime": {
"end_time": "2026-03-09T13:43:47.963303300Z",
"start_time": "2026-03-09T13:43:46.675432700Z"
}
},
"outputs": [],
"source": [
"import os\n",
Expand All @@ -50,8 +55,13 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"execution_count": 2,
"metadata": {
"ExecuteTime": {
"end_time": "2026-03-09T13:44:11.699164500Z",
"start_time": "2026-03-09T13:44:11.658403900Z"
}
},
"outputs": [],
"source": [
"# creates a OmegaConf object from a dictionary for fast testing only for parameters: constants, dt, S_IC, iter_max, dz\n",
Expand Down
4 changes: 4 additions & 0 deletions docs/build/doctrees/nbsphinx/user_guide/main_original.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"import os\n",
"from pathlib import Path\n",
"import matplotlib.pyplot as plt\n",
"from datetime import datetime\n",
"\n",
"%matplotlib inline\n",
"from omegaconf import OmegaConf\n",
Expand Down Expand Up @@ -74,6 +75,9 @@
"\n",
"base_dir = Path.cwd()\n",
"output_base_dir = Path(base_dir, \"output\")\n",
"# Current date-time string\n",
"timestamp = datetime.now().strftime(\"%Y%m%d_%H%M%S\")\n",
"output_base_dir = Path(output_base_dir, timestamp)\n",
"wo_hydra_dir = Path(output_base_dir, \"without_hydra\")\n",
"out_dir_final = create_output_directory(wo_hydra_dir, config.initial_salinity.S_IC, \"2\", \"0.01\", \"47\", \"1000\", \"example\")"
]
Expand Down
Binary file modified docs/build/doctrees/quick_start/_index.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/build/doctrees/quick_start/example/jupyter_run.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/build/doctrees/quick_start/example/main_original.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/quick_start/installation.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/user_guide/jupyter_run.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/user_guide/main_original.doctree
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/build/html/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@


<li class="nav-item ">
<a class="nav-link nav-internal" href="../quick_start/example/main_original.html">
<a class="nav-link nav-internal" href="../quick_start/example/_index.html">
Examples
</a>
</li>
Expand Down Expand Up @@ -257,7 +257,7 @@


<li class="nav-item ">
<a class="nav-link nav-internal" href="../quick_start/example/main_original.html">
<a class="nav-link nav-internal" href="../quick_start/example/_index.html">
Examples
</a>
</li>
Expand Down
4 changes: 2 additions & 2 deletions docs/build/html/_modules/spyice/models/sea_ice_model.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../quick_start/example/main_original.html">
<a class="nav-link nav-internal" href="../../../quick_start/example/_index.html">
Examples
</a>
</li>
Expand Down Expand Up @@ -257,7 +257,7 @@


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../quick_start/example/main_original.html">
<a class="nav-link nav-internal" href="../../../quick_start/example/_index.html">
Examples
</a>
</li>
Expand Down
4 changes: 2 additions & 2 deletions docs/build/html/_modules/src/spyice/coefficients.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../quick_start/example/main_original.html">
<a class="nav-link nav-internal" href="../../../quick_start/example/_index.html">
Examples
</a>
</li>
Expand Down Expand Up @@ -257,7 +257,7 @@


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../quick_start/example/main_original.html">
<a class="nav-link nav-internal" href="../../../quick_start/example/_index.html">
Examples
</a>
</li>
Expand Down
4 changes: 2 additions & 2 deletions docs/build/html/_modules/src/spyice/main_process.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../quick_start/example/main_original.html">
<a class="nav-link nav-internal" href="../../../quick_start/example/_index.html">
Examples
</a>
</li>
Expand Down Expand Up @@ -257,7 +257,7 @@


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../quick_start/example/main_original.html">
<a class="nav-link nav-internal" href="../../../quick_start/example/_index.html">
Examples
</a>
</li>
Expand Down
4 changes: 2 additions & 2 deletions docs/build/html/_modules/src/spyice/models/sea_ice_model.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../../quick_start/example/main_original.html">
<a class="nav-link nav-internal" href="../../../../quick_start/example/_index.html">
Examples
</a>
</li>
Expand Down Expand Up @@ -257,7 +257,7 @@


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../../quick_start/example/main_original.html">
<a class="nav-link nav-internal" href="../../../../quick_start/example/_index.html">
Examples
</a>
</li>
Expand Down
4 changes: 2 additions & 2 deletions docs/build/html/_modules/src/spyice/parameters/constants.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../../quick_start/example/main_original.html">
<a class="nav-link nav-internal" href="../../../../quick_start/example/_index.html">
Examples
</a>
</li>
Expand Down Expand Up @@ -257,7 +257,7 @@


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../../quick_start/example/main_original.html">
<a class="nav-link nav-internal" href="../../../../quick_start/example/_index.html">
Examples
</a>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../../quick_start/example/main_original.html">
<a class="nav-link nav-internal" href="../../../../quick_start/example/_index.html">
Examples
</a>
</li>
Expand Down Expand Up @@ -257,7 +257,7 @@


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../../quick_start/example/main_original.html">
<a class="nav-link nav-internal" href="../../../../quick_start/example/_index.html">
Examples
</a>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../../quick_start/example/main_original.html">
<a class="nav-link nav-internal" href="../../../../quick_start/example/_index.html">
Examples
</a>
</li>
Expand Down Expand Up @@ -257,7 +257,7 @@


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../../quick_start/example/main_original.html">
<a class="nav-link nav-internal" href="../../../../quick_start/example/_index.html">
Examples
</a>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../../quick_start/example/main_original.html">
<a class="nav-link nav-internal" href="../../../../quick_start/example/_index.html">
Examples
</a>
</li>
Expand Down Expand Up @@ -257,7 +257,7 @@


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../../quick_start/example/main_original.html">
<a class="nav-link nav-internal" href="../../../../quick_start/example/_index.html">
Examples
</a>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../../quick_start/example/main_original.html">
<a class="nav-link nav-internal" href="../../../../quick_start/example/_index.html">
Examples
</a>
</li>
Expand Down Expand Up @@ -257,7 +257,7 @@


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../../quick_start/example/main_original.html">
<a class="nav-link nav-internal" href="../../../../quick_start/example/_index.html">
Examples
</a>
</li>
Expand Down
4 changes: 2 additions & 2 deletions docs/build/html/_modules/src/spyice/postprocess/analysis.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../../quick_start/example/main_original.html">
<a class="nav-link nav-internal" href="../../../../quick_start/example/_index.html">
Examples
</a>
</li>
Expand Down Expand Up @@ -257,7 +257,7 @@


<li class="nav-item ">
<a class="nav-link nav-internal" href="../../../../quick_start/example/main_original.html">
<a class="nav-link nav-internal" href="../../../../quick_start/example/_index.html">
Examples
</a>
</li>
Expand Down
Loading