Examples¶
The best way to learn OpenPNM (like anything) is to experiment. In this page, you can find lots of examples that will help you get started. The examples are categorized into the following categories:
General¶
Generators¶
blobs
borders
thickness
mode
bundle_of_tubes
cylinders
cylindrical_pillars_array
cylindrical_pillars_mesh
cylindrical_plug
faces
fractal_noise
insert_shape
lattice_spheres
line_segment
overlapping_spheres
polydisperse_spheres
pseudo_electrostatic_packing
phi
pseudo_gravity_packing
ramp
random_cantor_dust
random_spheres
rectangular_pillars_array
sierpinski_foam
sierpinski_foam2
spheres_from_coords
voronoi_edges
Filters¶
apply_chords
apply_chords_3D
apply_padded
chunked_func
distance_transform_lin
fftmorphology
fill_blind_pores
find_disconnected_voxels
find_dt_artifacts
find_peaks
find_trapped_regions
flood
flood_func
hold_peaks
local_thickness
nl_means_layered
nphase_border
pc_to_satn
porosimetry
prune_branches
reduce_peaks
region_size
satn_to_seq
seq_to_satn
size_to_satn
size_to_seq
snow_partitioning
snow_partitioning_n
snow_partitioning_parallel
trim_disconnected_blobs
trim_extrema
trim_floating_solid
trim_nearby_peaks
trim_nonpercolating_paths
trim_saddle_points
trim_small_clusters
Metrics¶
boxcount
chord_counts
chord_length_distribution
find_h
lineal_path_distribution
mesh_volume
mesh_surface_area
pc_curve
phase_fraction
pore_size_distribution
porosity
porosity_profile
props_to_DataFrame
props_to_image
radial_density_distribution
region_interface_areas
region_surface_areas
region_volumes
regionprops_3D
representative_elementary_volume
satn_profile
two_point_correlation
Networks¶
Simulations¶
Tools¶
align_image_with_openpnm
all_to_uniform
bbox_to_slices
extend_slice
[WIP]extract_cylinder
extract_regions
extract_subsection
get_border
get_planes
insert_cylinder
insert_sphere
isolate_object
[WIP]make_contiguous
marching_map
[WIP]mesh_region
[WIP]overlay
randomize_colors
[WIP]recombine
[WIP]subdivide
unpad