Two channels. A person who has not yet heard the message can learn it from the mass medium (advertising, news) at rate p per day, or from word of mouth from people who already know it, at rate q times the fraction of informed contacts. In the agent model each uninformed person gets the hazard h = p + q [(1−ρ) flocal + ρ F], where flocal is the informed fraction of their 8 grid neighbours, F the informed fraction of the whole population and ρ the "mixing" slider (0 = purely local gossip, 1 = everyone talks to everyone). Each time step of length Δt a person learns it with probability 1 − exp(−h Δt).
Bass model. For a well-mixed population the informed fraction obeys dF/dt = (p + qF)(1 − F) with solution F(t) = (1 − e−(p+q)t) / (1 + (q/p) e−(p+q)t). The rate of new adopters peaks at t* = ln(q/p) / (p+q) when q > p (the S-curve's steepest point); with q ≤ p the advertising simply decays from day one. The simulator checks the closed form against a numerical integration and the agent model (with ρ=1) against the closed form.
Honest simplifications. Real media audiences are heterogeneous, messages decay, people forget or reject them, and real social networks have hubs and clusters rather than a grid. There is no persuasion model, no opinion change and no counter-messaging: "informed" is a one-way switch, so this is a model of awareness spreading, not of public-opinion formation. Parameters are illustrative.