Add curvature calculator DTOs
This commit is contained in:
@@ -8,7 +8,7 @@ using System.Collections.Generic;
|
||||
|
||||
namespace StructureHelperCommon.Services.Forces
|
||||
{
|
||||
public static class TupleConverter
|
||||
public static class ForceTupleConverter
|
||||
{
|
||||
static readonly IStressLogic stressLogic = new StressLogic();
|
||||
public static StrainMatrix ConvertToLoaderStrainMatrix(StrainTuple strainTuple)
|
||||
@@ -29,6 +29,17 @@ namespace StructureHelperCommon.Services.Forces
|
||||
return strainTuple;
|
||||
}
|
||||
|
||||
public static ForceTuple ConvertToForceTuple(IStrainMatrix strainMatrix)
|
||||
{
|
||||
ForceTuple strainTuple = new()
|
||||
{
|
||||
Mx = strainMatrix.Kx,
|
||||
My = strainMatrix.Ky,
|
||||
Nz = strainMatrix.EpsZ
|
||||
};
|
||||
return strainTuple;
|
||||
}
|
||||
|
||||
public static ForceTuple ConvertToForceTuple(IEnumerable<INdm> ndms, StrainTuple strainTuple)
|
||||
{
|
||||
var strainMatrix = ConvertToLoaderStrainMatrix(strainTuple);
|
||||
Reference in New Issue
Block a user