diff --git a/tutorial_01_struphy_simulations.ipynb b/tutorial_01_struphy_simulations.ipynb index bbcf138..90af859 100644 --- a/tutorial_01_struphy_simulations.ipynb +++ b/tutorial_01_struphy_simulations.ipynb @@ -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:" ] }, { @@ -105,7 +123,7 @@ "metadata": {}, "outputs": [], "source": [ - "model" + "print(model)" ] }, { @@ -240,7 +258,7 @@ "outputs": [], "source": [ "e_field = sim.spline_values.em_fields.e_field_log\n", - "e_field" + "print(e_field)" ] }, { diff --git a/tutorial_02_parameter_files.ipynb b/tutorial_02_parameter_files.ipynb index 647191a..abd5b4d 100644 --- a/tutorial_02_parameter_files.ipynb +++ b/tutorial_02_parameter_files.ipynb @@ -428,7 +428,7 @@ "metadata": {}, "outputs": [], "source": [ - "sim.orbits" + "print(sim.orbits)" ] }, { diff --git a/tutorial_05_vlasov_maxwell.ipynb b/tutorial_05_vlasov_maxwell.ipynb index dc7758c..aa7d6e8 100644 --- a/tutorial_05_vlasov_maxwell.ipynb +++ b/tutorial_05_vlasov_maxwell.ipynb @@ -84,7 +84,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "3. Model instance and species properties:" + "3. Model instance, info and species properties:" ] }, { @@ -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)" ] }, @@ -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)" ] }, { diff --git a/tutorial_06_mapped_domains.ipynb b/tutorial_06_mapped_domains.ipynb index 0bfa6a7..b55a852 100644 --- a/tutorial_06_mapped_domains.ipynb +++ b/tutorial_06_mapped_domains.ipynb @@ -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": {}, @@ -255,6 +271,15 @@ "domain.show()" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "domain.show_3d()" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -407,7 +432,7 @@ ], "metadata": { "kernelspec": { - "display_name": "env (3.12.3)", + "display_name": ".venv", "language": "python", "name": "python3" }, @@ -421,7 +446,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.3" + "version": "3.13.3" } }, "nbformat": 4,