bloc.reactors.cgr_validation#
Validation helpers for ThreeSegmentsReactor composite thermal properties.
Attributes#
Functions#
|
Require a non-empty insulation stack with layer maps for each property. |
|
Raise if shared thermal properties are missing on the composite node. |
|
Raise if a segment entry carries composite-level thermal keys. |
|
Return shared thermal props after validation; includes adiabatic when set. |
Module Contents#
- bloc.reactors.cgr_validation.CGR_SHARED_THERMAL_KEYS: Tuple[str, Ellipsis] = ('diameter', 'eps_wall', 'T_wall_hyp', 'T_amb', 'insulation', 'heat_loss_corr_factor')#
- bloc.reactors.cgr_validation.CGR_SEGMENT_FORBIDDEN_KEYS: FrozenSet[str]#
- bloc.reactors.cgr_validation.validate_insulation_stack(insulation, *, context)#
Require a non-empty insulation stack with layer maps for each property.
- bloc.reactors.cgr_validation.validate_cgr_composite_props(props, *, node_id)#
Raise if shared thermal properties are missing on the composite node.
- bloc.reactors.cgr_validation.validate_cgr_segment_spec(seg_spec, *, seg_idx, node_id)#
Raise if a segment entry carries composite-level thermal keys.
Return shared thermal props after validation; includes adiabatic when set.