%% Grid properties
xmin = 0; xmax = 10; % x-axis interval
ymin = 0; ymax = 50;
dt = 0.02;% y-axis interval
%% Constants
diff_const = 1; %Diffusion constant
decay_const = 1; %Decay constant
car_emission = 0.5;
number_of_cars = 1;
car_loction = ......% starting coordinates of car
%% Equations
diffusion =
decay =
pollution_release = number_of_vehicles*release_const + Q %constant added to the pollutant concentration for each time step at the positions where there are cars
wind = %transports pollution in one direction
Q(t+dt) = Q + pollution_release + diffusion - decay;
[x,y] = meshgrid (linspace(xmin,xmax,1),linspace(ymin,ymax,1));
end