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
MWFRS Wind Load Case 3 & 4 (Torsion)
>
);
};
const LoadCaseTable = ({ data }: { data: any }) => {
if (!data) return null;
return (
| Zone |
GCpf |
+GCpi |
-GCpi |
{Object.entries(data).map(([zone, val]: [string, any]) => (
| {zone} |
{val.gcpf?.toFixed(2)} |
{val.positive.toFixed(1)} |
{val.negative.toFixed(1)} |
))}
);
};
const CCTable = ({ data }: { data: any }) => {
if (!data) return null;
return (
| Zone |
Max Pos |
Max Neg |
{Object.entries(data).map(([zone, val]: [string, any]) => (
| {zone} |
{val.positive.toFixed(1)} |
{val.negative.toFixed(1)} |
))}
);
};