Refactoring of beam shear calculation, add test for beam shea

This commit is contained in:
Evgeny Redikultsev
2025-08-31 17:29:16 +05:00
parent 738ce5c433
commit 5e45be35b1
45 changed files with 923 additions and 302 deletions

View File

@@ -10,11 +10,13 @@ namespace StructureHelperLogics.Models.BeamShears.Logics
private const double minValueOfCrossSectionWidth = 0.05;
private const double minValueOfCrossSectionHeight = 0.05;
private const double minCircleDiameter = 0.05;
private readonly ShearCodeTypes shearCodeType;
private bool result;
private string checkResult;
public CheckBeamShearSectionLogic(IShiftTraceLogger? traceLogger)
public CheckBeamShearSectionLogic(ShearCodeTypes shearCodeType, IShiftTraceLogger? traceLogger)
{
this.shearCodeType = shearCodeType;
TraceLogger = traceLogger;
}
@@ -36,6 +38,16 @@ namespace StructureHelperLogics.Models.BeamShears.Logics
}
else
{
try
{
var logic = new GetSectionEffectivenessLogic();
var factory = logic.GetSectionEffectiveness(shearCodeType, Entity.Shape);
}
catch (Exception ex)
{
result = false;
TraceMessage($"\nType of section {Entity.Name} is not suitable for design code {shearCodeType}");
}
if (Entity.ConcreteMaterial is null)
{
result = false;