Interpolation of results was added
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
using StructureHelperCommon.Infrastructures.Enums;
|
||||
using StructureHelperCommon.Infrastructures.Exceptions;
|
||||
using StructureHelperCommon.Infrastructures.Strings;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StructureHelperCommon.Models.Forces
|
||||
{
|
||||
public enum ForceType
|
||||
{
|
||||
Force_zero,
|
||||
Force_Mx50My50Nz100,
|
||||
}
|
||||
|
||||
public static class DesignForceFactory
|
||||
{
|
||||
public static IDesignForceTuple GetDesignForce(ForceType forceType, LimitStates limitState, CalcTerms calcTerm)
|
||||
{
|
||||
if (forceType == ForceType.Force_zero)
|
||||
{
|
||||
return new DesignForceTuple(limitState, calcTerm);
|
||||
}
|
||||
else if (forceType == ForceType.Force_Mx50My50Nz100)
|
||||
{
|
||||
var tuple = new DesignForceTuple(limitState, calcTerm);
|
||||
var forceTuple = tuple.ForceTuple;
|
||||
forceTuple.Mx = -50e3d;
|
||||
forceTuple.My = -50e3d;
|
||||
forceTuple.Nz = -100e3d;
|
||||
return tuple;
|
||||
}
|
||||
else throw new StructureHelperException(ErrorStrings.ObjectTypeIsUnknown);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using StructureHelperCommon.Infrastructures.Enums;
|
||||
using StructureHelperCommon.Infrastructures.Exceptions;
|
||||
using StructureHelperCommon.Infrastructures.Strings;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StructureHelperCommon.Models.Forces
|
||||
{
|
||||
public enum DesignForceType
|
||||
{
|
||||
Suit_1,
|
||||
Suit_2
|
||||
}
|
||||
|
||||
public static class ForceCombinationListFactory
|
||||
{
|
||||
public static List<IDesignForceTuple> GetDesignForces(DesignForceType forceType)
|
||||
{
|
||||
if (forceType == DesignForceType.Suit_1)
|
||||
{
|
||||
var designForces = new List<IDesignForceTuple>();
|
||||
designForces.Add(DesignForceFactory.GetDesignForce(ForceType.Force_Mx50My50Nz100, LimitStates.ULS, CalcTerms.ShortTerm));
|
||||
designForces.Add(DesignForceFactory.GetDesignForce(ForceType.Force_Mx50My50Nz100, LimitStates.ULS, CalcTerms.LongTerm));
|
||||
designForces.Add(DesignForceFactory.GetDesignForce(ForceType.Force_Mx50My50Nz100, LimitStates.SLS, CalcTerms.ShortTerm));
|
||||
designForces.Add(DesignForceFactory.GetDesignForce(ForceType.Force_Mx50My50Nz100, LimitStates.SLS, CalcTerms.LongTerm));
|
||||
return designForces;
|
||||
}
|
||||
else throw new StructureHelperException(ErrorStrings.ObjectTypeIsUnknown);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user