Add Design range for shear
This commit is contained in:
@@ -14,6 +14,8 @@ namespace DataAccess.DTOs
|
||||
public List<IBeamShearSection> Sections { get; } = new();
|
||||
[JsonProperty("Stirrups")]
|
||||
public List<IStirrup> Stirrups { get; } = new();
|
||||
public IBeamShearDesignRangeProperty DesignRangeProperty { get; set; }
|
||||
|
||||
public BeamShearCalculatorInputDataDTO(Guid id)
|
||||
{
|
||||
Id = id;
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
using Newtonsoft.Json;
|
||||
using StructureHelperLogics.Models.BeamShears;
|
||||
|
||||
namespace DataAccess.DTOs
|
||||
{
|
||||
public class BeamShearDesignRangePropertyDTO : IBeamShearDesignRangeProperty
|
||||
{
|
||||
[JsonProperty("Id")]
|
||||
public Guid Id { get; }
|
||||
[JsonProperty("AbsoluteRangeValue")]
|
||||
public double AbsoluteRangeValue { get; set; } = 0.0;
|
||||
[JsonProperty("RelativeEffectiveDepthRangeValue")]
|
||||
public double RelativeEffectiveDepthRangeValue { get; set; } = 3.0;
|
||||
[JsonProperty("StepCount")]
|
||||
public int StepCount { get; set; } = 50;
|
||||
|
||||
public BeamShearDesignRangePropertyDTO(Guid id)
|
||||
{
|
||||
Id = id;
|
||||
}
|
||||
|
||||
public object Clone()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -75,6 +75,7 @@ namespace DataAccess.DTOs
|
||||
{ (typeof(PointNdmPrimitiveDTO), "PointNdmPrimitive") },
|
||||
{ (typeof(ProjectDTO), "Project") },
|
||||
{ (typeof(RebarNdmPrimitiveDTO), "RebarNdmPrimitive") },
|
||||
{ (typeof(RebarSectionDTO), "RebarSection") },
|
||||
{ (typeof(RectangleNdmPrimitiveDTO), "RectangleNdmPrimitive") },
|
||||
{ (typeof(RectangleShapeDTO), "RectangleShape") },
|
||||
{ (typeof(ReinforcementLibMaterialDTO), "ReinforcementLibMaterial") },
|
||||
@@ -125,6 +126,8 @@ namespace DataAccess.DTOs
|
||||
{ (typeof(List<IBeamSpanLoad>), "ListOfSpanLoads") },
|
||||
{ (typeof(List<IStirrup>), "ListOfStirrups") },
|
||||
{ (typeof(StirrupByDensityDTO), "StirrupByDensity") },
|
||||
{ (typeof(StirrupGroupDTO), "StirrupGroup") },
|
||||
{ (typeof(StirrupByInclinedRebarDTO), "StirrupByInclinedRebar") },
|
||||
{ (typeof(StirrupByRebarDTO), "StirrupByRebar") },
|
||||
};
|
||||
return newList;
|
||||
|
||||
Reference in New Issue
Block a user