mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
Simply MeshFilter.__init__
This commit is contained in:
parent
e464e22690
commit
52c9898128
19 changed files with 209 additions and 183 deletions
|
|
@ -162,8 +162,7 @@ mesh.lower_left = [-2, -2]
|
|||
mesh.width = [1, 1]
|
||||
|
||||
# Instantiate tally Filter
|
||||
mesh_filter = openmc.MeshFilter(mesh.id)
|
||||
mesh_filter.mesh = mesh
|
||||
mesh_filter = openmc.MeshFilter(mesh)
|
||||
|
||||
# Instantiate the Tally
|
||||
tally = openmc.Tally(tally_id=1)
|
||||
|
|
|
|||
|
|
@ -155,8 +155,7 @@ mesh.lower_left = [-2, -2]
|
|||
mesh.width = [1, 1]
|
||||
|
||||
# Instantiate tally Filter
|
||||
mesh_filter = openmc.MeshFilter(mesh.id)
|
||||
mesh_filter.mesh = mesh
|
||||
mesh_filter = openmc.MeshFilter(mesh)
|
||||
|
||||
# Instantiate tally Trigger
|
||||
trigger = openmc.Trigger(trigger_type='rel_err', threshold=1E-2)
|
||||
|
|
|
|||
|
|
@ -186,8 +186,7 @@ mesh.upper_right = [0.62992, 0.62992, 1.e50]
|
|||
|
||||
# Instantiate some tally Filters
|
||||
energy_filter = openmc.EnergyFilter([0., 4.e-6, 20.])
|
||||
mesh_filter = openmc.MeshFilter(mesh.id)
|
||||
mesh_filter.mesh = mesh
|
||||
mesh_filter = openmc.MeshFilter(mesh)
|
||||
|
||||
# Instantiate the Tally
|
||||
tally = openmc.Tally(tally_id=1, name='tally 1')
|
||||
|
|
|
|||
|
|
@ -155,8 +155,7 @@ mesh.upper_right = [0.63, 0.63, 1.e50]
|
|||
# Instantiate some tally Filters
|
||||
energy_filter = openmc.EnergyFilter([1E-11, 0.0635E-6, 10.0E-6, 1.0E-4, 1.0E-3,
|
||||
0.5, 1.0, 20.0])
|
||||
mesh_filter = openmc.MeshFilter(mesh.id)
|
||||
mesh_filter.mesh = mesh
|
||||
mesh_filter = openmc.MeshFilter(mesh)
|
||||
|
||||
# Instantiate the Tally
|
||||
tally = openmc.Tally(tally_id=1, name='tally 1')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue