scpn_fusion.engineering – Engineering¶
The engineering subpackage provides balance-of-plant thermal cycle models and CAD raytrace surface-loading estimation.
Balance of Plant¶
Balance-of-plant performance model for conversion efficiency and parasitic loads.
- class scpn_fusion.engineering.balance_of_plant.PlantPowerBreakdown[source]¶
Bases:
TypedDictParasitic-load breakdown for balance-of-plant accounting.
- class scpn_fusion.engineering.balance_of_plant.PlantPerformance[source]¶
Bases:
TypedDictBalance-of-plant scalar performance metrics.
-
breakdown:
PlantPowerBreakdown¶
-
breakdown:
- class scpn_fusion.engineering.balance_of_plant.PowerPlantModel(coolant_type='water')[source]¶
Bases:
objectSCPN Balance of Plant (BOP) Simulator.
Calculates the conversion of Fusion Energy to Grid Electricity. Includes parasitic loads (Magnets, Heating, Pumping).
- Parameters:
coolant_type (str)
- calculate_plant_performance(P_fusion_MW, P_aux_absorbed_MW)[source]¶
Convert plasma physics output into electrical output.
P_fusion: Total fusion power (Alpha + Neutrons). P_aux_absorbed: Power absorbed by plasma (heating).
- Return type:
- Parameters:
- plot_sankey_diagram(metrics)[source]¶
Visualise power flow as a text-based or simple bar summary.
- Return type:
- Parameters:
metrics (PlantPerformance)
CAD Raytrace Surface Loading¶
Reduced CAD mesh ray-tracing utilities (STEP/STL integration lane).
- class scpn_fusion.engineering.cad_raytrace.CADLoadReport(face_loading_w_m2, peak_loading_w_m2, mean_loading_w_m2)[source]¶
Bases:
objectStructured result for reduced CAD heat-load reconstruction.
- Parameters:
- scpn_fusion.engineering.cad_raytrace.load_cad_mesh(path)[source]¶
Load CAD mesh from STL/STEP using trimesh when available.
Falls back to ASCII STL parser when trimesh is not available.