Add circle shape calculation for shear
This commit is contained in:
@@ -14,7 +14,7 @@ namespace DataAccess.DTOs
|
||||
public List<IBeamShearSection> Sections { get; } = new();
|
||||
[JsonProperty("Stirrups")]
|
||||
public List<IStirrup> Stirrups { get; } = new();
|
||||
public IBeamShearDesignRangeProperty DesignRangeProperty { get; set; }
|
||||
public IBeamShearDesignRangeProperty DesignRangeProperty { get; set; } = new BeamShearDesignRangePropertyDTO(Guid.NewGuid());
|
||||
|
||||
public BeamShearCalculatorInputDataDTO(Guid id)
|
||||
{
|
||||
|
||||
@@ -10,9 +10,9 @@ namespace DataAccess.DTOs
|
||||
[JsonProperty("AbsoluteRangeValue")]
|
||||
public double AbsoluteRangeValue { get; set; } = 0.0;
|
||||
[JsonProperty("RelativeEffectiveDepthRangeValue")]
|
||||
public double RelativeEffectiveDepthRangeValue { get; set; } = 3.0;
|
||||
public double RelativeEffectiveDepthRangeValue { get; set; } = 3.3;
|
||||
[JsonProperty("StepCount")]
|
||||
public int StepCount { get; set; } = 50;
|
||||
public int StepCount { get; set; } = 55;
|
||||
|
||||
public BeamShearDesignRangePropertyDTO(Guid id)
|
||||
{
|
||||
|
||||
@@ -17,13 +17,13 @@ namespace DataAccess.DTOs
|
||||
[JsonProperty("Shape")]
|
||||
public IShape Shape { get; set; } = new RectangleShapeDTO(Guid.Empty);
|
||||
[JsonProperty("ConcreteMaterial")]
|
||||
public IConcreteLibMaterial ConcreteMaterial { get; set; }
|
||||
public IConcreteLibMaterial ConcreteMaterial { get; set; } = new ConcreteLibMaterial(Guid.NewGuid());
|
||||
[JsonProperty("CenterCover")]
|
||||
public double CenterCover { get; set; }
|
||||
[JsonProperty("ReinforcementArea")]
|
||||
public double ReinforcementArea { get; set; }
|
||||
[JsonProperty("ReinforcementMaterial")]
|
||||
public IReinforcementLibMaterial ReinforcementMaterial { get; set; }
|
||||
public IReinforcementLibMaterial ReinforcementMaterial { get; set; } = new ReinforcementLibMaterial(Guid.NewGuid());
|
||||
|
||||
public BeamShearSectionDTO(Guid id)
|
||||
{
|
||||
|
||||
23
DataAccess/DTOs/DTOEntities/CircleShapeDTO.cs
Normal file
23
DataAccess/DTOs/DTOEntities/CircleShapeDTO.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Newtonsoft.Json;
|
||||
using StructureHelperCommon.Models.Shapes;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DataAccess.DTOs
|
||||
{
|
||||
public class CircleShapeDTO : ICircleShape
|
||||
{
|
||||
[JsonProperty("Id")]
|
||||
public Guid Id { get; }
|
||||
[JsonProperty("Diameter")]
|
||||
public double Diameter { get; set; }
|
||||
|
||||
public CircleShapeDTO(Guid id)
|
||||
{
|
||||
Id = id;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -34,6 +34,7 @@ namespace DataAccess.DTOs
|
||||
List<(Type type, string name)> newList = new List<(Type type, string name)>
|
||||
{
|
||||
{ (typeof(AccuracyDTO), "Accuracy") },
|
||||
{ (typeof(CircleShapeDTO), "CircleShape") },
|
||||
{ (typeof(ConcreteLibMaterialDTO), "ConcreteLibMaterial") },
|
||||
{ (typeof(ColumnFilePropertyDTO), "ColumnFileProperty") },
|
||||
{ (typeof(ColumnedFilePropertyDTO), "ColumnedFileProperty") },
|
||||
@@ -119,6 +120,7 @@ namespace DataAccess.DTOs
|
||||
{ (typeof(BeamShearAnalysisDTO), "BeamShearAnalysis") },
|
||||
{ (typeof(BeamShearCalculatorDTO), "BeamShearCalculator") },
|
||||
{ (typeof(BeamShearCalculatorInputDataDTO), "BeamShearCalculatorInputData") },
|
||||
{ (typeof(BeamShearDesignRangePropertyDTO), "BeamShearDesignRangeProperty") },
|
||||
{ (typeof(BeamShearRepositoryDTO), "BeamShearRepository") },
|
||||
{ (typeof(BeamShearSectionDTO), "BeamShearSection") },
|
||||
{ (typeof(List<IBeamShearAction>), "ListOfBeamShearActions") },
|
||||
|
||||
Reference in New Issue
Block a user