Parameterized material properties, density

Given either a part property or global variable in `equations' representing the porosity of a material, is it possible to create a parameterized expression for material density which is some function of porosity?

The question of whether one can represent the density of a material as a function of temperature should be effectively the same.

Any advice is greatly appreciated.

SolidworksParts And Features