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, 1);
     section = new GenericCrossSection(1, 1, 1, 1);
     beam = elementFactory.CreateLinear3DBeam(start, end, material, section);
     SUT = new Linear3DBernoulliBeamStiffnessMatrixBuilder(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, 1);
     section        = new GenericCrossSection(1, 1, 1, 1);
     beam           = elementFactory.CreateLinear3DBeam(start, end, material, section);
     SUT            = new Linear3DBernoulliBeamStiffnessMatrixBuilder(beam);
 }
Esempio n. 3
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.CreateLinear3DBeam(start, end, material, section);
        }