I am working on the horizontal beam using the linear elastic dynamic equation (mass–stiffness–damping formulation).
I have a question about how to include gravity: should I explicitly apply the gravitational force in FEniCSx, or is it automatically included through the mass matrix?
In other words, does FEniCSx automatically account for the structure’s weight and apply a body force in the negative z-direction (assuming z is vertical), or do I need to add gravity manually?