public void SetUpBeam() { var material1 = new Concrete(youngModulus: 30, withReinforcement: false); var material2 = new Concrete(youngModulus: 33, withReinforcement: false); var section1 = new RectangleSection(width: 300, height: 700); var section2 = new RectangleSection(width: 300, height: 500); var node1 = new SleeveNode(); var node2 = new PinNode(); var node3 = new PinNode(); var node4 = new FixedNode(); var nodes = new Node[] { node1, node2, node3, node4 }; var span1 = new Span( leftNode: node1, length: 7, rightNode: node2, material: material1, section: section1, includeSelfWeight: false ); var span2 = new Span( leftNode: node2, length: 3, rightNode: node3, material: material1, section: section2, includeSelfWeight: false ); var span3 = new Span( leftNode: node3, length: 5, rightNode: node4, material: material2, section: section2, includeSelfWeight: false ); var spans = new Span[] { span1, span2, span3 }; node2.ConcentratedForces.Add(new NormalLoad(value: 200)); node3.ConcentratedForces.Add(new VerticalDisplacement(value: -10)); var pointLoad = new ShearLoad(value: -100, position: 2.5); span3.PointLoads.Add(pointLoad); var startLoad = new LoadData(value: -10, position: 0); var endLoad = new LoadData(value: -10, position: 7); span1.ContinousLoads.Add(ContinousShearLoad.Create(startLoad, endLoad)); _beam = new Beam(spans, nodes, includeSelfWeight: false); _beam.CalculationEngine.Calculate(); }
public void SetUp() { _sleeveNode = new SleeveNode(); }