  We study numerically the formation of molecular clouds in large-scalecolliding flows including self-gravity. The models emphasize the competitionbetween the effects of gravity on global and local scales in an isolated cloud.Global gravity builds up large-scale filaments, while local gravity --triggered by a combination of strong thermal and dynamical instabilities --causes cores to form. The dynamical instabilities give rise to a local focusingof the colliding flows, facilitating the rapid formation of massiveprotostellar cores of a few 100 M$_\odot$. The forming clouds do not reach anequilibrium state, though the motions within the clouds appear comparable to``virial''. The self-similar core mass distributions derived from models withand without self-gravity indicate that the core mass distribution is set veryearly on during the cloud formation process, predominantly by a combination ofthermal and dynamical instabilities rather than by self-gravity.
We study numerically the formation of molecular clouds in large-scale colliding flows including self-gravity. The models emphasize the competition between the effects of gravity on global and local scales in an isolated cloud.