Пример #1
0
        public void Can_calculate_BendingStiffnessEIy()
        {
            material = new GenericElasticMaterial(0, 210000000000, 0.3, 80769200000);
            section  = new SolidRectangle(0.1, 0.1);
            SUT      = elementFactory.CreateLinear1DBeam(start, end, material, section);

            Assert.AreEqual(1750000, SUT.BendingStiffnessEIy, 1);
        }
Пример #2
0
        public void Can_calculate_ShearStiffnessGAz()
        {
            material = new GenericElasticMaterial(0, 210000000000, 0.3, 80769200000);
            section  = new SolidRectangle(0.1, 0.1);
            SUT      = elementFactory.CreateLinear1DBeam(start, end, material, section);

            Assert.Inconclusive("Have not yet properly calculated as to what is expected");
            Assert.AreEqual(675508000, SUT.ShearStiffnessGAz, 1);
        }
Пример #3
0
 public void SetUp()
 {
     nodeFactory    = new NodeFactory(ModelType.Frame2D);
     start          = nodeFactory.CreateFor2DTruss(0, 0);
     end            = nodeFactory.CreateFor2DTruss(1, 0);
     elementFactory = new ElementFactory(ModelType.Frame2D);
     material       = new GenericElasticMaterial(0, 1, 0, 0);
     section        = new GenericCrossSection(1, 1);
     beam           = elementFactory.CreateLinear1DBeam(start, end, material, section);
     SUT            = new Linear1DBernoulliBeamStiffnessMatrixBuilder(beam);
 }
 public void SetUp()
 {
     nodeFactory = new NodeFactory(ModelType.Frame2D);
     start = nodeFactory.CreateFor2DTruss(0, 0);
     end = nodeFactory.CreateFor2DTruss(1, 0);
     elementFactory = new ElementFactory(ModelType.Frame2D);
     material = new GenericElasticMaterial(0, 1, 0, 0);
     section = new GenericCrossSection(1, 1);
     beam = elementFactory.CreateLinear1DBeam(start, end, material, section);
     SUT = new Linear1DBernoulliBeamStiffnessMatrixBuilder(beam);
 }
Пример #5
0
        public void SetUp()
        {
            ModelType modelType = ModelType.Beam1D;

            nodeFactory    = new NodeFactory(modelType);
            start          = nodeFactory.Create(0);
            end            = nodeFactory.Create(1);
            elementFactory = new ElementFactory(modelType);
            material       = new GenericElasticMaterial(0, 0.1, 0, 0);
            section        = new SolidRectangle(0.1, 1);
            SUT            = elementFactory.CreateLinear1DBeam(start, end, material, section);
        }
Пример #6
0
        public void CanCreateGlobalStiffnessMatrixForBeamAlignedToGlobalXAxisInReverseOrientation()
        {
            elementFactory = new ElementFactory(ModelType.Beam1D);
            beam           = elementFactory.CreateLinear1DBeam(end, start, material, section);
            SUT            = new Linear1DBernoulliBeamStiffnessMatrixBuilder(beam);
            StiffnessHelpers.Assert12x12StiffnessMatrix(SUT,
                                                        1, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0,
                                                        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                                                        0, 0, 12, 0, 6, 0, 0, 0, -12, 0, 6, 0,
                                                        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                                                        0, 0, 6, 0, 4, 0, 0, 0, -6, 0, 2, 0,
                                                        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,

                                                        -1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
                                                        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                                                        0, 0, -12, 0, -6, 0, 0, 0, 12, 0, -6, 0,
                                                        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                                                        0, 0, 6, 0, 2, 0, 0, 0, -6, 0, 4, 0,
                                                        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
        }
        public void CanCreateGlobalStiffnessMatrixForBeamAlignedToGlobalXAxisInReverseOrientation()
        {
            elementFactory = new ElementFactory(ModelType.Beam1D);
            beam = elementFactory.CreateLinear1DBeam(end, start, material, section);
            SUT = new Linear1DBernoulliBeamStiffnessMatrixBuilder(beam);
            StiffnessHelpers.Assert12x12StiffnessMatrix(SUT,
                                                        1, 0,   0,   0,  0,   0,  -1, 0,   0,   0,  0,   0,
                                                        0, 0,   0,   0,  0,   0,   0, 0,   0,   0,  0,   0,
                                                        0, 0,  12,   0,  6,   0,   0, 0, -12,   0,  6,   0,
                                                        0, 0,   0,   0,  0,   0,   0, 0,   0,   0,  0,   0,
                                                        0, 0,   6,   0,  4,   0,   0, 0,  -6,   0,  2,   0,
                                                        0, 0,   0,   0,  0,   0,   0, 0,   0,   0,  0,   0,

                                                       -1, 0,   0,   0,  0,   0,   1, 0,   0,   0,  0,   0,
                                                        0, 0,   0,   0,  0,   0,   0, 0,   0,   0,  0,   0,
                                                        0, 0, -12,   0, -6,   0,   0, 0,  12,   0, -6,   0,
                                                        0, 0,   0,   0,  0,   0,   0, 0,   0,   0,  0,   0,
                                                        0, 0,   6,   0,  2,   0,   0, 0,  -6,   0,  4,   0,
                                                        0, 0,   0,   0,  0,   0,   0, 0,   0,   0,  0,   0);
        }