Add beam shear action view
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
Stress,
|
||||
Force,
|
||||
Moment,
|
||||
Curvature
|
||||
Curvature,
|
||||
DistributedLoad
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using StructureHelperCommon.Infrastructures.Interfaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
//Copyright (c) 2025 Redikultsev Evgeny, Ekaterinburg, Russia
|
||||
//All rights reserved.
|
||||
|
||||
namespace StructureHelperCommon.Models.Forces.BeamShearActions
|
||||
{
|
||||
@@ -20,7 +20,7 @@ namespace StructureHelperCommon.Models.Forces.BeamShearActions
|
||||
///<inheritdoc/>
|
||||
public IFactoredCombinationProperty FactoredCombinationProperty { get; } = new FactoredCombinationProperty(Guid.NewGuid());
|
||||
///<inheritdoc/>
|
||||
public List<IBeamShearLoad> ShearLoads { get; }
|
||||
public List<IBeamShearLoad> ShearLoads { get; } = new();
|
||||
|
||||
|
||||
public BeamShearAxisAction(Guid id)
|
||||
@@ -31,6 +31,8 @@ namespace StructureHelperCommon.Models.Forces.BeamShearActions
|
||||
public object Clone()
|
||||
{
|
||||
BeamShearAxisAction beamShearAxisAction = new(Guid.NewGuid());
|
||||
updateStrategy ??= new BeamShearAxisActionUpdateStrategy();
|
||||
updateStrategy.Update(beamShearAxisAction, this);
|
||||
return beamShearAxisAction;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
using StructureHelperCommon.Infrastructures.Exceptions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
//Copyright (c) 2025 Redikultsev Evgeny, Ekaterinburg, Russia
|
||||
//All rights reserved.
|
||||
|
||||
namespace StructureHelperCommon.Models.Forces.BeamShearActions
|
||||
{
|
||||
public enum ShearActionTypes
|
||||
{
|
||||
DistributedLoad
|
||||
}
|
||||
/// <summary>
|
||||
/// Generates beam shear action with default settings
|
||||
/// </summary>
|
||||
public static class BeamShearActionFactory
|
||||
{
|
||||
public static IBeamShearAction GetBeamShearAction(ShearActionTypes actionType)
|
||||
{
|
||||
if (actionType == ShearActionTypes.DistributedLoad)
|
||||
{
|
||||
return GetDistributedLoad();
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new StructureHelperException(ErrorStrings.ObjectTypeIsUnknownObj(actionType));
|
||||
}
|
||||
}
|
||||
|
||||
private static IBeamShearAction GetDistributedLoad()
|
||||
{
|
||||
BeamShearAction beamShearAction = new(Guid.NewGuid())
|
||||
{
|
||||
Name = "Beam shear action"
|
||||
};
|
||||
SetAction(beamShearAction.XAxisShearAction, 0);
|
||||
SetFactors(beamShearAction.XAxisShearAction);
|
||||
beamShearAction.XAxisShearAction.ShearLoads.Clear();
|
||||
|
||||
SetAction(beamShearAction.YAxisShearAction, 1e5);
|
||||
SetFactors(beamShearAction.YAxisShearAction);
|
||||
return beamShearAction;
|
||||
}
|
||||
|
||||
private static void SetAction(IBeamShearAxisAction beamShearAxisAction, double supportForce)
|
||||
{
|
||||
beamShearAxisAction.SupportShearForce = 1e5;
|
||||
IBeamShearLoad distributedLoad = BeamShearLoadFactory.GetBeamShearLoad(ShearLoadTypes.DistributedLoad);
|
||||
beamShearAxisAction.ShearLoads.Add(distributedLoad);
|
||||
}
|
||||
|
||||
private static void SetFactors(IBeamShearAxisAction beamShearAxisAction)
|
||||
{
|
||||
beamShearAxisAction.FactoredCombinationProperty.LimitState = Infrastructures.Enums.LimitStates.ULS;
|
||||
beamShearAxisAction.FactoredCombinationProperty.CalcTerm = Infrastructures.Enums.CalcTerms.ShortTerm;
|
||||
beamShearAxisAction.FactoredCombinationProperty.LongTermFactor = 0.95;
|
||||
beamShearAxisAction.FactoredCombinationProperty.ULSFactor = 1.2;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
using StructureHelperCommon.Infrastructures.Exceptions;
|
||||
using System;
|
||||
|
||||
//Copyright (c) 2025 Redikultsev Evgeny, Ekaterinburg, Russia
|
||||
//All rights reserved.
|
||||
|
||||
namespace StructureHelperCommon.Models.Forces.BeamShearActions
|
||||
{
|
||||
public enum ShearLoadTypes
|
||||
{
|
||||
DistributedLoad,
|
||||
ConcentratedForce
|
||||
}
|
||||
public static class BeamShearLoadFactory
|
||||
{
|
||||
public static IBeamShearLoad GetBeamShearLoad(ShearLoadTypes loadType)
|
||||
{
|
||||
if (loadType == ShearLoadTypes.DistributedLoad)
|
||||
{
|
||||
return GetDistributedLoad();
|
||||
}
|
||||
else if (loadType == ShearLoadTypes.ConcentratedForce)
|
||||
{
|
||||
return GetConcentratedForce();
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new StructureHelperException(ErrorStrings.ObjectTypeIsUnknownObj(loadType));
|
||||
}
|
||||
}
|
||||
|
||||
private static ConcentratedForce GetConcentratedForce()
|
||||
{
|
||||
ConcentratedForce concentratedForce = new(Guid.NewGuid())
|
||||
{
|
||||
Name = "Concentrated force",
|
||||
ForceValue = -5e4,
|
||||
LoadRatio = 1,
|
||||
RelativeLoadLevel = 0.5,
|
||||
ForceCoordinate = 1
|
||||
};
|
||||
return concentratedForce;
|
||||
}
|
||||
|
||||
private static DistributedLoad GetDistributedLoad()
|
||||
{
|
||||
DistributedLoad distributedLoad = new(Guid.NewGuid())
|
||||
{
|
||||
Name = "Distributed load",
|
||||
LoadValue = -5e3,
|
||||
LoadRatio = 1,
|
||||
RelativeLoadLevel = 0.5,
|
||||
StartCoordinate = 0,
|
||||
EndCoordinate = 100
|
||||
};
|
||||
return distributedLoad;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -24,6 +24,7 @@ namespace StructureHelperCommon.Services.Units
|
||||
{ UnitTypes.Moment, "kNm"},
|
||||
{ UnitTypes.Stress, "MPa"},
|
||||
{ UnitTypes.Curvature, "1/m"},
|
||||
{ UnitTypes.DistributedLoad, "kN/m" },
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -38,6 +38,10 @@ namespace StructureHelperCommon.Services.Units
|
||||
units.Add(new Unit() { UnitType = type, Name = "1/m", Multiplyer = 1d });
|
||||
units.Add(new Unit() { UnitType = type, Name = "1/mm", Multiplyer = 1e-3d });
|
||||
units.Add(new Unit() { UnitType = type, Name = "1/cm", Multiplyer = 1e-2d });
|
||||
type = UnitTypes.DistributedLoad;
|
||||
units.Add(new Unit() { UnitType = type, Name = "N/m", Multiplyer = 1d });
|
||||
units.Add(new Unit() { UnitType = type, Name = "kN/m", Multiplyer = 1e-3d });
|
||||
units.Add(new Unit() { UnitType = type, Name = "MN/m", Multiplyer = 1e-6d });
|
||||
return units;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user