Beispiel #1
0
        /// <summary>
        /// Recalculate Feed rate.
        /// </summary>
        void Calculate_Vf_from_vc()
        {
            // Vf = (Vc fz Z)/(pi D)
            var v1_3 = new DoubleST((long)tool.Z.GetValue(), "[tooth]");
            var v1   = (DoubleST)material.Vc * (DoubleST)material.fz * v1_3;
            var v2   = Math.PI * (DoubleST)tool.D;

#if TRACE_EVENTS
            log.Debug($"Calculator: Vf from vc({v2})");
#endif
            Vf.SetValueScaled(v1 / v2);
        }
Beispiel #2
0
        /// <summary>
        /// Recalculate Feed rate.
        /// </summary>
        void Calculate_Vf_from_n()
        {
            // Vf = n fz Z

            // n from rotations to time domain. (not yet done automatic)
            var v1_1 = new DoubleST(1, "[1/s]") * (DoubleST)n / n.BaseNormal();
            var v1_3 = new DoubleST((long)tool.Z.GetValue(), "[tooth]");
            var v1   = v1_1 * (DoubleST)material.fz * v1_3;

#if TRACE_EVENTS
            log.Debug($"Calculator: Vf from n({v1})");
#endif
            Vf.SetValueScaled(v1);
        }