Mathematica Diffusion Simulation: Programmed by Coburn, Caleb. Simulation of diffusion in organic heterostructures, including least square fits and statistical goodness of fit analysis. Used to calculate fits to transient data in Fig 1, 3 and Extended Data Fig.2. Example data file included for download
Matlab Montecarlo simulation: Programmed by Coburn, Caleb. Montecarlo simulation of charge diffusion on a cubic lattice to determine lateral diffusion length as a function of barrier height, assuming thermionic emission over the barrier.
Matlab 2D Diffusion Simulation:Programmed by Coburn, Caleb. Modified from BYU Physics 430 Course Manual. Simulates diffusion around a film discontinuity, such a cut. Used to generate fits to Extended Data Fig. 1
Included are RegCM simulations driven by three different types of boundary conditions 1. ERA - present day only (1979-2005) 2. GFDL - present day (1978-2005) and future (2041-2065) 3. HadGEM - present day (1978-2005) and future (2041-2065) Each directory has three files with monthly averaged values: ATM: includes 4D (t,z,y,x) atmospheric fields (pressure, winds, temperature, specific humidity, cloud water) and some 3D fields (t,y,x) precipitation, soil temperature, soil water SRF: includes 3D (t,y,x) surface variables (surface pressure, 10m winds, drag coefficient, surface temperature, 2m air temperature, soil moisture, precipitation, runoff, snow, sensible heat flux, latent heat flux, surface radiation components (SW, LW), PBL height, albedo, sunshine duration) RAD: includes 4D radiative transfer variables (SW and LW heating, TOA fluxes, cloud fraction, ice water content) clm_h0 files: CLM land surface files, includes canopy variables, surface fluxes, soil moisture by layers, etc. "