I am using Modulus (-release_22.09) and trying to do Structural Analysis, I have read the input geometry in .stl file format.
I have used VoxelInferencer as well as VTKUniformGrid, still I am not able to see my point cloud data in image based data for visualisation using Paraview.
(When I have used Modulsu library, (modulus.geometry.primitives_3d) to define the geometry (reference example available with Modulus (example name: Bracket)); and used these VoxelInferencer & VTKUniformGrid class, I am able to convert my point cloud data to meshed/image file)
I am getting point cloud data which can be confirmed with attached screen shot.
my code for VoxelInferencer is shown below :
# Voxel interface
# add inferencer data
def mask_fn(x, y, z):
sdf = interior_mesh.sdf({“x”: x, “y”: y, “z”: z}, {})
return sdf[“sdf”] < 0
voxel_inferencer = VoxelInferencer(
bounds=[[-2, 2], [-2, 2], [-2, 2]],
npoints=[256, 128, 256],
nodes=nodes,
output_names=["u", "v", "w", "sigma_xy", "sigma_xz", "sigma_zz"],
export_map={"U": ["u", "v", "w"], "sigma_xx": ["sigma_xy"], "sigma_xz": ["sigma_xy"], "sigma_zz": ["sigma_zz"]},
mask_fn=mask_fn,
requires_grad=False,
batch_size=10000,
)
domain.add_inferencer(voxel_inferencer, "grid_infeStl143")
May you please suggest where I am doing wrong and the right way to do this.