Shaping inductor geometry for casting functionally graded composites