We propose a model for the structure formation of jellyfish swimming based on active Brownian particles. We address the phenomena of counter-current swimming, avoidance of turbulent flow regions and foraging. We motivate corresponding mechanisms from observations of jellyfish swarming reported in the literature and incorporate them into the generic modelling framework. The model characteristics is tested in three paradigmatic flow environments.