In the second module you encountered different aspects of numerical problems and solution techniques that interact with each other. You have the interaction of spatial and time discretization operating together, and the implications for stability of the numerical solution. You saw the effect of nonlinearity in the convection equation, and the interplay between diffusion and convection in Burgers’ equation. This is now a broader foundation to build your knowledge of numerical techniques.
In this module capstone, you will put all this to work in a new problem setting: a model of traffic flow. Picture a stretch of one-lane road that starts with light traffic followed by a short patch of higher density. As the patch moves downstream, how does it change? This traffic model will allow you to estimate minimum and average vehicle speeds and investigate how much the computed results depend on the grid and time step.

Figure 1:Vehicles along a stretch of road encounter a high-density patch of traffic. How can we predict the minimum and average vehicle speeds?
Engineering brief¶
A traffic modeling team wants to use a one-lane road model to compare how a dense patch evolves under two sets of traffic conditions. The team needs minimum and average vehicle speeds at selected times, along with enough evidence to decide whether the computed profiles support what they see happening to the patch.
The engineering question is:
Can the team report the minimum and average vehicle speeds with confidence, and which apparent changes in the patch might be caused by the grid and time step?
Start with the 51-point calculation as a provisional result. Compare it with finer calculations at the same physical times. Your recommendation should say which numbers are stable under refinement and what the profiles reveal about where the patch moves and how its edges change.
From density to traffic flux¶
Let measure distance downstream and measure time. The traffic density is the number of cars per kilometer of road. We model the local vehicle speed as a function of density alone. At very low density, drivers travel near the free-flow speed . At the maximum density , traffic is bumper to bumper and comes to a stop. Assume that the speed decreases linearly between these limits:
The traffic flux is the number of cars passing a point per hour. Multiplying density in cars per kilometer by vehicle speed in kilometers per hour gives
The flux is zero on an empty road because there are no cars to pass, and zero at bumper-to-bumper density because the cars are stationary.

Figure 2:Vehicle speed and traffic flux as functions of density . The flux reaches its maximum at .
How density changes¶
There are no ramps or other sources of cars along this road. The number of cars on any stretch increases when more cars enter than leave. As in the convection lesson, we express this balance with a conservation equation.
Where the density is smooth, the chain rule gives , with
Both and have units of kilometers per hour: describes how fast the cars move, while , the characteristic speed, describes how a small change in density travels through traffic. It’s the speed at which information, such as a green light or a braking car, propagates on the road. For densities below , this change travels downstream because . We will use the conservation form in Equation 3 to compute the evolution of the patch, whose initial density jumps at its two edges.
Problem setup: dense traffic patch, two scenarios¶
You will use this model to follow a dense patch of traffic as it moves along a one-lane road. You’ll run two scenarios that differ in free-flow speed and background density, then use the computed density to estimate minimum and average vehicle speeds at selected times. You’ll start with a coarse grid and repeat the calculations with finer grids and smaller time steps. By comparing both the speed summaries and the shape of the patch, you’ll judge which features persist under refinement and which may be due to numerical smearing.
The table gives the model parameters, baseline discretization, and speeds to report for each scenario.
| Setting | Scenario A | Scenario B |
|---|---|---|
| Road length | 11 km | 11 km |
| Maximum density | 250 cars/km | 250 cars/km |
| Free-flow speed | 80 km/h | 136 km/h |
| Background and left inflow density | 10 cars/km | 20 cars/km |
| Dense-patch density | 50 cars/km | 50 cars/km |
| Baseline grid and time step | 51 points, 0.001 h | 51 points, 0.001 h |
| Speeds to report | Minimum at 0 min, average at 3 min, minimum at 6 min | Minimum at 0 min, average and minimum at 3 min |
In both scenarios, the road starts at . Set the initial density to the dense-patch value from 2.2 km up to, but excluding, 4.4 km. Use the background density everywhere else. The comparison between scenarios reflects changes in both the free-flow speed and the background density.
The baseline grid includes both endpoints, so and the patch occupies the Python slice 10:20. Each time you double the number of intervals, double both slice indices to keep the patch in the same place and preserve its width.
Boundary conditions¶
The initial densities in both scenarios lie below half the maximum density. We will work in this range, where information enters at the left end of the road. Hold at the scenario’s background density throughout the run. The right end is an outflow boundary. Its density evolves with the solution.
Speeds to report¶
Use kilometers and hours in the calculation. You will evaluate the solution at the specified times (3 minutes is 0.05 h and 6 minutes is 0.10 h), and convert the vehicle speeds to meters per second for reporting.
For the minimum, use the smallest vehicle speed on the grid. For the average, take the arithmetic mean of the vehicle speeds at all grid points, including the endpoints. This is a spatial sample average. Each grid point carries the same weight regardless of the local number of cars.
Derive the conservative update¶
On paper — derive and check the traffic update
Before running the simulation, work through the discrete update of the density on paper. Use the four headings below to organize your notes. Keep your equations, units, and intermediate values so you can retrace your reasoning during a debrief of your work.
Speeds and units. Write down the units of , , , and . Differentiate to recover . For each scenario, use the range from background density to dense-patch density to find the sign and largest value of . Explain which neighbor supplies information to an updated point. Calculate the initial minimum vehicle speed in each scenario and show the conversion to meters per second.
Discrete update. Number the grid points from 0 at the inlet to at the outlet. Starting from Equation 3, use a forward difference in time and a backward difference of the flux. Solve for . Mark the time level of every quantity on the right-hand side, identify which nodes you update, and write down the value you hold fixed. Use the largest characteristic speed to write the CFL restriction and check the baseline time step in both scenarios.
Vehicle balance. Multiply the change at each updated node by and add over nodes 1 through . Write out the first and last flux differences and mark the terms that cancel. Express the change in the discrete vehicle total in terms of the two remaining fluxes.
One-step prediction. Use a separate three-point example with Scenario A’s speed and maximum density, , , and old densities cars/km from left to right. Hold the inlet at 10 cars/km. List the three old fluxes, calculate the new density at each updated node, and use the inlet and outlet fluxes to predict whether the discrete vehicle total increases or decreases. Compare that prediction with the change calculated from your updated densities.
Keep your first attempt. When you reach the worked update and supplied code below, compare them with your notes and record any correction beside your original reasoning. Use the supplied update for the simulation.
Plot the traffic model¶
In your notebook — make the model plots
Use the two scenarios to put numbers on the speed and flux curves above. The shaded bands mark the range from background density to patch density for each scenario. On the speed axes, compare the solid vehicle-speed curve with the dashed characteristic-speed curve. What tells you that the density disturbance travels downstream in both calculations?
import numpy as np
import matplotlib.pyplot as plt
road_length = 11.0
rho_max = 250.0
patch_density = 50.0
scenarios = {'A': (80.0, 10.0), 'B': (136.0, 20.0)} # (free-flow speed, background density)
def vehicle_speed(rho, u_max, rho_max):
return u_max * (1.0 - rho / rho_max)
def traffic_flux(rho, u_max, rho_max):
return rho * vehicle_speed(rho, u_max, rho_max)
def characteristic_speed(rho, u_max, rho_max):
return u_max * (1.0 - 2.0 * rho / rho_max)density = np.linspace(0.0, rho_max, 251)
fig, axes = plt.subplots(2, 2, figsize=(9, 6), sharex=True, sharey='col')
for (scenario, (u_max, background)), (ax_speed, ax_flux) in zip(scenarios.items(), axes):
ax_speed.plot(density, vehicle_speed(density, u_max, rho_max),
label='Vehicle speed')
ax_speed.plot(density, characteristic_speed(density, u_max, rho_max),
'--', label='Characteristic speed')
ax_speed.axhline(0, color='0.6', linewidth=0.8)
ax_speed.set(title=f'Scenario {scenario}', ylabel='Speed (km/h)')
ax_flux.plot(density, traffic_flux(density, u_max, rho_max), color='tab:green')
ax_flux.set(title=f'Scenario {scenario}', ylabel='Flux (cars/h)')
for ax in (ax_speed, ax_flux):
ax.axvspan(background, patch_density, color='0.5', alpha=0.17)
axes[0, 0].legend()
for ax in axes[-1]:
ax.set_xlabel('Density (cars/km)')
fig.tight_layout()
plt.show()From a place on the road to a point on the curve¶
The model curves above answer “What speed or flux does the model predict at this density?” Their horizontal axis is density. A snapshot of the road answers “What is the density at this location?” Its horizontal axis is distance.
Start at a labeled location on the left, read its density, then use that density on the horizontal axis on the right. Locations P and R are kilometers apart, but they have the same initial density in Scenario A, so they map to the same point on the speed curve. Location Q is inside the patch and maps to a lower speed. You can read the flux curve in the same way, using the density at the location you picked.
u_max_A, background_A = scenarios['A']
fig_views, (ax_road, ax_curve) = plt.subplots(1, 2, figsize=(9, 3.4))
ax_road.stairs(
[background_A, patch_density, background_A],
[0.0, road_length / 5, 2 * road_length / 5, road_length],
baseline=None, color='0.35',
)
ax_road.set(
title='1. Read density at a road location',
xlabel='Distance along the road (km)', ylabel='Density (cars/km)',
xlim=(0, road_length), ylim=(0, 65),
)
ax_curve.plot(density, vehicle_speed(density, u_max_A, rho_max), color='0.35')
ax_curve.set(
title='2. Use that density on the model curve',
xlabel='Density (cars/km)', ylabel='Vehicle speed (km/h)',
xlim=(0, rho_max), ylim=(0, 90),
)
for label, distance, local_density, color in (
('P', 1.1, background_A, 'tab:blue'),
('Q', 3.3, patch_density, 'tab:orange'),
('R', 5.5, background_A, 'tab:blue'),
):
ax_road.scatter(distance, local_density, color=color, zorder=3)
ax_road.annotate(label, (distance, local_density),
xytext=(0, 7), textcoords='offset points', ha='center',
color=color)
for label, local_density, color in (
('P and R', background_A, 'tab:blue'),
('Q', patch_density, 'tab:orange'),
):
speed = vehicle_speed(local_density, u_max_A, rho_max)
ax_curve.scatter(local_density, speed, color=color, zorder=3)
ax_curve.annotate(label, (local_density, speed),
xytext=(8, 5), textcoords='offset points', color=color)
fig_views.tight_layout()
plt.show()Advance and check the traffic model¶
Compare your discrete update with the supplied step¶
We apply a backward difference to the flux in Equation 3 and solve the forward difference in time for the new density.
The two slices of the old flux array, flux[1:] and flux[:-1], pair each updated node with its left neighbor. The first density stays fixed, and the last density is updated by the same rule as the interior. The step returns the old outlet flux minus the old inlet flux, so the time loop can accumulate the net number of cars that left.
For the chosen densities, the characteristic speed is positive and largest at the smallest density. To see why the initial range is preserved, factor the flux difference. The factor multiplying is . This is the characteristic speed evaluated at the average of the two densities. If , the update is a weighted average of the two old densities, with nonnegative weights that sum to one. The fixed inlet lies in the same range, so the initial density bounds and the same CFL limit apply at each step.
def traffic_step(rho, dx, dt, u_max, rho_max):
'''Advance one conservative step with a fixed left inlet.'''
flux = traffic_flux(rho, u_max, rho_max)
next_rho = rho.copy()
next_rho[1:] = rho[1:] - (dt / dx) * (flux[1:] - flux[:-1])
return next_rho, flux[-1] - flux[0]Check one step against your notes¶
Run the same three-point example you worked through on paper. First compare each updated density with your hand result. Then check whether the change in the number of cars agrees with what you predicted from the inlet and outlet fluxes.
To estimate the total number of cars on the grid, multiply each updated node’s density (cars/km) by the grid spacing (km) and add: . This is the same sum over nodes 1 through that you used in the paper balance. The fixed inlet at node 0 contributes through its flux.
The cell computes the change in from the old and new densities. Your paper calculation gives another way to find that change: use the old fluxes and multiply the inlet flux minus the outlet flux by the time step. The balance residual is the difference between these two estimates, in cars. How close is it to zero?
rho_test = np.array([10.0, 50.0, 20.0])
dx_test, dt_test = 1.0, 0.005
rho_next, net_outflow = traffic_step(rho_test, dx_test, dt_test, 80.0, rho_max)
change = dx_test * (rho_next[1:].sum() - rho_test[1:].sum())
print('Updated densities (cars/km):', rho_next)
print(f'Change in discrete total (cars): {change:.2f}')
print(f'Balance residual (cars): {change + dt_test * net_outflow:.2e}')See what a constant-state check misses¶
A constant density is a useful first test. If every point, including the inlet, starts at the same density, the flux is the same everywhere, so the density should stay unchanged. How much does passing this test tell us about the update?
To find out, we will test the supplied conservative step alongside a version with one deliberate mistake. The wrong step replaces the flux difference in Equation 5 with a density difference multiplied by the local vehicle speed, . The grid, time step, and inlet are the same for both versions.
Start with constant density. Both versions start with cars/km. Predict what each will do when both the flux differences and the density differences are zero. The first two lines of output tell you whether each version leaves that state unchanged.
Return to the hand example. Both versions start with cars/km. Compare the wrong update’s densities with your hand calculation and the conservative result above. Because the inlet and outlet fluxes differ in this example, you also have an independent prediction for the change in the discrete vehicle total. Use the same prediction for both versions: times the old inlet flux minus the old outlet flux, with both fluxes inside the time-step factor. A balance residual measures how far the computed change is from that prediction.
def wrong_traffic_step(rho, dx, dt, u_max, rho_max):
'''Take a deliberately wrong step using vehicle speed.'''
next_rho = rho.copy()
speed = vehicle_speed(rho[1:], u_max, rho_max)
next_rho[1:] = rho[1:] - (dt / dx) * speed * (rho[1:] - rho[:-1])
return next_rho
constant = np.full_like(rho_test, rho_test[0])
u_max_A, _ = scenarios['A']
constant_correct, _ = traffic_step(constant, dx_test, dt_test, u_max_A, rho_max)
constant_wrong = wrong_traffic_step(constant, dx_test, dt_test, u_max_A, rho_max)
wrong_next = wrong_traffic_step(rho_test, dx_test, dt_test, u_max_A, rho_max)
wrong_change = dx_test * (wrong_next[1:] - rho_test[1:]).sum()
print('Constant state preserved by conservative step:', np.array_equal(constant_correct, constant))
print('Constant state preserved by wrong step:', np.array_equal(constant_wrong, constant))
print('Wrong update on the hand example (cars/km):', wrong_next)
print(f'Wrong update balance residual (cars): {wrong_change + dt_test * net_outflow:.2f}')Compare the two residuals and the two updated arrays with your notes. Why does a constant state give both updates the same result? Which checks distinguish them on the nonuniform example? A small balance residual checks the net change in the discrete total. The hand calculation also checks how the change is distributed among the nodes.
Set up and run the baseline calculation¶
The initializer uses the number of intervals, , so the array contains points. On grids with divisible by five, integer slice indices put the patch boundaries at one-fifth and two-fifths of the road length.
The driver advances to a single requested time . It rounds up to choose the number of steps and divides by that count to get the actual step. It checks the CFL number before advancing. The driver is for the positive characteristic speeds in this capstone, with the leftmost initial value held fixed. It saves the final array, the accumulated net outflow, and the step information needed to compare runs.
def traffic_initial_state(N, background):
'''Build the road grid and the initial density patch.'''
if N < 5 or N % 5 != 0:
raise ValueError('Use a positive interval count divisible by five.')
x = np.linspace(0.0, road_length, N + 1)
rho = np.full(N + 1, float(background))
rho[N // 5:2 * N // 5] = patch_density
return x, rho
def advance_traffic(rho0, dx, t_final, dt_max, u_max, rho_max):
'''Advance the positive-speed traffic model to one observation time.'''
if not (dx > 0 and t_final > 0 and dt_max > 0 and u_max > 0 and rho_max > 0):
raise ValueError('Use positive spacings, times, speed, and maximum density.')
rho = np.array(rho0, dtype=float, copy=True)
if rho.ndim != 1 or rho.size < 2 or not np.all(np.isfinite(rho)):
raise ValueError('Use a finite, one-dimensional density array with at least two points.')
if rho.min() < 0 or rho.max() >= rho_max / 2:
raise ValueError('Densities must be at least zero and below half the maximum density.')
steps = int(np.ceil(t_final / dt_max))
dt = t_final / steps
a_max = characteristic_speed(rho.min(), u_max, rho_max)
cfl = a_max * dt / dx
if cfl > 1.0:
raise ValueError('CFL number exceeds one. Choose a smaller maximum time step.')
net_outflow = 0.0
for _ in range(steps):
rho, flux_difference = traffic_step(rho, dx, dt, u_max, rho_max)
net_outflow += dt * flux_difference
return {'rho': rho, 'dt': dt, 'steps': steps, 'cfl': cfl,
'net_outflow': net_outflow, 'work': (rho.size - 1) * steps}Begin with 50 intervals and the baseline maximum step of 0.001 h. Each call starts from the same initial state for its scenario. Store the returned profiles so you can compare them with finer grids later. The six numbers are baseline estimates. The refinement investigation will show how sensitive they are to the grid and step.
baseline_intervals = 50
baseline_dx = road_length / baseline_intervals
baseline_dt = 0.001
observation_times = {'A': (0.05, 0.10), 'B': (0.05,)}
baseline = {}
for scenario, (u_max, background) in scenarios.items():
x, rho0 = traffic_initial_state(baseline_intervals, background)
baseline[scenario] = {'x': x, 'rho0': rho0, 'runs': {}}
for time in observation_times[scenario]:
baseline[scenario]['runs'][time] = advance_traffic(
rho0, baseline_dx, time, baseline_dt, u_max, rho_max
)
print(f"{'Scenario':<9} {'Time (min)':>10} {'Statistic':>10} {'Speed (m/s)':>12}")
for scenario, time, statistic in (
('A', 0.0, 'minimum'), ('A', 0.05, 'average'), ('A', 0.10, 'minimum'),
('B', 0.0, 'minimum'), ('B', 0.05, 'average'), ('B', 0.05, 'minimum'),
):
data = baseline[scenario]
rho = data['rho0'] if time == 0 else data['runs'][time]['rho']
u_max, _ = scenarios[scenario]
speed = vehicle_speed(rho, u_max, rho_max) / 3.6
value = speed.min() if statistic == 'minimum' else speed.mean()
print(f'{scenario:<9} {60 * time:10.0f} {statistic:>10} {value:12.3f}')Check the baseline runs before refining¶
At each observation time, check that the inlet is unchanged, that the densities stay within their starting range, and that the reported CFL number satisfies the restriction. Then check the cumulative vehicle balance. Let be the discrete total over the updated nodes. The balance residual is
The solver already accumulated the last term using the old boundary fluxes at each step. Compute the change in from the initial and final arrays. Compare the residual with a tolerance scaled to the totals and accumulated flux, allowing for floating-point rounding over many updates.
for scenario, data in baseline.items():
initial = data['rho0']
initial_total = baseline_dx * initial[1:].sum()
for time, run in data['runs'].items():
final = run['rho']
final_total = baseline_dx * final[1:].sum()
residual = final_total - initial_total + run['net_outflow']
balance_tolerance = 1e-12 * (
abs(initial_total) + abs(final_total) + abs(run['net_outflow'])
)
density_tolerance = 1e-12 * initial.max()
assert final[0] == initial[0], 'The inlet density changed.'
assert final.min() >= initial.min() - density_tolerance, 'Density fell below the initial range.'
assert final.max() <= initial.max() + density_tolerance, 'Density exceeded the initial range.'
assert 0 < run['cfl'] <= 1, 'CFL number outside the supported range.'
assert abs(residual) <= balance_tolerance, 'Discrete vehicle balance failed.'
print(f'{scenario}, {60 * time:g} min: CFL = {run["cfl"]:.3f}, '
f'density = [{final.min():.2f}, {final.max():.2f}] cars/km, '
f'balance residual = {residual:.2e} cars')Self-check — explain the baseline evidence
Compare these CFL numbers with your paper estimates. What does the balance check tell you about how cars enter and leave the discrete road? A run can satisfy these checks and still smear the dense patch. In the refinement investigation, you will test how much the reported speeds and the shape of the patch change on finer grids.
Look at the density along the road¶
Plot density against distance for the initial state and the saved observation times. Both panels use the same axes. The dashed line shows the initial density patch. For the later snapshots, the markers show the computed values at the grid points and the lines connect them to guide your eye.
fig_baseline, axes_baseline = plt.subplots(
1, 2, figsize=(9, 3.4), sharex=True, sharey=True,
)
for ax, (scenario, data) in zip(axes_baseline, baseline.items()):
_, background = scenarios[scenario]
ax.stairs(
[background, patch_density, background],
[0.0, road_length / 5, 2 * road_length / 5, road_length],
baseline=None, color='0.35', linestyle='--', label='0 min',
)
for time, run in data['runs'].items():
ax.plot(data['x'], run['rho'], marker='.', markersize=3,
label=f'{60 * time:g} min')
ax.set(title=f'Scenario {scenario}', xlabel='Distance along the road (km)',
xlim=(0, road_length))
ax.legend()
axes_baseline[0].set_ylabel('Density (cars/km)')
fig_baseline.tight_layout()
plt.show()For each scenario, compare the initial patch with the three-minute snapshot. Where has the region of highest density moved? How have its peak and its two edges changed? For Scenario A, follow those changes through six minutes. Use the model speed curve to explain how a change in the peak density affects the minimum vehicle speed.
The baseline profiles show how the patch evolves in the 51-point calculation. To tell which features depend on the discretization, compare profiles at the same physical time with the same initial patch on finer grids. Choose one feature to track, such as the height of the peak or the width of an edge, and write down what evidence would make you trust the baseline picture of that feature.
Investigate space–time refinement¶
Plan the grid and time-step study¶
Return to the feature you chose in the baseline plots. Write down what you expect to change as the grid gets finer. If you halve both and the time step, how do you expect the CFL number and the number of point updates to change? Keep these predictions in your notes.
Use the supplied solver to compare grids with 50, 100, 200, 400, 800, and 1,600 intervals. These have 51 through 1,601 points. Start with a maximum time step of 0.001 h and halve it each time you double the interval count. Keep the same physical patch and compare at the same observation times: 3 and 6 minutes for A, and 3 minutes for B.
Decide what to measure¶
For each adjacent pair of grids, find the absolute change in each requested speed summary at a positive time. Also compare the full vehicle-speed profiles at every positive observation time. Convert to m/s before comparing. Every second fine-grid point coincides with a coarse-grid point, including both endpoints. At those shared points, take the absolute speed differences and compute their trapezoidal average over the road.
Here is the coarse spacing. Take absolute differences before averaging so that differences of opposite sign cannot cancel. A small whole-road average can still conceal a large change near one edge.
Set the decision rule before running¶
For a given scenario, mark a grid pair as passing if every applicable speed summary change and every profile average is below 0.1 m/s. Use unrounded values. The candidate is the finer grid in the second of the first two consecutive passing pairs.
On that candidate grid, halve the maximum time step and repeat the runs at the same observation times. Check that the requested summary changes and the profile averages between the two time-step choices are also below 0.1 m/s. For this comparison the grids are identical, so use all points directly. If either stage leaves you without a passing result, report which measure is unresolved within the tested runs. The threshold describes sensitivity to these changes in grid and step.
Record the agent task brief¶
With an agent — draft the refinement experiment
Give your agent the experimental design above and a short brief in your own words. Include these requirements:
Use the existing initializer, solver, and vehicle-speed function. Give their names and arguments. Start every run from the scenario’s initial patch, with the spacing computed from the interval count. Reuse the saved baseline if it matches the brief.
Retain the positions, initial and final densities, and solver diagnostics for each scenario, grid, and time. Ask for a run table with interval count, time, actual step, CFL number, step count, and point-update count. Ask for a comparison table with the applicable summary changes and profile averages in m/s, plus the fixed-grid time-step comparisons. Compute values from the retained arrays.
Ask the agent to restate the experiment before drafting code. Resolve any differences, then ask it to add only unexecuted experiment cells after this section. Keep the supplied solver and earlier cells intact. If the agent works in chat, ask for cells you can inspect and paste. Reserve the resolution judgment and interpretation for yourself.
Audit before running¶
Before executing, trace one comparison through the proposed code. Check the scenario parameters, patch alignment, actual observation time, and the pairing of shared positions. Check that the endpoints receive half weight in the profile average and that work counts the updated nodes times the actual number of steps. If something differs from your brief, request a focused correction and inspect it before running.
Check one result independently¶
In your notebook — reproduce one profile comparison
Choose one row from the adjacent-grid comparison table. Use the saved density arrays to recompute its profile average in a separate cell. Confirm that the selected fine-grid positions match the coarse positions, convert both profiles to speed, and apply the endpoint weights yourself. Compare your result with the table and explain any discrepancy. For one run, also check that the reported step count times the actual step gives the requested time.
Return to the feature you chose in the baseline plots. Overlay two profiles at the same time and mark where they differ near that feature. Record what the local comparison adds to the summary changes and whole-road average. Keep a short agent record with your brief, material revisions, and the checks you performed.
Write your engineering verdict¶
Write a short verdict in your working notebook. Use the tables, the comparison you reproduced, and the profile overlay you already made.
For each scenario, state which grid and actual time step support your reported speeds under the sensitivity rule. Give the speed estimates in m/s and cite the comparisons and work counts that support your choice. If the evidence leaves a claim unresolved, say which measure or check limits it.
Point to the feature you tracked in the overlay. Explain what changed with refinement and what the whole-road average or the minimum alone would have missed.
Name one consequential check you used to assess the agent’s experiment. Explain what the evidence supports within this idealized model and what you would need to compare the prediction with traffic on a real road.
Self-check — defend your traffic results
Use your existing notes, tables, and plots to talk through these questions.
Which speed determines the upstream direction of the update? Why does the solver update the outlet point?
Why did the deliberately wrong update pass the constant-state check? Which result from the three-point case exposed it?
Point to the grid comparisons and fixed-grid time-step check that support your choice for one scenario. What did you verify independently about one comparison?
Point to a feature in your overlay that the speed summaries alone cannot describe. Why can the sensitivity rule pass while that feature still changes?
Completion rubric¶
| Level | Evidence in your work |
|---|---|
| 4 — Complete with distinction | The core evidence is complete, and you use it to explain a consequential uncertainty or limitation, such as a local change concealed by a stable whole-road average. |
| 3 — Complete | You can explain your paper update and verification checks, show how you audited the refinement experiment, and defend your verdict from the evidence. |
| 2 — Developing | You can explain a substantial attempt, identify a gap that weakens your claim, and propose a concrete revision. |
| 1 — Not assessable | Essential evidence is missing or you cannot explain a consequential part of the work. |