dynamic photosynthesis modeling