Beispiel #1
0
        private BeamCase GetDistributedLoadCase(LoadBeam load)
        {
            ISingleLoadCaseBeam           beamForceCase      = null;
            ISingleLoadCaseDeflectionBeam beamDeflectionCase = null;

            if (load is LoadDistributedUniform)
            {
                LoadDistributedUniform   cl = load as LoadDistributedUniform;
                UniformlyDistributedLoad b  = new UniformlyDistributedLoad(beam, cl.Value); //3B.1
                beamForceCase      = b;
                beamDeflectionCase = b;
            }

            if (load is LoadDistributedGeneral) //3C.1
            {
                LoadDistributedGeneral cl = load as LoadDistributedGeneral;
                beamForceCase = new UniformPartialLoad(beam, cl.Value, cl.XLocationStart,
                                                       cl.XLocationEnd - cl.XLocationStart);
            }
            return(new BeamCase(beamForceCase, beamDeflectionCase));
        }
        private BeamCase GetDistributedLoadCase(LoadBeam load)
        {
            ISingleLoadCaseBeam beamForceCase = null;
            ISingleLoadCaseDeflectionBeam beamDeflectionCase = null;

            if (load is LoadDistributedUniform)
            {
                LoadDistributedUniform cl = load as LoadDistributedUniform;
                UniformlyDistributedLoad b =new UniformlyDistributedLoad(beam, cl.Value); //3B.1
                beamForceCase = b;
                beamDeflectionCase = b;
            }

            if (load is LoadDistributedGeneral) //3C.1
            {
                LoadDistributedGeneral cl = load as LoadDistributedGeneral;
                beamForceCase = new UniformPartialLoad(beam, cl.Value, cl.XLocationStart, 
                    cl.XLocationEnd - cl.XLocationStart);
            }
            return new BeamCase(beamForceCase, beamDeflectionCase);
        }