It may be useful to access some mesh adjacencies and quantities, in which case local pointers allow for more readable code:
Accessing cell porosity property values is required so values may be set:
Individual cell porosity values can be assigned to each cell, so they may be based on groups, geometric criteria, or any other time-independent functions:
When using the integral porosity model (cs_glob_porous_model == 3), the matching face equivalent surfaces can also be assigned in a corresponding manner, for interior faces:
and for boundary faces:
When not defined in this way, face porosities will match the lowest adjacent cell porosity.