Predicting thermal and mechanical performance of stochastic and architected foams