private BeamCase GetMomentLoadCase(LoadBeam load) { ISingleLoadCaseBeam beamForceCase = null; ISingleLoadCaseDeflectionBeam beamDeflectionCase = null; if (load is LoadMomentLeftEnd)//1E.1 { LoadMomentLeftEnd cl = load as LoadMomentLeftEnd; MomentAtOneEnd b1 = new MomentAtOneEnd(beam, cl.Mo); beamForceCase = b1; beamDeflectionCase = b1; } if (load is LoadMomentGeneral)//1E.2 { LoadMomentGeneral cl = load as LoadMomentGeneral; MomentAtAnyPoint b2 = new MomentAtAnyPoint(beam, cl.Mo, cl.Location); beamForceCase = b2; beamDeflectionCase = null; } if (load is LoadMomentBothEnds)//1E.3 { LoadMomentBothEnds cl = load as LoadMomentBothEnds; beamForceCase = new MomentAtBothEnds(beam, cl.M1, cl.M2); beamDeflectionCase = null; } if (load is LoadMomentRightEnd)//1E.4 { LoadMomentRightEnd cl = load as LoadMomentRightEnd; beamForceCase = new MomentAtFarEnd(beam, cl.Mo); beamDeflectionCase = null; } return(new BeamCase(beamForceCase, beamDeflectionCase)); }
private BeamCase GetMomentLoadCase(LoadBeam load) { ISingleLoadCaseBeam beamForceCase = null; ISingleLoadCaseDeflectionBeam beamDeflectionCase = null; if (load is LoadMomentLeftEnd)//1E.1 { LoadMomentLeftEnd cl = load as LoadMomentLeftEnd; MomentAtOneEnd b1 = new MomentAtOneEnd(beam, cl.Mo); beamForceCase = b1; beamDeflectionCase = b1; } if (load is LoadMomentGeneral)//1E.2 { LoadMomentGeneral cl = load as LoadMomentGeneral; MomentAtAnyPoint b2 = new MomentAtAnyPoint(beam, cl.Mo, cl.Location); beamForceCase = b2; beamDeflectionCase = null; } if (load is LoadMomentBothEnds)//1E.3 { LoadMomentBothEnds cl = load as LoadMomentBothEnds; beamForceCase = new MomentAtBothEnds(beam, cl.M1, cl.M2); beamDeflectionCase = null; } if (load is LoadMomentRightEnd)//1E.4 { LoadMomentRightEnd cl = load as LoadMomentRightEnd; beamForceCase = new MomentAtFarEnd(beam, cl.Mo); beamDeflectionCase = null; } return new BeamCase(beamForceCase, beamDeflectionCase); }