import { useWindStore } from '../../store/windStore'; export const ResultsSummary = () => { const { results } = useWindStore(); if (!results) return null; return ( <>
Wind Parameters
Calculation Type MWFRS (Envelope Procedure)
Basic wind speed V {useWindStore.getState().inputs.parameters.basicWindSpeed} mph
Exposure Category {useWindStore.getState().inputs.parameters.exposureCategory}
Velocity Pressure qh
Velocity pressure exposure coefficient Kh {results.kh.toFixed(2)}
Velocity pressure qh {results.qh.toFixed(1)} psf
Pressure Coefficients
Internal Pressure Coefficients (GCpi)
Positive +GCpi {results.gcpi.positive}
Negative -GCpi {results.gcpi.negative}
MWFRS Wind Load Case 1 & 2
Case 1 (Transverse)
Case 2 (Longitudinal)
MWFRS Wind Load Case 3 & 4 (Torsion)
Case 3 (Torsion Case 1)
Case 4 (Torsion Case 2)
Components & Cladding
Roof C&C
Wall C&C
); }; const LoadCaseTable = ({ data }: { data: any }) => { if (!data) return null; return ( {Object.entries(data).map(([zone, val]: [string, any]) => ( ))}
Zone GCpf +GCpi -GCpi
{zone} {val.gcpf?.toFixed(2)} {val.positive.toFixed(1)} {val.negative.toFixed(1)}
); }; const CCTable = ({ data }: { data: any }) => { if (!data) return null; return ( {Object.entries(data).map(([zone, val]: [string, any]) => ( ))}
Zone Max Pos Max Neg
{zone} {val.positive.toFixed(1)} {val.negative.toFixed(1)}
); };