Skip to content

Commit 3101f64

Browse files
modified to activate models from nb (#5)
1 parent 8525efa commit 3101f64

144 files changed

Lines changed: 3875 additions & 287 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
6.61 KB
Binary file not shown.
Binary file not shown.
6.4 KB
Binary file not shown.
10.2 KB
Binary file not shown.

docs/build/doctrees/index.doctree

-7 Bytes
Binary file not shown.

docs/build/doctrees/nbsphinx/quick_start/example/jupyter_run.ipynb

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Quick start guide to model building and running with SPyice"
7+
"# Model building and running with SPyice for heat-salt transport system"
88
]
99
},
1010
{
1111
"cell_type": "markdown",
1212
"metadata": {},
1313
"source": [
14-
"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. "
14+
"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"
1515
]
1616
},
1717
{
@@ -30,6 +30,7 @@
3030
"import os\n",
3131
"from pathlib import Path\n",
3232
"import matplotlib.pyplot as plt\n",
33+
"from datetime import datetime\n",
3334
"\n",
3435
"%matplotlib inline\n",
3536
"from omegaconf import OmegaConf\n",
@@ -55,6 +56,7 @@
5556
"outputs": [],
5657
"source": [
5758
"# creates a OmegaConf object from a dictionary for fast testing only for parameters: constants, dt, S_IC, iter_max, dz\n",
59+
"# make sure to change userinput_data data class values if any parameters in constants_dict is changed!\n",
5860
"constants_dict = {\n",
5961
" \"constants\": {\"constants\": \"real\"},\n",
6062
" \"dt\": {\"dt\": 47},\n",
@@ -68,6 +70,9 @@
6870
"# choose your output directory\n",
6971
"base_dir = Path.cwd()\n",
7072
"output_base_dir = Path(base_dir, \"output\")\n",
73+
"# Current date-time string\n",
74+
"timestamp = datetime.now().strftime(\"%Y%m%d_%H%M%S\")\n",
75+
"output_base_dir = create_output_directory(output_base_dir, timestamp)\n",
7176
"wo_hydra_dir = Path(output_base_dir, \"without_hydra\")\n",
7277
"out_dir_final = create_output_directory(wo_hydra_dir, config.initial_salinity.S_IC, \"2\", \"0.01\", \"47\", \"1500\", \"example\")"
7378
]
@@ -119,7 +124,17 @@
119124
"outputs": [],
120125
"source": [
121126
"# choose the diffusion only equation for heat diffusion without the influence of salinity and physical properties\n",
122-
"userinput_data.is_diffusiononly_equation = True"
127+
"userinput_data.is_diffusiononly_equation = True\n",
128+
"userinput_data.is_salinity_equation = True"
129+
]
130+
},
131+
{
132+
"cell_type": "code",
133+
"execution_count": null,
134+
"metadata": {},
135+
"outputs": [],
136+
"source": [
137+
"preprocess_data = PreProcess.update_preprocess_dataclass(preprocess_data, userinput_data)"
123138
]
124139
},
125140
{

docs/build/doctrees/nbsphinx/quick_start/example/jupyter_run_algae.ipynb

Lines changed: 498 additions & 0 deletions
Large diffs are not rendered by default.

docs/build/doctrees/nbsphinx/quick_start/example/main_original.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"cell_type": "markdown",
1212
"metadata": {},
1313
"source": [
14-
"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."
14+
"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",
15+
"\n",
16+
"<img src=\"../../images/seaice_withboundary.png\" width=\"250\">"
1517
]
1618
},
1719
{

docs/build/doctrees/nbsphinx/quick_start_example_jupyter_run_11_1.png renamed to docs/build/doctrees/nbsphinx/quick_start_example_jupyter_run_12_1.png

File renamed without changes.
70.2 KB

0 commit comments

Comments
 (0)