From 173145748b03aa7496230187a49f1a67e59d6b8a Mon Sep 17 00:00:00 2001 From: shimwell Date: Wed, 17 Jan 2024 15:30:06 +0000 Subject: [PATCH] [skip ci] Apply formatting changes --- examples/point_source_example.py | 12 +++--------- examples/ring_source_example.py | 6 ++---- examples/tokamak_source_example.py | 6 ++---- 3 files changed, 7 insertions(+), 17 deletions(-) diff --git a/examples/point_source_example.py b/examples/point_source_example.py index b780b08..73e0205 100644 --- a/examples/point_source_example.py +++ b/examples/point_source_example.py @@ -2,16 +2,12 @@ from openmc_plasma_source import FusionPointSource # minimal geometry -sphere_surface = openmc.Sphere(r=1000.0, boundary_type='vacuum') +sphere_surface = openmc.Sphere(r=1000.0, boundary_type="vacuum") cell = openmc.Cell(region=-sphere_surface) geometry = openmc.Geometry([cell]) # define the source -my_source = FusionPointSource( - coordinate=(0, 0, 0), - temperature=20000.0, - fuel="DT" -) +my_source = FusionPointSource(coordinate=(0, 0, 0), temperature=20000.0, fuel="DT") # Tell OpenMC we're going to use our custom source settings = openmc.Settings() @@ -21,8 +17,6 @@ settings.source = my_source -model = openmc.model.Model( - materials=None, geometry=geometry, settings=settings -) +model = openmc.model.Model(materials=None, geometry=geometry, settings=settings) model.run() diff --git a/examples/ring_source_example.py b/examples/ring_source_example.py index 064dc63..f9398fa 100644 --- a/examples/ring_source_example.py +++ b/examples/ring_source_example.py @@ -3,7 +3,7 @@ import math # minimal geometry -sphere_surface = openmc.Sphere(r=1000.0, boundary_type='vacuum') +sphere_surface = openmc.Sphere(r=1000.0, boundary_type="vacuum") cell = openmc.Cell(region=-sphere_surface) geometry = openmc.Geometry([cell]) @@ -21,8 +21,6 @@ # tell OpenMC we're going to use our custom source settings.source = my_source -model = openmc.model.Model( - materials=None, geometry=geometry, settings=settings -) +model = openmc.model.Model(materials=None, geometry=geometry, settings=settings) model.run() diff --git a/examples/tokamak_source_example.py b/examples/tokamak_source_example.py index 232eeb2..9d9268e 100644 --- a/examples/tokamak_source_example.py +++ b/examples/tokamak_source_example.py @@ -2,7 +2,7 @@ from openmc_plasma_source import TokamakSource # minimal geometry -sphere_surface = openmc.Sphere(r=1000.0, boundary_type='vacuum') +sphere_surface = openmc.Sphere(r=1000.0, boundary_type="vacuum") cell = openmc.Cell(region=-sphere_surface) geometry = openmc.Geometry([cell]) @@ -34,8 +34,6 @@ settings.source = my_plasma.sources -model = openmc.model.Model( - materials=None, geometry=geometry, settings=settings -) +model = openmc.model.Model(materials=None, geometry=geometry, settings=settings) model.run()