Skip to content
Merged
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
24 changes: 21 additions & 3 deletions tutorial_01_struphy_simulations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,30 @@
"model = models.Maxwell()"
]
},
{
"cell_type": "markdown",
"id": "ad09507e",
"metadata": {},
"source": [
"We can print the info of the model to see the governing equations and the physical meaning of the variables:"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "5691f2a3",
"metadata": {},
"outputs": [],
"source": [
"model.info()"
]
},
{
"cell_type": "markdown",
"id": "eec07912",
"metadata": {},
"source": [
"We opt for solving Maxwell's equations and feed the light-weight model instance into a simulation:"
"We now feed the light-weight model instance into a simulation:"
]
},
{
Expand Down Expand Up @@ -105,7 +123,7 @@
"metadata": {},
"outputs": [],
"source": [
"model"
"print(model)"
]
},
{
Expand Down Expand Up @@ -240,7 +258,7 @@
"outputs": [],
"source": [
"e_field = sim.spline_values.em_fields.e_field_log\n",
"e_field"
"print(e_field)"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tutorial_02_parameter_files.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@
"metadata": {},
"outputs": [],
"source": [
"sim.orbits"
"print(sim.orbits)"
]
},
{
Expand Down
14 changes: 11 additions & 3 deletions tutorial_05_vlasov_maxwell.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"3. Model instance and species properties:"
"3. Model instance, info and species properties:"
]
},
{
Expand All @@ -94,7 +94,15 @@
"outputs": [],
"source": [
"model = VlasovAmpereOneSpecies()\n",
"\n",
"model.info()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"model.kinetic_ions.set_species_properties(alpha=1.0, epsilon=1.0)"
]
},
Expand Down Expand Up @@ -345,7 +353,7 @@
"# electric field\n",
"e1, e2, e3 = sim.grids_log\n",
"e_field = sim.spline_values.em_fields.e_field_log\n",
"e_field"
"print(e_field)"
]
},
{
Expand Down
29 changes: 27 additions & 2 deletions tutorial_06_mapped_domains.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,22 @@
"domain.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"A 3D view of the domain can be displayed with"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"domain.show_3d()"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -255,6 +271,15 @@
"domain.show()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"domain.show_3d()"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -407,7 +432,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "env (3.12.3)",
"display_name": ".venv",
"language": "python",
"name": "python3"
},
Expand All @@ -421,7 +446,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.3"
"version": "3.13.3"
}
},
"nbformat": 4,
Expand Down