harbor run -t openthoughts/tasktrove-mix-h2-language-balanced-v2-mix-h2-lang-balanced-3155harbor download openthoughts/tasktrove-mix-h2-language-balanced-v2-mix-h2-lang-balanced-3155Task: Implement the FlfSystemCodeReactor class in a new Python module at /app/paramak.py (or as a package /app/paramak/ with the same API) to satisfy the provided pytest tests.
What to implement
Signature: class FlfSystemCodeReactor: def init( self, inner_blanket_radius: float, blanket_thickness: float, blanket_height: float, lower_blanket_thickness: float, upper_blanket_thickness: float, blanket_vv_gap: float, upper_vv_thickness: float, vv_thickness: float, lower_vv_thickness: float, rotation_angle: float )
Behavior:
Implement a method volume() -> list[float] that returns six volumes in the same order as the shape names above: [blanket_vol, vacuum_vessel_vol, upper_blanket_vol, lower_blanket_vol, lower_vacuum_vessel_vol, upper_vacuum_vessel_vol]
Implement the following volumes exactly as the tests expect:
blanket_vol (index 0): outer_radius = inner_blanket_radius + blanket_thickness inner_radius = inner_blanket_radius outer_area = pi * (outer_radius)^2 inner_area = pi * (inner_radius)^2 area_diff = outer_area - inner_area blanket_vol = area_diff * blanket_height * (rotation_angle / 360.0)
upper_blanket_vol (index 2): outer_radius_upper = inner_blanket_radius + blanket_thickness + blanket_vv_gap upper_radius_area = pi * (outer_radius_upper)^2 upper_vol_full_rotation = upper_radius_area * upper_blanket_thickness upper_blanket_vol = upper_vol_full_rotation * (rotation_angle / 360.0)
The remaining volumes (indices 1, 3, 4, 5) can be placeholders and should be non-negative floats. For simplicity, you can return 0.0 for these.
The function should rely on math.pi for pi and the instance attributes for the radii, thicknesses, heights, and rotation_angle.
Implement export_stp(self, filename: str | None = None) -> None
Behavior:
Deliverable
This module should be ready for import by the existing tests and must satisfy all the test expectations described above.