The Parametric Sweep Node
Using the COMSOL API you can run models in loops. See Adding a Parametric Sweep in the section Building Models.