Force combination was added
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StructureHelperCommon.Models.Calculators
|
||||
{
|
||||
public interface IHelperCalculator <in TInputData, TCalculationResult>
|
||||
where TInputData : class
|
||||
where TCalculationResult : class
|
||||
{
|
||||
}
|
||||
}
|
||||
23
StructureHelperCommon/Models/Forces/DesignForceTuple.cs
Normal file
23
StructureHelperCommon/Models/Forces/DesignForceTuple.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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 class DesignForceTuple : IDesignForceTuple
|
||||
{
|
||||
public LimitStates LimitState { get; set; }
|
||||
public CalcTerms CalcTerm { get; set; }
|
||||
public IForceTuple ForceTuple { get; private set; }
|
||||
|
||||
public DesignForceTuple(LimitStates limitState, CalcTerms calcTerm)
|
||||
{
|
||||
LimitState = limitState;
|
||||
CalcTerm = calcTerm;
|
||||
ForceTuple = new ForceTuple();
|
||||
}
|
||||
}
|
||||
}
|
||||
27
StructureHelperCommon/Models/Forces/ForceCombinationList.cs
Normal file
27
StructureHelperCommon/Models/Forces/ForceCombinationList.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
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 ForceCombinationList : IForceCombinationList
|
||||
{
|
||||
|
||||
public string Name { get; set; }
|
||||
public Point2D ForcePoint { get; private set; }
|
||||
public List<IDesignForceTuple> DesignForces { get; private set; }
|
||||
|
||||
public ForceCombinationList()
|
||||
{
|
||||
DesignForces = new List<IDesignForceTuple>();
|
||||
DesignForces.Add(new DesignForceTuple(LimitStates.ULS, CalcTerms.ShortTerm));
|
||||
DesignForces.Add(new DesignForceTuple(LimitStates.ULS, CalcTerms.LongTerm));
|
||||
DesignForces.Add(new DesignForceTuple(LimitStates.SLS, CalcTerms.ShortTerm));
|
||||
DesignForces.Add(new DesignForceTuple(LimitStates.SLS, CalcTerms.LongTerm));
|
||||
}
|
||||
}
|
||||
}
|
||||
18
StructureHelperCommon/Models/Forces/ForceTuple.cs
Normal file
18
StructureHelperCommon/Models/Forces/ForceTuple.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StructureHelperCommon.Models.Forces
|
||||
{
|
||||
public class ForceTuple : IForceTuple
|
||||
{
|
||||
public double Mx { get; set; }
|
||||
public double My { get; set; }
|
||||
public double Nz { get; set; }
|
||||
public double Qx { get; set; }
|
||||
public double Qy { get; set; }
|
||||
public double Mz { get; set; }
|
||||
}
|
||||
}
|
||||
16
StructureHelperCommon/Models/Forces/IDesignForceTuple.cs
Normal file
16
StructureHelperCommon/Models/Forces/IDesignForceTuple.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 IDesignForceTuple
|
||||
{
|
||||
LimitStates LimitState { get; set; }
|
||||
CalcTerms CalcTerm { get; set; }
|
||||
IForceTuple ForceTuple {get;}
|
||||
}
|
||||
}
|
||||
16
StructureHelperCommon/Models/Forces/IForceCombinationList.cs
Normal file
16
StructureHelperCommon/Models/Forces/IForceCombinationList.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
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 interface IForceCombinationList
|
||||
{
|
||||
string Name { get; set; }
|
||||
Point2D ForcePoint {get ;}
|
||||
List<IDesignForceTuple> DesignForces { get; }
|
||||
}
|
||||
}
|
||||
19
StructureHelperCommon/Models/Forces/IForceTuple.cs
Normal file
19
StructureHelperCommon/Models/Forces/IForceTuple.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StructureHelperCommon.Models.Forces
|
||||
{
|
||||
public interface IForceTuple
|
||||
{
|
||||
double Mx { get; set; }
|
||||
double My { get; set; }
|
||||
double Nz { get; set; }
|
||||
double Qx { get; set; }
|
||||
double Qy { get; set; }
|
||||
double Mz { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
{
|
||||
public interface ICenterShape
|
||||
{
|
||||
ICenter Center {get;}
|
||||
IPoint2D Center {get;}
|
||||
IShape Shape { get;}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,8 +8,8 @@ namespace StructureHelperCommon.Models.Shapes
|
||||
{
|
||||
public interface ILineShape : IShape
|
||||
{
|
||||
ICenter StartPoint { get; set; }
|
||||
ICenter EndPoint { get; set; }
|
||||
IPoint2D StartPoint { get; set; }
|
||||
IPoint2D EndPoint { get; set; }
|
||||
double Thickness { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
/// Interface for point of center of some shape
|
||||
/// Интерфейс для точки центра некоторой формы
|
||||
/// </summary>
|
||||
public interface ICenter
|
||||
public interface IPoint2D
|
||||
{
|
||||
/// <summary>
|
||||
/// Coordinate of center of rectangle by local axis X, m
|
||||
@@ -10,16 +10,16 @@ namespace StructureHelperCommon.Models.Shapes
|
||||
public class LineShape : ILineShape
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public ICenter StartPoint { get; set; }
|
||||
public IPoint2D StartPoint { get; set; }
|
||||
/// <inheritdoc />
|
||||
public ICenter EndPoint { get; set; }
|
||||
public IPoint2D EndPoint { get; set; }
|
||||
/// <inheritdoc />
|
||||
public double Thickness { get; set; }
|
||||
|
||||
public LineShape()
|
||||
{
|
||||
StartPoint = new Center();
|
||||
EndPoint = new Center();
|
||||
StartPoint = new Point2D();
|
||||
EndPoint = new Point2D();
|
||||
Thickness = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
namespace StructureHelperCommon.Models.Shapes
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public class Center : ICenter
|
||||
public class Point2D : IPoint2D
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public double X { get; set; }
|
||||
Reference in New Issue
Block a user