Galaxies-intergalactic medium interaction calculation I: galaxy formation as a function of large-scale environment | Synapse