darsia.ExtrudedPorousGeometry#
- class ExtrudedPorousGeometry(porosity, depth, space_dim, num_voxels, dimensions=None, voxel_size=None, **kwargs)[source]#
Bases:
WeightedGeometryClass containing information of a porous geometry.
Constructor for extruded, porous, two-dimensional geometry.
- Parameters:
Methods
integrate(data)Integrate data over the entire geometry.
make_extensive(data)Convert intensive values to integrated per-cell values on geometry grid.
normalize(img, img_ref[, return_ratio])Normalize image with respect to another one, such that both have the same integral.
subregion(roi)Extract subregion of the geometry.
update(depth)Update effective depth and recompute weighted volume.
Attributes
weightWeight of the geometry, can be a scalar or an array.
voxel_volumeEffective voxel volume in 3d.
cached_voxel_volumeInternal copy of the voxel volume for efficient integration.
space_dimSpatial dimension of geometry.
num_voxelsNumber of voxels in each spatial direction.
voxel_sizeDimensions of a single voxel.
dimensionsDimensions of geometry.