Simulation Of Redox Processes In Complex Environments