1 of 39

The Irrigation Problem

Dan Teague

NC School of Science and Mathematics

TCM 2024

https://www.youtube.com/watch?v=_MF_Jv9AvTk

2 of 39

3 of 39

What is Our Goal?

  1. Specifications for the pipe and nozzles (how far apart and where to drill the holes for the nozzles).

  • Some estimate on how uniform the distribution of water will likely be.

  • Some concerns that arose during your development of the model.

4 of 39

What Must We Do?

Determine a way to measure how much water each nozzle delivers on a plant that it moves across

Determine the effect of having overlapping spray from different nozzles.

Determine the distribution of the water over the width of the field.

Devise a metric to assess the uniformity of the water distribution over the field.

5 of 39

6 of 39

Cardinal Rule of Mathematical Modeling

Create the simplest version of the problem that contains the essence of the problem.

Make reasonable assumptions (that can be modified in later iterations).

Ignore extraneous realities.

7 of 39

George Box: All models are wrong; some models are useful.

Pablo Picasso: We all know that Art is not truth. Art is a lie that makes us realize truth at least the truth that is given us to understand.

8 of 39

Core Assumptions

  • All nozzles send a uniform spray over a circular area with a radius of 22 feet.

  • The system moves across the field as a solid unit and at a constant rate. This rate may be changed depending on the amount of water that needs to be delivered.

9 of 39

We will Ignore:

  • Wind

  • Uneven ground

  • Amount of water plants need

and speed of the system

10 of 39

End Conditions

  •  

11 of 39

Important Issues in Mathematical Modeling

Modeling vs Mathematics: The mathematical optimum is often not the real-world optimum. Sensitivity, practicality, and simplicity must be considered.

Sensitivity Analysis: What of your assumptions is most likely to be violated in reality? What is the most important variable to get right?

12 of 39

This diagram is a problem for students.

Why?

13 of 39

14 of 39

Distribution from One Nozzle

  •  

15 of 39

Water proportional to sum of the chord lengths

16 of 39

Water Spray, Chord Length, Water Distribution

17 of 39

Desmos

18 of 39

Very Uneven (Non-Uniform) Configurations

19 of 39

Water Function “Wave Front” (5 nozzles)

 

20 of 39

Desmos

21 of 39

Geogebra

22 of 39

Measures of Uniformity on [0, D]

Range Standard Deviation

Discrete Continuous

(computed numerically)

23 of 39

Python Program

24 of 39

No separation distance produces good uniformity.

Results differ based on the method of calculation, but all metrics show two satisfactory solutions to the uniformity problem.

25 of 39

26 of 39

27 of 39

Three Good Choices for Distance

28 of 39

29 of 39

30 of 39

31 of 39

Random Normal Nozzles N(22, 0.5)

32 of 39

Sensitivity Analysis

33 of 39

34 of 39

Netlogo Simulation

35 of 39

  • import numpy as np
  • import matplotlib.pyplot as plt
  • import statistics as stat
  • xlist = []
  • ylist = []
  • zlist = []
  • d = 5
  • while d < 44:
  •   def f(x):
  •     if x < -22 or x > 22:
  •       return 0
  •     else:
  •       return 2*(484-x**2)**0.5
  •   def w(x):
  •     return f(x)+f(x-d)+f(x+d)+f(x-2*d)+f(x+2*d)
  •   x = np.linspace(0,d,1000)
  •   y = np.array([w(num) for num in x])
  •   z = (max(y) - min(y)) # range
  •   sd = stat.stdev(y) #standard deviation
  • �  xlist.append(d)
  •   ylist.append(sd)
  •   zlist.append(z)
  •   d = d + 0.1
  • �plt.scatter(xlist, ylist)
  • plt.show()
  • plt.scatter(xlist, zlist)
  • plt.show()

36 of 39

Comparison of “Optimal” Solutions

37 of 39

Water Function Calculated Every Foot

 

38 of 39

Measures of Uniformity

Area Mean Absolute Deviation

Discrete Continuous

(computed numerically)

39 of 39

Irrigation

Distance Metric

20.04 sd

19.725 sd

19.9 Area

20.167 sd

37.22 sd

20 Area

20.161 sd