44 lines
1.0 KiB
C#
44 lines
1.0 KiB
C#
|
|
using ClassicalCuttingForce;
|
|||
|
|
using ToolPathParser;
|
|||
|
|
|
|||
|
|
public class Program
|
|||
|
|
{
|
|||
|
|
public static void Main()
|
|||
|
|
{
|
|||
|
|
var toolPosList = new ToolPositionList();
|
|||
|
|
|
|||
|
|
var PointList = toolPosList.Process();
|
|||
|
|
|
|||
|
|
var toolParams = new ToolParameters
|
|||
|
|
{
|
|||
|
|
NumberOfTeeth = 4,
|
|||
|
|
ToolRadius = 5.0,
|
|||
|
|
HelixAngle = 38.0,
|
|||
|
|
ArcRadius = 0.3
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
var coefficients = new CuttingForceCoefficients
|
|||
|
|
{
|
|||
|
|
kte = 1.0,
|
|||
|
|
kre = 1.0,
|
|||
|
|
kue = 1.0,
|
|||
|
|
ktc = 1.0,
|
|||
|
|
krc = 1.0,
|
|||
|
|
kuc = 1.0
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
var ForceCalculator1 = new ClassicalCuttingForceCalculate();
|
|||
|
|
|
|||
|
|
ForceCalculator1.AxialDepthGroupedForceCalculator(PointList, coefficients, toolParams);
|
|||
|
|
|
|||
|
|
var exeDirectory = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
|
|||
|
|
string csvFilePath = Path.Join(exeDirectory, @"tp.csv");
|
|||
|
|
|
|||
|
|
toolPosList.WriteListToCsv(PointList, csvFilePath);
|
|||
|
|
|
|||
|
|
// Console.ReadLine();
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|