Aluminium and magnesium foundry alloys