A modelling framework within which transport processes in the hydrosphere can be described and interfaced with relevant biogeochemical reactions is presented. Three key elements of this simulation environment are discussed: (1) a numerical engine for solving sets of coupled non-linear process equations; (2) an automated procedure for model code generation (`Automatic Code Generator'); (3) a Web-distributed Knowledge Base (KB) of processes. The Automatic Code Generator translates the information selected in the KB into computer algorithms using the principles defined in the numerical engine. The code CONTRASTE is a first attempt at developing such a modelling framework. It allows one to easily select, adapt and combine a specific set of biogeochemical processes relevant to a user-defined application. The workings of CONTRASTE are described by means of examples which demonstrate how the various components of the simulation environment are coupled and automated. Prospects for future developments towards a fully automated model generation procedure are discussed.