implemented porosity and solid ratio in chemical material. FIrst draft, not checked