Reliability and Cost Assessment of Critical Components: Electrical generator failure of IDOM wave energy converter