Jump to content
Ultimaker Community of 3D Printing Experts

Line width calculation


qwewer
 Share

Recommended Posts

Posted (edited) · Line width calculation

How does Cura calculates the line width, mean it, what is the mathematical function that Cura uses for calculating the amount of extruded material for Wall Flow, Top/Bottom Flow, Infill Flow etc. and/or where can it be found in the GitHub files?

Edited by qwewer
spelling
  • Link to post
    Share on other sites

    Posted · Line width calculation

    It's the ratio of filament in vs extrusion out multiplied by the length of the extrusion

    Given a line width of .4 and a layer height of .2 and filament diameter of 1.75 it's 1mm filament / 30mm extrusion (2.4/.08) and inversely 1mm of extrusion would require .033mm of filament.  That makes a base line for Cura of 100% flow volume.  Simplyfy3d considers that the area under the nozzle will never be an exact rectangle, but will have curved sides.  Simplyfy3d uses a fudge factor of 1.2 when calculating the area under the nozzle (so .08mm^2 becomes .096mm^2 in Simplyfy3d calculations).

    I have no idea where it is on GitHub.

     

  • Link to post
    Share on other sites

    Posted · Line width calculation

    Yes, it isn't simple.  In fact these are (at the same time) both the simplest and the most complicated machines I've ever worked on.  Everything effects everything.

    From the baseline volume there are other algorithms that vary that value.  I hand coded some prime lines across the front of the build surface (easy to yank off on the fly) for my start Gcode and the research into the Extruder calculations quickly got confusing.  The term "flow rate" (as it refers to mm^3 / sec) through the nozzle tends not to mean anything.  It took a while for me to get comfortable with that.  Each individual machine has an upper value of Flow Rate beyond which it can't keep up but even something as simple as that varies with temperature, material, hot end, and other factors.  It's another moving target.

  • Link to post
    Share on other sites

    Posted · Line width calculation

    I'm late to the party, but I went digging for this same information and worked backwards this way. Just go to #6 for the punchline.

    1. The output of the E value
    2. Calculating extrusion_per_mm
    3. mm3ToE (simple cylindrical volume/height ratio)
    4. extrusion_mm3_per_mm definition "Current mm^3 filament moved per mm line traversed"
    5. extrusion_mm3_per_mm initialized
    6. Rectangular cross section calculation for extrusion_mm3_per_mm

    You can see that Cura assumes a rectangular cross section and scales up extruded material through the flow variable for different types of beads that you can set in your profile.

     

    This would also confirm what they mention in their docs.

     

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
     Share

    • Our picks

      • New here? Get ahead with a free onboarding course
        Hi,
         
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 11 replies
    ×
    ×
    • Create New...