$ifonlysolvecavity is the command to make the simulation program only solve the cavity mode. the format is
$ifonlysolvecavity