openmc.model.XConeOneSided¶
- class openmc.model.XConeOneSided(x0=0.0, y0=0.0, z0=0.0, r2=1.0, up=True, **kwargs)[source]¶
One-sided cone parallel the x-axis
A one-sided cone is composed of a normal cone surface and a “disambiguation” surface that eliminates the ambiguity as to which region of space is included. This class acts as a proper surface, meaning that unary + and - operators applied to it will produce a half-space. The negative side is defined to be the region inside of the cone.
New in version 0.12.
- Parameters
x0 (float, optional) – x-coordinate of the apex in [cm].
y0 (float, optional) – y-coordinate of the apex in [cm].
z0 (float, optional) – z-coordinate of the apex in [cm].
r2 (float, optional) – The square of the slope of the cone. It is defined as \(\left(\frac{r}{h}\right)^2\) for a radius, \(r\) and an axial distance \(h\) from the apex. An easy way to define this quantity is to take the square of the radius of the cone (in cm) 1 cm from the apex.
up (bool) – Whether to select the side of the cone that extends to infinity in the positive direction of the coordinate axis (the positive half-space of the ambiguity plane)
**kwargs – Keyword arguments passed to underlying plane classes
- Variables
cone (openmc.XCone) – Regular two-sided cone
plane (openmc.XPlane) – Disambiguation surface
up (bool) – Whether to select the side of the cone that extends to infinity in the positive direction of the coordinate axis (the positive half-space of the ambiguity plane)