Hello, I was looking for an example of how OpenMC handles this attached model structure? It's a truncated cone with a hollow inside. Having two outer radii and two inner radii. Please share a sample code example of how this is handled in OpenMC. Thank you.
--
You received this message because you are subscribed to the Google Groups "OpenMC Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openmc-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openmc-users/db7b62cf-ff95-4285-9205-f97e30f94f33%40googlegroups.com.
Here's an example for a cone with a hollow cylindrical inside. A model with two concentric cones would be similar except you'd have to repeat the process of finding the z0 and r^2 parameters for the inner cone.# Define parameters for the annular cone.
inner_radius = 0.5
outer_radius = 1.0
height = 1.5
z_top = 0.0
# Compute the cone's r parameter. It is determined by how quickly the radius
# changes as a function of height.
cone_r = (outer_radius - inner_radius) / height
# Find the z0 parameter that places the top of the cell at z_top.
cone_z0 = z_top + inner_radius / cone_r
# Define the surfaces for the annular cone.
cone = openmc.ZCone(z0=cone_z0, r2=cone_r**2)
inner_cyl = openmc.ZCylinder(r=inner_radius)
plane1 = openmc.ZPlane(z0=z_top-height)
plane2 = openmc.ZPlane(z0=z_top)
# Define the annular cone cell
cell = openmc.Cell()
cell.region = -cone & +inner_cyl & +plane1 & -plane2
On Tue, Dec 10, 2019 at 3:04 AM Sharif Abu Darda <shabu...@gmail.com> wrote:
Hello, I was looking for an example of how OpenMC handles this attached model structure? It's a truncated cone with a hollow inside. Having two outer radii and two inner radii. Please share a sample code example of how this is handled in OpenMC. Thank you.--
You received this message because you are subscribed to the Google Groups "OpenMC Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openmc...@googlegroups.com.