Hello, Using the below code I can generate a 45 degree rotated cylinder coefficients for Quadric surfaces.
x1, y1, z1 = (0,0,0)x2, y2, z2 = (1,1,0)
r = 30
dx = x2 - x1
dy = y2 - y1
dz = z2 - z1
cx = y1z2 + y2z1
cy = -(x1z2 + x2z1)
cz = x1y2 + x2y1
a = dydy + dzdz
b = dxdx + dzdz
c = dxdx + dydy
d = -2dxdy
e = -2dydz
f = -2dxdz
g = cydz - czdy
h = czdx - cxdz
j = cxdy - cydx
k = -(dxdx + dydy + dz*dz)rr
print(a,b,c,d,e,f,g,h,j,k)
Now, this cylinder is in the origin. Now if I want to create the same cylinder in different position of z-axis, Say if I use x1, y1, z1 = (0,0,-5)
x2, y2, z2 = (1,1,-5)
I have a=1 b=1 c=2 d=-2 j=-10 k=-1800
Now If I create a quadric surface like
xyzc1=openmc.Quadric(surface_id=5005, a=1, b=1, c=2, d=-2, j=-10, k=-1800)
I see overlap of cells error? How to do this ?