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); }
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); }
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); }
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) { }
public RotationResult(IContinousLoad continousLoad) : base(continousLoad) { }
public VerticalDeflectionResult(IContinousLoad continousLoad) : base(continousLoad) { }
public NormalForceResult(IContinousLoad continousLoad) : base(continousLoad) { }
protected DisplacementResultBase(IContinousLoad continousLoad) : base(continousLoad) { }
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;
protected ResultBase(IContinousLoad continousLoad) { ContinousLoad = continousLoad ?? throw new ArgumentNullException(nameof(continousLoad)); }
protected ForceResultBase(IContinousLoad continousLoad) : base(continousLoad) { }
public BendingMomentResult(IContinousLoad continousLoad) : base(continousLoad) { }
public ShearResult(IContinousLoad continousLoad) : base(continousLoad) { }