Carbon Fiber Material was Added
This commit is contained in:
36
StructureHelperCommon/Models/Forces/DesignForcePair.cs
Normal file
36
StructureHelperCommon/Models/Forces/DesignForcePair.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using StructureHelperCommon.Infrastructures.Enums;
|
||||
using StructureHelperCommon.Models.Shapes;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StructureHelperCommon.Models.Forces
|
||||
{
|
||||
public class DesignForcePair : IDesignForcePair
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public IPoint2D ForcePoint { get; set; }
|
||||
public bool SetInGravityCenter { get; set; }
|
||||
public LimitStates LimitState { get; set; }
|
||||
public IForceTuple LongForceTuple { get; set; }
|
||||
public IForceTuple FullForceTuple { get; set; }
|
||||
|
||||
public DesignForcePair()
|
||||
{
|
||||
LongForceTuple = new ForceTuple();
|
||||
FullForceTuple = new ForceTuple();
|
||||
}
|
||||
|
||||
public IForceCombinationList GetCombinations()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public object Clone()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ namespace StructureHelperCommon.Models.Forces
|
||||
{
|
||||
public LimitStates LimitState { get; set; }
|
||||
public CalcTerms CalcTerm { get; set; }
|
||||
public IForceTuple ForceTuple { get; set; }
|
||||
public ForceTuple ForceTuple { get; set; }
|
||||
|
||||
public DesignForceTuple(LimitStates limitState, CalcTerms calcTerm) : this()
|
||||
{
|
||||
@@ -22,7 +22,7 @@ namespace StructureHelperCommon.Models.Forces
|
||||
public object Clone()
|
||||
{
|
||||
var newTuple = new DesignForceTuple(this.LimitState, this.CalcTerm);
|
||||
newTuple.ForceTuple = this.ForceTuple.Clone() as IForceTuple;
|
||||
newTuple.ForceTuple = this.ForceTuple.Clone() as ForceTuple;
|
||||
return newTuple;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace StructureHelperCommon.Models.Forces
|
||||
{
|
||||
var termFactor = calcTerm is CalcTerms.ShortTerm ? 1d : LongTermFactor;
|
||||
var designForceTuple = new DesignForceTuple() { LimitState = limitState, CalcTerm = calcTerm };
|
||||
designForceTuple.ForceTuple = ForceTupleService.MultiplyTuples(FullSLSForces, stateFactor * termFactor);
|
||||
designForceTuple.ForceTuple = ForceTupleService.MultiplyTuples(FullSLSForces, stateFactor * termFactor) as ForceTuple;
|
||||
result.DesignForces.Add(designForceTuple);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace StructureHelperCommon.Models.Forces
|
||||
var forceTupleList = DesignForces.Where(x => x.LimitState == limitState & x.CalcTerm == calcTerm);
|
||||
foreach (var item in forceTupleList)
|
||||
{
|
||||
designForceTuple.ForceTuple = ForceTupleService.SumTuples(designForceTuple.ForceTuple, item.ForceTuple);
|
||||
designForceTuple.ForceTuple = ForceTupleService.SumTuples(designForceTuple.ForceTuple, item.ForceTuple) as ForceTuple;
|
||||
}
|
||||
result.DesignForces.Add(designForceTuple);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using StructureHelperCommon.Services.Forces;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace StructureHelperCommon.Models.Forces
|
||||
{
|
||||
@@ -21,20 +22,13 @@ namespace StructureHelperCommon.Models.Forces
|
||||
/// <inheritdoc/>
|
||||
public object Clone()
|
||||
{
|
||||
IForceTuple forceTuple = new ForceTuple() { Mx = Mx, My = My, Nz = Nz, Qx = Qx, Qy = Qy, Mz = Mz};
|
||||
ForceTuple forceTuple = new ForceTuple() { Mx = Mx, My = My, Nz = Nz, Qx = Qx, Qy = Qy, Mz = Mz};
|
||||
return forceTuple;
|
||||
}
|
||||
public static ForceTuple operator +(ForceTuple first) => first;
|
||||
public static ForceTuple operator +(ForceTuple first, ForceTuple second)
|
||||
{
|
||||
var result = new ForceTuple();
|
||||
result.Mx += first.Mx + second.Mx;
|
||||
result.My += first.My + second.My;
|
||||
result.Mz += first.Mz + second.Mz;
|
||||
result.Qx += first.Qx + second.Qx;
|
||||
result.Qy += first.Qy + second.Qy;
|
||||
result.Nz += first.Nz + second.Nz;
|
||||
return result;
|
||||
return ForceTupleService.SumTuples(first, second) as ForceTuple;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
16
StructureHelperCommon/Models/Forces/IDesignForcePair.cs
Normal file
16
StructureHelperCommon/Models/Forces/IDesignForcePair.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using StructureHelperCommon.Infrastructures.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StructureHelperCommon.Models.Forces
|
||||
{
|
||||
public interface IDesignForcePair : IForceAction
|
||||
{
|
||||
LimitStates LimitState { get; set; }
|
||||
IForceTuple LongForceTuple { get; set; }
|
||||
IForceTuple FullForceTuple { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -8,7 +8,6 @@ namespace StructureHelperCommon.Models.Forces
|
||||
{
|
||||
LimitStates LimitState { get; set; }
|
||||
CalcTerms CalcTerm { get; set; }
|
||||
IForceTuple ForceTuple { get; set; }
|
||||
|
||||
ForceTuple ForceTuple { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
33
StructureHelperCommon/Models/Forces/StrainTuple.cs
Normal file
33
StructureHelperCommon/Models/Forces/StrainTuple.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using StructureHelperCommon.Services.Forces;
|
||||
|
||||
namespace StructureHelperCommon.Models.Forces
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public class StrainTuple : IForceTuple
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public double Mx { get; set; }
|
||||
/// <inheritdoc/>
|
||||
public double My { get; set; }
|
||||
/// <inheritdoc/>
|
||||
public double Nz { get; set; }
|
||||
/// <inheritdoc/>
|
||||
public double Qx { get; set; }
|
||||
/// <inheritdoc/>
|
||||
public double Qy { get; set; }
|
||||
/// <inheritdoc/>
|
||||
public double Mz { get; set; }
|
||||
|
||||
/// <inheritdoc/>
|
||||
public object Clone()
|
||||
{
|
||||
StrainTuple forceTuple = new StrainTuple() { Mx = Mx, My = My, Nz = Nz, Qx = Qx, Qy = Qy, Mz = Mz };
|
||||
return forceTuple;
|
||||
}
|
||||
public static StrainTuple operator +(StrainTuple first) => first;
|
||||
public static StrainTuple operator +(StrainTuple first, ForceTuple second)
|
||||
{
|
||||
return ForceTupleService.SumTuples(first, second) as StrainTuple;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace StructureHelperCommon.Models.Forces
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface for generic curvature for beams
|
||||
/// </summary>
|
||||
public interface IStrainTuple : ICloneable
|
||||
{
|
||||
/// <summary>
|
||||
/// Curvature about x-axis
|
||||
/// </summary>
|
||||
double Kx { get; set; }
|
||||
/// <summary>
|
||||
/// Curvature about y-axis
|
||||
/// </summary>
|
||||
double Ky { get; set; }
|
||||
/// <summary>
|
||||
/// Strain along z-axis
|
||||
/// </summary>
|
||||
double EpsZ { get; set; }
|
||||
/// <summary>
|
||||
/// Screw along x-axis
|
||||
/// </summary>
|
||||
double Gx { get; set; }
|
||||
/// <summary>
|
||||
/// Screw along y-axis
|
||||
/// </summary>
|
||||
double Gy { get; set; }
|
||||
/// <summary>
|
||||
/// Twisting about z-axis
|
||||
/// </summary>
|
||||
double Gz { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
using StructureHelperCommon.Services.Forces;
|
||||
|
||||
namespace StructureHelperCommon.Models.Forces
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public class StrainTuple : IStrainTuple
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public double Kx { get; set; }
|
||||
/// <inheritdoc/>
|
||||
public double Ky { get; set; }
|
||||
/// <inheritdoc/>
|
||||
public double EpsZ { get; set; }
|
||||
/// <inheritdoc/>
|
||||
public double Gx { get; set; }
|
||||
/// <inheritdoc/>
|
||||
public double Gy { get; set; }
|
||||
/// <inheritdoc/>
|
||||
public double Gz { get; set; }
|
||||
|
||||
/// <inheritdoc/>
|
||||
public object Clone()
|
||||
{
|
||||
var target = new StrainTuple();
|
||||
StrainTupleService.CopyProperties(this, target);
|
||||
return target;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user