Simulation of a beam

thank you very much, the tips helped me a lot, in fact I have almost the simulation, I just can’t get the top part to deflect, how can I do it?