import React from 'react';
import { useBeamStore } from '../../store/useBeamStore';
export const DetailedReport: React.FC = () => {
const { steel, geometry, concrete, composite, lateralBracing, results } = useBeamStore();
if (!results) {
return (
Design Report
{/* GEOMETRY Section */}
GEOMETRY
Beam Designation
{steel.designation}
Span / Length
{geometry.spans.map((span) => (
Span {span.id}
{span.length.toFixed(2)} ft ✓
))}
Support / Type
{geometry.supports.map((support) => (
Support {support.id}
{support.type}
))}
{/* SLAB AND DECK Section */}
{composite.isComposite && (
SLAB AND DECK
Overall Slab Thickness
{concrete.slabThickness} in ✓
Concrete Strength f'c
{concrete.fc} psi ✓
Metal Deck Type
{composite.metalDeck.manufacturer} {composite.metalDeck.type} - {composite.metalDeck.orientation}
)}
{/* DEFLECTIONS Section */}
DEFLECTIONS
Stiffness factor
{steel.useStiffnessFactor ? '0.8' : '1.0'}
Long-term Deflection
0.08 in
| Loading |
δ (in) |
L/δ |
L/δ Min |
Ratio |
|
{results.deflections.map((deflection, index) => (
| {deflection.loadCase} |
{deflection.deflection.toFixed(2)} |
{deflection.lOverD} |
{deflection.limit} |
{deflection.ratio.toFixed(2)} |
✓ |
))}
DEFLECTION DESIGN IS OK
{/* DESIGN FOR SHEAR Section */}
DESIGN FOR SHEAR
Shear Coefficient Cv
{results.shear.cv.toFixed(2)}
Maximum Shear Force V
{results.shear.maxShear.toFixed(1)} kip
Design Strength φVn
{results.shear.designStrength.toFixed(1)} kip
V / φVn Design Ratio
{results.shear.ratio.toFixed(2)} ✓
SHEAR DESIGN IS OK
{/* FLEXURE (NON-COMPOSITE) Section */}
FLEXURE (NON-COMPOSITE)
- Construction loads
Lateral Bracing
{lateralBracing.type}
Max. Bending Moment M
{results.flexureNonComposite.maxMoment.toFixed(1)} k-ft
L. T. Buckling Cb-factor
{results.flexureNonComposite.cbFactor.toFixed(2)}
Design Strength φMn
{results.flexureNonComposite.designStrength.toFixed(1)} k-ft
M / φMn Design Ratio
{results.flexureNonComposite.ratio.toFixed(2)} ✓
Controlling Limit State
{results.flexureNonComposite.limitState}
FLEXURE DESIGN IS OK
{/* FLEXURE (COMPOSITE) Section */}
{composite.isComposite && results.flexureComposite && (
FLEXURE (COMPOSITE)
Shear Stud Length
{results.flexureComposite.shearStudLength.toFixed(1)} in ✓
Reqd. # of 3/4" Shear Connectors
{results.flexureComposite.requiredStuds} ✓
% of Full Composite Action
{results.flexureComposite.partialComposite} %
Max. Bending Moment M
{results.flexureComposite.maxMoment.toFixed(1)} k-ft
Design Strength φMn
{results.flexureComposite.designStrength.toFixed(1)} k-ft
M / φMn Design Ratio
{results.flexureComposite.ratio.toFixed(2)} ✓
COMPOSITE DESIGN IS OK
)}
{/* DESIGN CODES Section */}
DESIGN CODES
Steel Design
AISC 360-16
Load Combinations
ASCE 7-16/10
);
};