Virtual process chain for optimization of sandwich foldcores under flatwise compression