openmc.Cone¶
-
class
openmc.
Cone
(x0=0.0, y0=0.0, z0=0.0, r2=1.0, boundary_type='transmission', name='', surface_id=None, *, R2=None)[source]¶ A conical surface parallel to the x-, y-, or z-axis.
Parameters: - x0 (float, optional) – x-coordinate of the apex. Defaults to 0.
- y0 (float, optional) – y-coordinate of the apex. Defaults to 0.
- z0 (float, optional) – z-coordinate of the apex. Defaults to 0.
- r2 (float, optional) – Parameter related to the aperature. Defaults to 1.
- surface_id (int, optional) – Unique identifier for the surface. If not specified, an identifier will automatically be assigned.
- boundary_type ({'transmission, 'vacuum', 'reflective', 'white'}, optional) – Boundary condition that defines the behavior for particles hitting the surface. Defaults to transmissive boundary condition where particles freely pass through the surface.
- name (str) – Name of the cone. If not specified, the name will be the empty string.
Variables: - x0 (float) – x-coordinate of the apex
- y0 (float) – y-coordinate of the apex
- z0 (float) – z-coordinate of the apex
- r2 (float) – Parameter related to the aperature
- boundary_type ({'transmission, 'vacuum', 'reflective', 'white'}) – Boundary condition that defines the behavior for particles hitting the surface.
- coefficients (dict) – Dictionary of surface coefficients
- id (int) – Unique identifier for the surface
- name (str) – Name of the surface
- type (str) – Type of the surface
-
translate
(vector)[source]¶ Translate surface in given direction
Parameters: vector (iterable of float) – Direction in which surface should be translated Returns: Translated surface Return type: openmc.Cone