Crack width calculation was added

This commit is contained in:
Evgeny Redikultsev
2024-05-11 20:19:56 +05:00
parent 08d36dfbd5
commit 027d9a7666
20 changed files with 475 additions and 155 deletions

View File

@@ -11,9 +11,9 @@ using System.Threading.Tasks;
namespace StructureHelperLogics.NdmCalculations.Cracking
{
internal class CrackedLogic : ICrackedLogic
public class CrackedLogic : ICrackedLogic
{
ISectionCrackedLogic sectionCrackedLogic;
private ISectionCrackedLogic sectionCrackedLogic;
public IForceTuple StartTuple { get; set; }
public IForceTuple EndTuple { get; set; }
public IEnumerable<INdm> NdmCollection { get; set; }
@@ -23,16 +23,14 @@ namespace StructureHelperLogics.NdmCalculations.Cracking
{
sectionCrackedLogic = sectionLogic;
}
public CrackedLogic() : this (new HoleSectionCrackedLogic())
public CrackedLogic() : this (new SectionCrackedLogic())
{
}
public bool IsSectionCracked(double factor)
{
if (TraceLogger is not null)
{
sectionCrackedLogic.TraceLogger = TraceLogger.GetSimilarTraceLogger(50);
}
sectionCrackedLogic.TraceLogger = TraceLogger?.GetSimilarTraceLogger(50);
var actualTuple = ForceTupleService.InterpolateTuples(EndTuple, StartTuple, factor);
sectionCrackedLogic.Tuple = actualTuple;
sectionCrackedLogic.NdmCollection = NdmCollection;