$modelgainQWregion is a command to assign the quantum well region number in cavity mesh and gain mesh. The format is
$modelgainQWregion N cavQWlayer(1) ... cavQWlayer(N) gainQWlayer(1) ... gainQWlayer(N)