Hi Bartosz,
In a Static Structural analysis, you could support the bottom of the device with a Fixed Support and apply an Acceleration load in a vertical direction (or use Components).
I don't know what you mean by "Under acceleration, check mass displacement and beam stress" please clarify.