From 6f623ff27e1eec84c63227ef27c624f4627d9673 Mon Sep 17 00:00:00 2001 From: Niko Savola Date: Thu, 23 May 2024 09:18:16 +0300 Subject: [PATCH] Run sim in `elmer_01_electrostatic.ipynb` Previously forgot to uncomment the running section from debugging I think --- notebooks/elmer_01_electrostatic.ipynb | 72 +++++++++++++------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/notebooks/elmer_01_electrostatic.ipynb b/notebooks/elmer_01_electrostatic.ipynb index 50cf5ae6..a0509733 100644 --- a/notebooks/elmer_01_electrostatic.ipynb +++ b/notebooks/elmer_01_electrostatic.ipynb @@ -157,42 +157,42 @@ }, "outputs": [], "source": [ - "# results = run_capacitive_simulation_elmer(\n", - "# c,\n", - "# layer_stack=layer_stack,\n", - "# material_spec=material_spec,\n", - "# n_processes=1,\n", - "# element_order=1,\n", - "# simulation_folder=Path(os.getcwd()) / \"temporary\",\n", - "# mesh_parameters=dict(\n", - "# background_tag=\"vacuum\",\n", - "# background_padding=(0,) * 5 + (700,),\n", - "# port_names=c.ports.keys(),\n", - "# default_characteristic_length=200,\n", - "# resolutions={\n", - "# \"bw\": {\n", - "# \"resolution\": 15,\n", - "# },\n", - "# \"substrate\": {\n", - "# \"resolution\": 40,\n", - "# },\n", - "# \"vacuum\": {\n", - "# \"resolution\": 40,\n", - "# },\n", - "# **{\n", - "# f\"bw__{port}\": { # `__` is used as the layer–port delimiter for Elmer\n", - "# \"resolution\": 20,\n", - "# \"DistMax\": 30,\n", - "# \"DistMin\": 10,\n", - "# \"SizeMax\": 14,\n", - "# \"SizeMin\": 3,\n", - "# }\n", - "# for port in c.ports\n", - "# },\n", - "# },\n", - "# ),\n", - "# )\n", - "# display(results)" + "results = run_capacitive_simulation_elmer(\n", + " c,\n", + " layer_stack=layer_stack,\n", + " material_spec=material_spec,\n", + " n_processes=1,\n", + " element_order=1,\n", + " simulation_folder=Path(os.getcwd()) / \"temporary\",\n", + " mesh_parameters=dict(\n", + " background_tag=\"vacuum\",\n", + " background_padding=(0,) * 5 + (700,),\n", + " port_names=c.ports.keys(),\n", + " default_characteristic_length=200,\n", + " resolutions={\n", + " \"bw\": {\n", + " \"resolution\": 15,\n", + " },\n", + " \"substrate\": {\n", + " \"resolution\": 40,\n", + " },\n", + " \"vacuum\": {\n", + " \"resolution\": 40,\n", + " },\n", + " **{\n", + " f\"bw__{port}\": { # `__` is used as the layer–port delimiter for Elmer\n", + " \"resolution\": 20,\n", + " \"DistMax\": 30,\n", + " \"DistMin\": 10,\n", + " \"SizeMax\": 14,\n", + " \"SizeMin\": 3,\n", + " }\n", + " for port in c.ports\n", + " },\n", + " },\n", + " ),\n", + ")\n", + "display(results)" ] }, {