A heterogenous environment usually impacts, and sometimes determines, the structure and function of organisms in a population. We simulate the effects of a chemical on a population in a spatially heterogeneous environment to determine perceived stressor and spatial effects on dynamic behavior of the population. The population is assumed to be physiologically structured and composed of individuals having both sessile and mobile life history stages, who utilize energetically-controlled, resource-directed, chemical-avoidance advective movements and are subjected to random or density dependent diffusion. From a modeling perspective, the presence of a chemical in the environment requires introduction of both an exposure model and an effects module. The spatial location of the chemical stressor determines the exposure levels and ultimately the effects on the population while the relative location of the resource and organism determines growth. We develop a mathematical model, the numerical analysis for this model, and the simulation techniques necessary to solve the problem of population dynamics in an environment where heterogeneity is generated by resource and chemical stressor. In the simulations, the chemical is assumed to be a nonpolar narcotic and the individuals respond to the chemical via both physiological response and by physical movement. In the absence of a chemical stressor, simulation experiments indicate that despite a propensity to move to regions of higher resource density, organisms need not concentrate in the vicinity of high levels of resource. We focus on the dynamical variations due to advection induced by the toxicant. It is demonstrated that the relationship between resource levels and toxicant concentrations is crucial in determining persistence or extinction of the population.