A flexible simulation code for microwave curing of polymers