Physics Informed Learning For Dynamic Modeling Of Beam Structures