Rod anchoring

How to design a rod member anchoring from scratch?