Class FluteDependentRatioProfile
The inner beam of a milling cutter as a bending-equivalent core whose
ratio follows the flute count: the default
InnerBeamProfile. The core is the flute
profile (ZrListSource) scaled by RadiusRatio,
so at every height it is the solid circle whose area moment of inertia is
that of the whole fluted section, web and teeth together: its diameter is
the bending-equivalent diameter of the literature (Kops & Vo 1990:
about 0.8·D on two- and four-flute end mills; Bediz et al. 2012: 0.795·D
on a sectioned four-flute carbide mill), not the web, the circle
inscribed at the flute bottoms (0.4–0.6·D). One constant per cutter:
the same ratio at every height, in every direction and on a ball nose as
on a flat end, so a ball cutter's core follows its sphere; the section of
one cutter goes in as a ConstRatioProfile. The table by
flute count is GetInnerRadiusRatioByFluteNum below. The readers:
the cutter beam (GetBeamCompliance(), I and A of
each slice; Bediz measured the area-equivalent diameter at 0.78·D beside
the inertia-equivalent 0.795·D, so one ratio serves both), the stress
ratio
(GetStressRatio(IMachiningTool, double):
the same I, with the outer fibre at the flute profile's own radius), the
shank mass estimate and the shank thermal nodes (the core's volume), and
the flute drawing's inner edge. Saved as its element name alone (the
ratio only in an XML comment, which the reader ignores), so a project
saved with this profile reads the table of the build that loads it.
public class FluteDependentRatioProfile : IShaperProfile, IMakeXmlSource, IAbstractNote, IGetZrList, IGenStl, IDuplicate, IClearCache, IFluteNumSourceProperty, IZrListSourceProperty
- Inheritance
-
FluteDependentRatioProfile
- Implements
- Inherited Members
- Extension Methods
Constructors
FluteDependentRatioProfile()
Initializes a new instance.
public FluteDependentRatioProfile()
FluteDependentRatioProfile(XElement, string)
Initializes a new instance of the FluteDependentRatioProfile class.
public FluteDependentRatioProfile(XElement element, string baseDirectory)
Parameters
elementXElementThe XML element containing profile data.
baseDirectorystringThe base directory for resolving relative paths.
Properties
AbstractNote
Gets the abstract note describing the profile.
public string AbstractNote { get; }
Property Value
FluteNumSource
Gets or sets a delegate that returns the current flute number.
public Func<int> FluteNumSource { get; set; }
Property Value
RadiusRatio
The bending-equivalent core ratio for the current flute count
(FluteNumSource): the core's radius over the flute
profile's radius at the same height, by the table of
GetInnerRadiusRatioByFluteNum.
public double RadiusRatio { get; }
Property Value
XName
Name for XML IO.
public static string XName { get; }
Property Value
ZrListSource
Get base geometry source. Runtime property.
public Func<IGetZrList> ZrListSource { get; set; }
Property Value
Methods
ClearCache()
Clears any cached data held by the implementing object.
public void ClearCache()
Duplicate(params object[])
Creates a deep copy of the object, excluding any source file references.
public object Duplicate(params object[] res)
Parameters
resobject[]Optional parameters that may be needed during the duplication process
Returns
- object
A new instance that is a deep copy of the original object
GenStl(IPolarResolution2d)
Generates a new STL.
public Stl GenStl(IPolarResolution2d resolution)
Parameters
resolutionIPolarResolution2dPolar resolution
Returns
- Stl
A newly created STL.
GetZrList()
Gets a list of Z-R coordinate pairs.
public List<PairZr> GetZrList()
Returns
MakeXmlSource(string, string, bool)
Creates an XML representation of the object. This method may also generate additional resources such as related files.
public XElement MakeXmlSource(string baseDirectory, string relFile, bool exhibitionOnly)
Parameters
baseDirectorystringThe base directory for resolving relative paths
relFilestringThe relative file path for the XML source
exhibitionOnlyboolif true, the extended file creation is suppressed.
Returns
- XElement
An XML element representing the object's state
Remarks
For the demand of easy moving source folder (especially project folder) without configuration file path corruption, the relative file path is applied.
The baseDirectory is typically the folder at the nearest configuration file folder.
Since the folder can be moving with the configuration file.
Reg(XFactory)
Registers this type's deserializer with the given XFactory
and chains Reg(factory) on dependents. Idempotent.
public static void Reg(XFactory factory = null)
Parameters
factoryXFactory