Hello! thank for the reply!
thanks for the advice about the mesh. About the heat flux, the experiment is trying simulate de interaction between a CPU and a heatsink, so i expect to simply set a heat flux entering the foam from the bottom, being sincere I don't know how to set a heat flux with those characteristics.