From fc2b3ee511e0e5421effe18d075cb3f72a3a0eb6 Mon Sep 17 00:00:00 2001 From: Colin Josey Date: Mon, 22 May 2017 19:00:05 -0400 Subject: [PATCH] Clean up includes and spacing --- 2x2-periodic/build-depleted.py | 9 ++------- 2x2-reflector/build-depleted.py | 9 ++------- assembly/build-depleted.py | 9 ++------- pin-cell/build-depleted.py | 9 ++------- smr/build-depleted.py | 8 +------- 5 files changed, 9 insertions(+), 35 deletions(-) diff --git a/2x2-periodic/build-depleted.py b/2x2-periodic/build-depleted.py index dff8fb3..6498071 100644 --- a/2x2-periodic/build-depleted.py +++ b/2x2-periodic/build-depleted.py @@ -1,14 +1,9 @@ #!/usr/bin/env python3 -from collections import OrderedDict -import copy -import os - import numpy as np -import openmc import opendeplete -from geometry import beavrs, openmc_geometry +from geometry import openmc_geometry # FIXME: Automatically extract info needed to calculate burnable cell volumes @@ -31,7 +26,7 @@ for cell in fuel_cells: cell.fill = [old_fill.clone() for i in range(n)] for i in range(n): - cell.fill[i].volume = np.pi * radius**2 * height + cell.fill[i].volume = np.pi * radius**2 * height cell.fill[i].depletable = True cell.fill[i].temperature = 300.0 diff --git a/2x2-reflector/build-depleted.py b/2x2-reflector/build-depleted.py index 131aad4..e63af82 100644 --- a/2x2-reflector/build-depleted.py +++ b/2x2-reflector/build-depleted.py @@ -1,14 +1,9 @@ #!/usr/bin/env python3 -from collections import OrderedDict -import copy -import os - import numpy as np -import openmc import opendeplete -from geometry import beavrs, openmc_geometry +from geometry import openmc_geometry # FIXME: Automatically extract info needed to calculate burnable cell volumes @@ -31,7 +26,7 @@ for cell in fuel_cells: cell.fill = [old_fill.clone() for i in range(n)] for i in range(n): - cell.fill[i].volume = np.pi * radius**2 * height + cell.fill[i].volume = np.pi * radius**2 * height cell.fill[i].depletable = True cell.fill[i].temperature = 300.0 diff --git a/assembly/build-depleted.py b/assembly/build-depleted.py index 4207c8a..a438700 100644 --- a/assembly/build-depleted.py +++ b/assembly/build-depleted.py @@ -1,14 +1,9 @@ #!/usr/bin/env python3 -from collections import OrderedDict -import copy -import os - import numpy as np -import openmc import opendeplete -from geometry import beavrs, openmc_geometry +from geometry import openmc_geometry # FIXME: Automatically extract info needed to calculate burnable cell volumes @@ -31,7 +26,7 @@ for cell in fuel_cells: cell.fill = [old_fill.clone() for i in range(n)] for i in range(n): - cell.fill[i].volume = np.pi * radius**2 * height + cell.fill[i].volume = np.pi * radius**2 * height cell.fill[i].depletable = True cell.fill[i].temperature = 300.0 diff --git a/pin-cell/build-depleted.py b/pin-cell/build-depleted.py index c86af14..21dfe3b 100644 --- a/pin-cell/build-depleted.py +++ b/pin-cell/build-depleted.py @@ -1,14 +1,9 @@ #!/usr/bin/env python3 -from collections import OrderedDict -import copy -import os - import numpy as np -import openmc import opendeplete -from geometry import beavrs, openmc_geometry +from geometry import openmc_geometry # FIXME: Automatically extract info needed to calculate burnable cell volumes @@ -31,7 +26,7 @@ for cell in fuel_cells: cell.fill = [old_fill.clone() for i in range(n)] for i in range(n): - cell.fill[i].volume = np.pi * radius**2 * height + cell.fill[i].volume = np.pi * radius**2 * height cell.fill[i].depletable = True cell.fill[i].temperature = 300.0 diff --git a/smr/build-depleted.py b/smr/build-depleted.py index ffecd8f..9701eac 100644 --- a/smr/build-depleted.py +++ b/smr/build-depleted.py @@ -1,14 +1,8 @@ #!/usr/bin/env python3 -from collections import OrderedDict -import copy -import os - import numpy as np -import openmc import opendeplete -from smr.materials import materials from smr.surfaces import lattice_pitch, bottom_fuel_stack, top_active_core from smr.core import geometry @@ -49,7 +43,7 @@ for cell in fuel_cells: cell.fill = [old_fill.clone() for i in range(n)] for i in range(n): - cell.fill[i].volume = np.pi * radius**2 * height + cell.fill[i].volume = np.pi * radius**2 * height cell.fill[i].depletable = True cell.fill[i].temperature = 300.0