Investigation of static and dynamic magnetic properties in magnetic micro and nano elements with varying shapes