Jump to content

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
    • Our picks

      • Help Us Improve Cura – Join the Ultimaker Research Program
        🚀 Help Shape the Future of Cura and Digital Factory – Join Our Power User Research Program!
        We’re looking for active users of Cura and Digital Factory — across professional and educational use cases — to help us improve the next generation of our tools.
        Our Power User Research Program kicks off with a quick 15-minute interview to learn about your setup and workflows. If selected, you’ll be invited into a small group of users who get early access to features and help us shape the future of 3D printing software.

        🧪 What to Expect:
        A short 15-minute kickoff interview to help us get to know you If selected, bi-monthly research sessions (15–30 minutes) where we’ll test features, review workflows, or gather feedback Occasional invites to try out early prototypes or vote on upcoming improvements
        🎁 What You’ll Get:
         
        Selected participants receive a free 1-year Studio or Classroom license Early access to new features and tools A direct voice in what we build next
        👉 Interested? Please fill out this quick form
        Your feedback helps us make Cura Cloud more powerful, more intuitive, and more aligned with how you actually print and manage your workflow.
        Thanks for being part of the community,

        — The Ultimaker Software Team
        • 0 replies
      • Cura 5.10 stable released!
        The full stable release of Cura 5.10 has arrived, and it brings support for the new Ultimaker S8, as well as new materials and profiles for previously supported UltiMaker printers. Additionally, you can now control your models in Cura using a 3D SpaceMouse and more!
          • Like
        • 18 replies
    ×
    ×
    • Create New...