A method for operating a vehicle having a fuel cell stack including a plurality of fuel cells, a compressor configured to supply compressed air to the fuel cell stack, a coolant pump configured to supply coolant to the fuel cell stack, and at least one valve controlling flow of the compressed air and at least one valve controlling flow of the coolant, the method comprising, by a vehicle controller:
- controlling an electronically actuatable vibration device to operate at a frequency based on a previously stored value for a natural frequency of the fuel cell stack for a specified time after a vehicle switch-on request or a vehicle switch-off request, the vibration device configured to vibrate at least one component of the fuel cell stack at the natural frequency.