Skip to content

This Python script uses tkinter and matplotlib to create an interactive app for plotting paper movement in a paper machine. Users input parameters, and the script calculates leading/trailing edge positions over time, displaying a detailed annotated plot.

Notifications You must be signed in to change notification settings

abraxas4/PaperTransportationSimulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

PaperTransportationSimulator

This repository contains a Python script that uses tkinter and matplotlib to create an interactive application for plotting the movement of a paper in a paper machine. The user can input various parameters, such as time duration, initial speed, paper length, and specific points for speed changes. The script calculates the position of the leading edge (LE) and trailing edge (TE) of the paper over time and displays the resulting plot. The plot also includes annotations for the change points, as well as the differences in position and time between these points.

(example)

GUI :

image

Log :

// ******************** //
// ****** Start ******* //
// ******************** //
Y_points given =  [0, 10, 200]
speeds given =  [0, 500, 1000, 500]
         prev = ( 0 , 0 )
         Y =  10 , speed =  500 -> X =  20   
         next = ( 20 , 10 )


         prev = ( 20 , 10 )
         Y =  200 , speed =  1000 -> X =  210
         next = ( 210 , 200 )


3-0. X_points =  [0, 20, 210, 410]
3-1. Y_points =  [0, 10, 200]
4. lastY =  300.0  =  200 + 410 * 500 /1000
5-0. X_points =  [0, 20, 210, 410]
5-1. Y_points =  [0, 10, 200, 300.0]
6. le_points =
 [[  0.   0.]
 [ 20.  10.]
 [210. 200.]
 [410. 300.]]
7. te_points =
 [[   0. -100.]
 [  20.  -90.]
 [ 210.  100.]
 [ 410.  200.]]
Loop # 0 X_cur = X =  0
Loop # 1 X_cur = X =  20
         dashed Line Horizonal:  ( 0 , 0 ) ->  ( 20 , 0 )
         dashed Line Verical:  ( 20 , 0 ) ->  ( 20 , 10 )
Loop # 2 X_cur = X =  210
         dashed Line Horizonal:  ( 20 , 10 ) ->  ( 210 , 10 )
         dashed Line Verical:  ( 210 , 10 ) ->  ( 210 , 200 )
Loop # 3 X_cur = X =  410
         dashed Line Horizonal:  ( 210 , 200 ) ->  ( 410 , 200 )
         dashed Line Verical:  ( 410 , 200 ) ->  ( 410 , 300.0 )

About

This Python script uses tkinter and matplotlib to create an interactive app for plotting paper movement in a paper machine. Users input parameters, and the script calculates leading/trailing edge positions over time, displaying a detailed annotated plot.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages