Welcome! Log In Create A New Profile

Advanced

patch: total build time in Skeinforge

Posted by MarcusWolschon 
patch: total build time in Skeinforge
April 26, 2010 11:58AM
here is a small patch I just sent to enrique to give the total build-time in hours, minutes and seconds and to calculate the weight of extruded ABS based on the volume:
(statistics.py)

self.addLine( "The total build time is %s h %s min %s s." % ( int( round( self.totalBuildTime / 3600) ) , int( round( (self.totalBuildTime / 60) % 60 ) ) , int( round( self.totalBuildTime % 60 ) )))
...
self.addLine( "The volume extruded is %s cc. (= %s gramm for ABS)" % (euclidean.getThreeSignificantFigures( volumeExtruded ) , int( round( 1.08 * volumeExtruded ) )))


-------------------------------------------
* homeprototype free 3d design repository
* Blog
* Google+
Re: patch: total build time in Skeinforge
April 30, 2010 04:21AM
i think to see Meter of 3mm Filament is better then the Weight of ABS


Mfg
Wolfgang
Aller Anfang war schwer - Wolfstrap Reprap-fab.org Meine Meinung

Erfahrungen kann man leider schlecht weiter geben, die muss man selber machen.
Re: patch: total build time in Skeinforge
April 30, 2010 04:25AM
I have no idea how many meters are on a spool.
I buy them in 5, 10 or 1 Kg.


-------------------------------------------
* homeprototype free 3d design repository
* Blog
* Google+
Re: patch: total build time in Skeinforge
April 30, 2010 04:35AM
I think, if i will make someting and i know how much Meter i must take ... i am able to cut this piece from my spool ...

or

I still have one remaining piece, it's enough yet ?


Mfg
Wolfgang
Aller Anfang war schwer - Wolfstrap Reprap-fab.org Meine Meinung

Erfahrungen kann man leider schlecht weiter geben, die muss man selber machen.
Re: patch: total build time in Skeinforge
April 30, 2010 04:38AM
Feel free to add it and submit your change to enrique.
It certainly would not hurt.
Better yet:

"used 2.8-3.2mm Filament-length XXX - XXX meter"
as filament is never exactly 3.00mm thick and you don´t want to have too little of it on your spool


-------------------------------------------
* homeprototype free 3d design repository
* Blog
* Google+
Re: patch: total build time in Skeinforge
April 30, 2010 04:40AM
Or better yet, allow inputting the value for Kilograms per meter (Kg/m) so the proper length of filament can be displayed based on what is being used.


Bob Morrison
Wörth am Rhein, Germany
"Luke, use the source!"
BLOG - PHOTOS - Thingiverse
Re: patch: total build time in Skeinforge
April 30, 2010 04:43AM
rhmorrison Wrote:
-------------------------------------------------------
> Or better yet, allow inputting the value for
> Kilograms per meter (Kg/m) so the proper length of
> filament can be displayed based on what is being
> used.

I don´t think that is a good idea.
This is some extra statistics for convenience and has
nothing to do with the primary function of the program.
Settings are complex enough as they are.


-------------------------------------------
* homeprototype free 3d design repository
* Blog
* Google+
Re: patch: total build time in Skeinforge
April 30, 2010 05:28AM
Strange things happens...

i put your lines into and get a diffrent of 1 hour... and i delete the lines again...

The text has 27596 lines and a size of 883.0 KB.
The total build time is 2 hours 23 minutes 45 seconds. (< before there are only scounds)
The total distance extruded is 64605.8 mm.
The total distance traveled is 74537.5 mm.
The version is 2010-04-26
The volume extruded is 12.7 cc.


i put the lines into again:

The text has 27596 lines and a size of 883.0 KB.
The total build time is 2 hours 23 minutes 45 seconds.
The total build time is 2 h 24 min 45 s.
The total distance extruded is 64605.8 mm.
The total distance traveled is 74537.5 mm.
The version is 2010-04-26
The volume extruded is 12.7 cc.
The volume extruded is 12.7 cc. (= 14 gramm for ABS)

now there is only 1 minute diffrent ??


but you can use the line "The total distance extruded is 64605.8 mm." to get the Meter of the 3mm Filament with a 0.5mm Hole in the Barrel.


Mfg
Wolfgang
Aller Anfang war schwer - Wolfstrap Reprap-fab.org Meine Meinung

Erfahrungen kann man leider schlecht weiter geben, die muss man selber machen.
Re: patch: total build time in Skeinforge
April 30, 2010 05:35AM
Actually "distance extruded" is an oval cross-section of layer-height x (layer-height x width-to-heigh-ratio) and not 0.5mm circular.


-------------------------------------------
* homeprototype free 3d design repository
* Blog
* Google+
Re: patch: total build time in Skeinforge
April 30, 2010 05:38AM
take an other File to complile... there is something wrong ?


The text has 52314 lines and a size of 1666.0 KB.
The total build time is 5 hours 37 minutes 54 seconds.
The total build time is 6 h 38 min 54 s.
The total distance extruded is 154453.7 mm.
The total distance traveled is 178879.6 mm.
The version is 2010-04-26
The volume extruded is 30.3 cc.
The volume extruded is 30.3 cc. (= 33 gramm for ABS)


Mfg
Wolfgang
Aller Anfang war schwer - Wolfstrap Reprap-fab.org Meine Meinung

Erfahrungen kann man leider schlecht weiter geben, die muss man selber machen.
Re: patch: total build time in Skeinforge
April 30, 2010 05:41AM
before you ask what i did...


for procedure in self.procedures:
self.addLine( procedure )
self.addLine( " " )
self.addLine( "The text has %s lines and a size of %s KB." % ( self.numberOfLines, kilobytes ) )
self.addLine( "The total build time is %s." % euclidean.getDurationString( self.totalBuildTime ) )
self.addLine( "The total build time is %s h %s min %s s." % ( int( round( self.totalBuildTime / 3600) ) , int( round( (self.totalBuildTime / 60) % 60 ) ) , int( round( self.totalBuildTime % 60 ) )))
self.addLine( "The total distance extruded is %s mm." % euclidean.getThreeSignificantFigures( self.totalDistanceExtruded ) )
self.addLine( "The total distance traveled is %s mm." % euclidean.getThreeSignificantFigures( self.totalDistanceTraveled ) )
if self.version != None:
self.addLine( "The version is " + self.version )
self.addLine( "The volume extruded is %s cc." % euclidean.getThreeSignificantFigures( volumeExtruded ) )
self.addLine( "The volume extruded is %s cc. (= %s gramm for ABS)" % (euclidean.getThreeSignificantFigures( volumeExtruded ) , int( round( 1.08 * volumeExtruded ) )))
return self.output.getvalue()


Mfg
Wolfgang
Aller Anfang war schwer - Wolfstrap Reprap-fab.org Meine Meinung

Erfahrungen kann man leider schlecht weiter geben, die muss man selber machen.
Re: patch: total build time in Skeinforge
April 30, 2010 06:00AM
Argh...we should not round() but cut off digits here


-------------------------------------------
* homeprototype free 3d design repository
* Blog
* Google+
Re: patch: total build time in Skeinforge
April 30, 2010 06:46AM
and now ? one houre more or less >grinning smiley< we have time ....


Mfg
Wolfgang
Aller Anfang war schwer - Wolfstrap Reprap-fab.org Meine Meinung

Erfahrungen kann man leider schlecht weiter geben, die muss man selber machen.
Re: patch: total build time in Skeinforge
April 30, 2010 07:31AM
Now i have what wont: smiling smiley

self.addLine( "The volume extruded is %s cc. (= ca. %s cm at 0.5mm Barrel and 3mm Filament )" % (euclidean.getThreeSignificantFigures( volumeExtruded ) , int( round( volumeExtruded / 3.14 / (0.15 * 0.15) ))))


Mfg
Wolfgang
Aller Anfang war schwer - Wolfstrap Reprap-fab.org Meine Meinung

Erfahrungen kann man leider schlecht weiter geben, die muss man selber machen.
Re: patch: total build time in Skeinforge
April 30, 2010 08:25AM
The size of the hole in the barrel makes no difference to the length of filament required! V = PI * r^2 * h; h = V / ( PI * r^2); regardless of whether you are using a 0.3 mm, 0.35 mm, 0.4 mm, 0.45 mm, 0.5 mm or other sized hole.

self.addLine( "The volume extruded is %s cc. (= ca. %s cm using perfectly round 3.0 mm Filament )" % (euclidean.getThreeSignificantFigures( volumeExtruded ) , int( round( volumeExtruded / 3.14 / (0.15 * 0.15) ))))


Bob Morrison
Wörth am Rhein, Germany
"Luke, use the source!"
BLOG - PHOTOS - Thingiverse
Best Pi ever winking smiley even 22/7 is more precise
import math
math.pi
Re: patch: total build time in Skeinforge
April 30, 2010 09:54AM
Actually I always used 355/113 if I don't have a PI variable.
It's accurate to 6 decimal places.
tongue sticking out smiley


Bob Morrison
Wörth am Rhein, Germany
"Luke, use the source!"
BLOG - PHOTOS - Thingiverse
Re: patch: total build time in Skeinforge
April 30, 2010 12:10PM
Python gives you math.pi as a constant.


[www.hydraraptor.blogspot.com]
Sorry, only registered users may post in this forum.

Click here to login