예제 #1
0
        public void SetUpData()
        {
            var span = new Mock <ISpan>();

            span.Setup(s => s.Length).Returns(10);
            span.Setup(s => s.Material.YoungModulus).Returns(2);
            span.Setup(s => s.Section.MomentOfInteria).Returns(4);
            _span = span.Object;

            _continousBendingMomentLoad = ContinousBendingMomentLoad.Create(_span, value: 2);
        }
예제 #2
0
        public void SetUpData()
        {
            var span = new Mock <ISpan>();

            span.Setup(s => s.Length).Returns(10);
            span.Setup(s => s.Section.Area).Returns(5);
            span.Setup(s => s.Material.YoungModulus).Returns(2);
            _span = span.Object;

            _spanExtendLoad = SpanExtendLoad.Create(_span, lengthIncrease: 10);
        }
        public void SetUpData()
        {
            var span = new Mock <ISpan>();

            span.Setup(s => s.Length).Returns(10);
            span.Setup(s => s.Section.Area).Returns(5);
            span.Setup(s => s.Material.YoungModulus).Returns(2);
            span.Setup(s => s.Material.ThermalExpansionCoefficient).Returns(3);
            _span = span.Object;

            _alongTemperatureDifferenceLoad = AlongTemperatureDifferenceLoad.Create(span.Object, 10);
        }
예제 #4
0
        public void SetUpData()
        {
            var span = new Mock <ISpan>();

            span.Setup(s => s.Length).Returns(10);
            span.Setup(s => s.Material.YoungModulus).Returns(2);
            span.Setup(s => s.Section.MomentOfInteria).Returns(3);
            _span = span.Object;

            _continousShearLoad = ContinousShearLoad.Create(
                startPosition: 1, startValue: 2, endPosition: 5, endValue: 10);
        }
        public void SetUpData()
        {
            var span = new Mock <ISpan>();

            span.Setup(s => s.Length).Returns(10);
            span.Setup(s => s.Section.SolidHeight).Returns(5);
            span.Setup(s => s.Section.MomentOfInteria).Returns(2);
            span.Setup(s => s.Material.ThermalExpansionCoefficient).Returns(2);
            span.Setup(s => s.Material.YoungModulus).Returns(3);
            _span = span.Object;

            _upDownTemperatureDifferenceLoad = UpDownTemperatureDifferenceLoad.Create(
                _span, upperTemperature: 10, lowerTemperature: 5);
        }
예제 #6
0
        private void SetContinousLoads()
        {
            double angleInRadians = Angle * Math.PI / 180;

            _horizontalContinousLoad = ContinousNormalLoad.Create(
                this.StartPosition.Position,
                this.StartPosition.Value * Math.Sin(angleInRadians),
                this.EndPosition.Position,
                this.EndPosition.Value * Math.Sin(angleInRadians));
            _verticalContinousLoad = ContinousShearLoad.Create(
                this.StartPosition.Position,
                this.StartPosition.Value * Math.Cos(angleInRadians),
                this.EndPosition.Position,
                this.EndPosition.Value * Math.Cos(angleInRadians));
        }
 public HorizontalDeflectionResult(IContinousLoad continousLoad) : base(continousLoad)
 {
 }
예제 #8
0
 public RotationResult(IContinousLoad continousLoad) : base(continousLoad)
 {
 }
예제 #9
0
 public VerticalDeflectionResult(IContinousLoad continousLoad) : base(continousLoad)
 {
 }
예제 #10
0
 public NormalForceResult(IContinousLoad continousLoad) : base(continousLoad)
 {
 }
예제 #11
0
 protected DisplacementResultBase(IContinousLoad continousLoad) : base(continousLoad)
 {
 }
예제 #12
0
 private double GetForceAtTheCalculatedPoint(IContinousLoad load)
 => (load.EndPosition.Value - load.StartPosition.Value) /
 (load.EndPosition.Position - load.StartPosition.Position) *
 (_distanceFromLeftSide - _currentLength - load.StartPosition.Position) +
 load.StartPosition.Value;
예제 #13
0
 protected ResultBase(IContinousLoad continousLoad)
 {
     ContinousLoad = continousLoad ?? throw new ArgumentNullException(nameof(continousLoad));
 }
예제 #14
0
 protected ForceResultBase(IContinousLoad continousLoad) : base(continousLoad)
 {
 }
예제 #15
0
 public BendingMomentResult(IContinousLoad continousLoad) : base(continousLoad)
 {
 }
예제 #16
0
 public ShearResult(IContinousLoad continousLoad) : base(continousLoad)
 {
 }