Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
neams-th-coe
large-problems
Commits
ff3429b6
Commit
ff3429b6
authored
Mar 11, 2021
by
April Novak
Browse files
Use consistent naming convention for rescaled pebble coordinates.
parent
8ba1cc54
Changes
11
Hide whitespace changes
Inline
Side-by-side
11145_pebbles/cardinal.i
View file @
ff3429b6
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
type
=
NearestPointAverage
type
=
NearestPointAverage
variable
=
temp
variable
=
temp
execute_on
=
'
timestep_end
'
#
Evaluate
on
timestep
end
so
OpenMC
can
get
updated
values
next
timestep
execute_on
=
'
timestep_end
'
#
Evaluate
on
timestep
end
so
OpenMC
can
get
updated
values
next
timestep
points_file
=
'
pebble_centers
.
txt
'
points_file
=
'
pebble_centers
_rescaled
.
txt
'
[]
[]
[]
[]
...
...
11145_pebbles/openmc.i
View file @
ff3429b6
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
tally_type
=
'
cell
'
tally_type
=
'
cell
'
pebble_cell_level
=
1
pebble_cell_level
=
1
mesh_template
=
'
sphere
.
e
'
mesh_template
=
'
sphere
.
e
'
centers_file
=
'
pebble_centers
.
txt
'
centers_file
=
'
pebble_centers
_rescaled
.
txt
'
volumes
=
'
14.137166941154067
'
volumes
=
'
14.137166941154067
'
[]
[]
...
...
11145_pebbles/openmc_master.i
View file @
ff3429b6
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
type
=
NearestPointAverage
type
=
NearestPointAverage
variable
=
temp
variable
=
temp
execute_on
=
'
initial
timestep_end
'
#
Evaluate
on
timestep
end
so
OpenMC
can
get
updated
values
next
timestep
execute_on
=
'
initial
timestep_end
'
#
Evaluate
on
timestep
end
so
OpenMC
can
get
updated
values
next
timestep
points_file
=
'
pebble_centers
.
txt
'
points_file
=
'
pebble_centers
_rescaled
.
txt
'
[]
[]
[]
[]
...
...
11145_pebbles/openmc_model.py
View file @
ff3429b6
...
@@ -50,9 +50,9 @@ tolerance = 0.00 # Tolerance for pebbles univer
...
@@ -50,9 +50,9 @@ tolerance = 0.00 # Tolerance for pebbles univer
radius_pebble_flibe
=
radius_pebble_outer
+
tolerance
radius_pebble_flibe
=
radius_pebble_outer
+
tolerance
# Pebble centers coordinates (x,y,z)
# Pebble centers coordinates (x,y,z)
print
(
"Reading pseudo-random pebble centers from file pebble_centers.txt"
)
print
(
"Reading pseudo-random pebble centers from file pebble_centers
_rescaled
.txt"
)
pebble_centers
=
np
.
loadtxt
(
'pebble_centers.txt'
,
delimiter
=
' '
)
pebble_centers
=
np
.
loadtxt
(
'pebble_centers
_rescaled
.txt'
,
delimiter
=
' '
)
print
(
"File pebble_centers.txt reading completed"
)
print
(
"File pebble_centers
_rescaled
.txt reading completed"
)
# Vessel Dimensions
# Vessel Dimensions
vessel_x
,
vessel_y
=
(
0.0
,
0.0
)
vessel_x
,
vessel_y
=
(
0.0
,
0.0
)
...
...
11145_pebbles/pebble_centers.txt
→
11145_pebbles/pebble_centers
_rescaled
.txt
View file @
ff3429b6
File moved
1568_pebble_yuhsiang_E524k/cardinal.i
View file @
ff3429b6
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
type
=
NearestPointAverage
type
=
NearestPointAverage
variable
=
temp
variable
=
temp
execute_on
=
'
timestep_end
'
#
Evaluate
on
timestep
end
so
OpenMC
can
get
updated
values
next
timestep
execute_on
=
'
timestep_end
'
#
Evaluate
on
timestep
end
so
OpenMC
can
get
updated
values
next
timestep
points_file
=
'
pebble_centers
.
txt
'
points_file
=
'
pebble_centers
_rescaled
.
txt
'
[]
[]
[]
[]
...
...
1568_pebble_yuhsiang_E524k/core_1568_pebbles.py
View file @
ff3429b6
...
@@ -61,12 +61,10 @@ radius_pebble_central = radius_pebble_outer - 0.1 # UCBTH-14-002, Table 2-1; Cis
...
@@ -61,12 +61,10 @@ radius_pebble_central = radius_pebble_outer - 0.1 # UCBTH-14-002, Table 2-1; Cis
tolerance
=
0.00
# Tolerance for pebbles universe filling
tolerance
=
0.00
# Tolerance for pebbles universe filling
radius_pebble_flibe
=
radius_pebble_outer
+
tolerance
radius_pebble_flibe
=
radius_pebble_outer
+
tolerance
# Pebble centers coordinates (x,y,z)
# Pebble centers coordinates (x,y,z)
print
(
"Reading pseudo-random pebble centers from file pebble_centers.txt"
)
print
(
"Reading pseudo-random pebble centers from file pebble_centers_rescaled.txt"
)
pebble_centers
=
np
.
loadtxt
(
'list_pebbles_1568.csv'
,
delimiter
=
','
,
skiprows
=
1
)[:,
1
:]
pebble_centers
=
np
.
loadtxt
(
'pebble_centers_rescaled.txt'
,
delimiter
=
','
)
print
(
"File pebble_centers.txt reading completed"
)
print
(
"File pebble_centers_rescaled.txt reading completed"
)
rescaled_file
=
'pebble_centers.txt'
rescaled_file
=
'pebble_centers_rescaled.txt'
np
.
savetxt
(
rescaled_file
,
pebble_centers
.
reshape
((
-
1
,
3
)))
print
(
"Saved rescaled centers to "
+
rescaled_file
)
# Vessel
# Vessel
extra_thickness
=
12.125
# change this value to set keff=1
extra_thickness
=
12.125
# change this value to set keff=1
x_vessel
=
0.0
# x position vessel
x_vessel
=
0.0
# x position vessel
...
...
1568_pebble_yuhsiang_E524k/openmc.i
View file @
ff3429b6
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
power
=
156800
#
1000
per
pebble
power
=
156800
#
1000
per
pebble
tally_type
=
'
mesh
'
tally_type
=
'
mesh
'
mesh_template
=
'
sphere
.
e
'
mesh_template
=
'
sphere
.
e
'
centers_file
=
'
pebble_centers
.
txt
'
centers_file
=
'
pebble_centers
_rescaled
.
txt
'
volumes
=
'
14.137166941154067
'
volumes
=
'
14.137166941154067
'
[]
[]
...
...
1568_pebble_yuhsiang_E524k/openmc_master.i
View file @
ff3429b6
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
type
=
NearestPointAverage
type
=
NearestPointAverage
variable
=
temp
variable
=
temp
execute_on
=
'
initial
timestep_end
'
#
Evaluate
on
timestep
end
so
OpenMC
can
get
updated
values
next
timestep
execute_on
=
'
initial
timestep_end
'
#
Evaluate
on
timestep
end
so
OpenMC
can
get
updated
values
next
timestep
points_file
=
'
pebble_centers
.
txt
'
points_file
=
'
pebble_centers
_rescaled
.
txt
'
[]
[]
[]
[]
...
...
1568_pebble_yuhsiang_E524k/openmc_model.py
View file @
ff3429b6
...
@@ -50,9 +50,9 @@ tolerance = 0.00 # Tolerance for pebbles univer
...
@@ -50,9 +50,9 @@ tolerance = 0.00 # Tolerance for pebbles univer
radius_pebble_flibe
=
radius_pebble_outer
+
tolerance
radius_pebble_flibe
=
radius_pebble_outer
+
tolerance
# Pebble centers coordinates (x,y,z)
# Pebble centers coordinates (x,y,z)
print
(
"Reading pseudo-random pebble centers from file pebble_centers.txt"
)
print
(
"Reading pseudo-random pebble centers from file pebble_centers
_rescaled
.txt"
)
pebble_centers
=
np
.
loadtxt
(
'
list_
pebble
s_1568.csv'
,
delimiter
=
','
,
skiprows
=
1
)[:,
1
:]
pebble_centers
=
np
.
loadtxt
(
'pebble
_centers_rescaled.txt'
,
delimiter
=
','
)
print
(
"File pebble_centers.txt reading completed"
)
print
(
"File pebble_centers
_rescaled
.txt reading completed"
)
# Vessel Dimensions
# Vessel Dimensions
vessel_x
,
vessel_y
=
(
0.0
,
0.0
)
vessel_x
,
vessel_y
=
(
0.0
,
0.0
)
...
...
1568_pebble_yuhsiang_E524k/pebble_centers.txt
→
1568_pebble_yuhsiang_E524k/pebble_centers
_rescaled
.txt
View file @
ff3429b6
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment