Search IntMath
Close

450+ Math Lessons written by Math Professors and Teachers

5 Million+ Students Helped Each Year

1200+ Articles Written by Math Educators and Enthusiasts

Simplifying and Teaching Math for Over 23 Years

# Roller Door Problem and Polymath Software

By Murray Bourne, 03 Apr 2016

Some time ago I wrote an article about a roller door problem. A reader needed a formula so he could easily work out the number of turns of a roller door for different height doors.
I presented 3 different models for solving the problem, all of which gave pretty good results.
A while later, I heard from Michael Cutlip, developer of Polymath Software. Polymath uses numerical approaches for problem solving. According to the site, the professional version can cope with:

• Linear Equations - up to 264 simultaneous equations
• Nonlinear Equations - up to 300 simultaneous nonlinear and 300 additional explicit algebraic equations
• Differential Equations - up to 300 simultaneous ordinary differential and 300 additional explicit algebraic equations
• Data analysis and Regression - up to 200 variables with up to 1000 data points for each, with capabilities for linear, multiple linear, and nonlinear regressions with extensive statistics plus polynomial and spline fitting with interpolation and graphing capabilities

Being numerical in approach, Polymath can export solutions to Excel for further analysis, or graphing. There is some integration with Matlab, too.
I had a play with Polymath, and I feel it is an interesting tool for numerical solutions to various problems. It's quite easy to set up problems and there are many example ones to get you going. There's a short free trial period.
As Michael rightly says:

My approach to general problem solving is to use numerical methods that are easily available within Polymath Software. My feeling is that real world problems are solved with numerical methods, and thus students and their teachers should utilize these techniques while math is being taught. Perhaps this is because I am a retired engineering professor and have been working in this area since about 1980. The application of numerical methods can make math much easier and much more fun...

## Roller Door Problem Solution with Numerical Methods

Michael worked on the roller door problem using Polymath Software and provided some more solutions.

Michael B. Cutlip
Emeritus Professor of Chemical Engineering
University of Connecticut, Storrs, CT 06269-3222

This solution utilizes numerical analysis problem solving capabilities such as are available in the easy-to-use Polymath Software.

The problem is detailed in the article Roller Door Problem, which contains some solutions.

## Michael's Solution using Polymath

### Problem 1: Given L, Determine n

The objective of the problem is to be able to design a spring system for a garage roller door to determine the number of turns for the door for the starting radius and the gap between spirals.

The length of the door is given by where

r = x + yθ

x = starting radius (x = 127.5)

y = gap/(2π) where gap is known (gap = 4)

a = 0

b = θ = 2πn (where n = turns) so n = θ /2π

Thus Writing the above integral equation as an ordinary differential equation (using Polymath notation) gives

d(L)/d(theta) =sqrt((x+y*theta)^2+y^2) (1)

Equation (1) can be used for a desired length *Ldesired” when the gap and x values are known. The initial condition for the differential equation is

L = 0 when θ = 0

Thus a numerical solution can determine the theta corresponding to this Ldesired value.

Since n = q /(2*pi), one can differentiate with respect to q, and the following differential equation can be used to calculate n

d(n) / d(theta) = 1/(2*pi) (2)

with initial condition of n = 0 at θ = 0.

The simultaneous numerical integration of differential equations (1) and (2) to the value of theta where L = Ldesired will give the calculated value of n that is the number of turns.

The Switch variable will be used to hold both L and n at the desired value of Ldesired by setting both derivatives equal to zero.

#### POLYMATH PROGRAM LISTING

# Roller Door Problem Parameters

x = 127.5
gap = 4
y = gap/(2*pi)
pi=3.1416
Ldesired = 2000

# Logic to hold integration when L= Ldesired yielding number of turns n.

# The Switch defined below is used to hold integrations of L and n at final conditions

Switch= If (L < Ldesired) Then (1) Else (0)

# Ordinary differential equations giving L and n

d(L) / d(theta) = Switch*sqrt((x+y*theta)^2+y^2)
n(0) = 0
L(0) = 0
d(n) / d(theta) = Switch/(2*pi)
theta(0) = 0
theta(f) = 20 # This value must be large enough to allow Ldesired to be attained (Switch becomes 0) during solution.

POLYMATH Report

Ordinary Differential Equations

Calculated values of DEQ variables

The answer is highlighted in red.

 Variable Initial value Minimal value Maximal value Final value 1 gap 4 4 4 4 2 L 0 0 2000.014 2000.014 3 Ldesired 2000 2000 2000 2000 4 n 0 0 2.405745 2.405745 (this is the answer) 5 pi 3.1416 3.1416 3.1416 3.1416 6 Switch 1 0 1 0 7 theta 0 0 20 20 8 x 127.5 127.5 127.5 127.5 9 y 0.6366183 0.6366183 0.6366183 0.6366183

Differential equations

 1 d(L)/d(theta) = Switch*sqrt((x+y*theta)^2+y^2) 2 d(n)/d(theta) = Switch/(2*pi)

Explicit equations

 1 x = 127.5 2 gap = 4 3 pi = 3.1416 4 y = gap/(2*pi) 5 Ldesired = 2000 6 Switch = If (L < Ldesired) Then (1) Else (0)

General

 Total number of equations 8 Number of differential equations 2 Number of explicit equations 6 Elapsed time 0.000 sec Solution method RKF_45 Step size guess. h 0.000001 Truncation error tolerance. eps 0.000001

## Problem 2: Given n, Determine L

The objective of the problem is to be able to design a spring system for a garage roller door to determine the number of turns for the door for the starting radius, the gap between spirals and the length of the door.

The simultaneous numerical integration of differential equations (1) and (2) to the value of theta where n = ndesired will give the calculated value of the door length L.

The Switch variable will be used to hold both L and n at the desired value of ndesired by setting both derivatives equal to zero.

### POLYMATH PROGRAM LISTING

# Roller Door Problem Parameters

x=127.5

gap=4

y=gap/(2*pi)

pi=3.1416

ndesired = 2

# Logic to hold integration when n = ndesired yielding door length
L The Switch defined below is used to hold integrations of L and
n at final conditions

Switch= If ( n < ndesired) Then (1) Else (0)

# Ordinary differential equations giving L and n

d(L) / d(theta) = Switch*sqrt((x+y*theta)^2+y^2)

n(0) = 0

L(0) = 0

d(n) / d(theta) = Switch/(2*pi)

theta(0) = 0

theta(f) = 20

# This last value must be large enough to allow ndesired to be attained (Switch
becomes 0) during solution.

POLYMATH Report

Roller Door Problem - Given n, Calculate L

Ordinary Differential Equations

Calculated values of DEQ variables

 Variable Initial value Minimal value Maximal value Final value 1 gap 4 4 4 4 2 L 0 0 1652.522 1652.522 (this is the answer) 3 n 0 0 2.000024 2.000024 4 ndesired 2 2 2 2 5 pi 3.1416 3.1416 3.1416 3.1416 6 Switch 1 0 1 0 7 theta 0 0 20 20 8 x 127.5 127.5 127.5 127.5 9 y 0.6366183 0.6366183 0.6366183 0.6366183

Differential equations

1. d(L)/d(theta) = Switch*sqrt((x+y*theta)^2+y^2)

2. d(n)/d(theta) = Switch/(2*pi)

Explicit equations

 1 x = 127.5 2 gap = 4 3 pi = 3.1416 4 y = gap/(2*pi) 5 ndesired = 2 6 Switch = If ( n < ndesired) Then (1) Else (0)

General

 Total number of equations 8 Number of differential equations 2 Number of explicit equations 6 Elapsed time 0.000 sec Solution method RKF_45 Step size guess. h 0.000001 Truncation error tolerance. eps 0.000001

## Conclusion

Thank you Michael for your numerical solutions! This is quite a neat way to solve this problem.

Be the first to comment below.

### Comment Preview

HTML: You can use simple tags like <b>, <a href="...">, etc.

To enter math, you can can either:

1. Use simple calculator-like input in the following format (surround your math in backticks, or qq on tablet or phone):
a^2 = sqrt(b^2 + c^2)
(See more on ASCIIMath syntax); or
2. Use simple LaTeX in the following format. Surround your math with $$ and $$.
$$\int g dx = \sqrt{\frac{a}{b}}$$
(This is standard simple LaTeX.)

NOTE: You can mix both types of math entry in your comment.
{"ft_lang_label":"__label__en","ft_lang_prob":0.8175151,"math_prob":0.9959989,"size":7830,"snap":"2022-40-2023-06","text_gpt3_token_len":2321,"char_repetition_ratio":0.13174035,"word_repetition_ratio":0.4217687,"special_character_ratio":0.32707536,"punctuation_ratio":0.0779661,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99934405,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,5,null,5,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-10-02T07:12:03Z\",\"WARC-Record-ID\":\"<urn:uuid:a542efaa-2455-4982-b0f4-a2580c947eac>\",\"Content-Length\":\"139951\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:37723b0b-2cf6-438b-8b43-29e0c3cf0270>\",\"WARC-Concurrent-To\":\"<urn:uuid:dc18daeb-5d09-4b66-8d4b-f4e6757bcc41>\",\"WARC-IP-Address\":\"104.21.75.93\",\"WARC-Target-URI\":\"https://www.intmath.com/blog/mathematics/roller-door-problem-and-polymath-software-8406\",\"WARC-Payload-Digest\":\"sha1:EP43NN6GRDDVQGGSW5ZJCEX5TOCE6N2J\",\"WARC-Block-Digest\":\"sha1:5H5DTFVGG7P4YPUQNAUCFRPE4VKUK5ZX\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030337287.87_warc_CC-MAIN-20221002052710-20221002082710-00553.warc.gz\"}"}