visit-dav / visit

VisIt - Visualization and Data Analysis for Mesh-based Scientific Data
https://visit.llnl.gov
BSD 3-Clause "New" or "Revised" License
427 stars 109 forks source link

Refine MFEM boundary meshes using MultiresControl operator. #19691

Open BradWhitlock opened 1 month ago

BradWhitlock commented 1 month ago

I thought I've been able to do this before but perhaps it was with Blueprint. The DT team has been trying to visualize boundary meshes for MFEM meshes written via VisItDataCollection and read into VisIt via an mfem_root file. It is possible to plot the boundary mesh but when a MultiresControl operator is applied to it, nothing happens.

I examined the code in avtMFEMFileFormat::GetMesh and for boundary meshes, it takes a code path into avtMFEMDataAdaptor::BoundaryMeshToVTK that does not permit refinement. We want to be able to refine the boundary mesh so we can see it curved with the refined normal mesh.

Is your feature request specific to a data set?

It looks like any MFEM dataset will have this issue.

Describe the solution you'd like.

We want to be able to create a Mesh plot of the boundary mesh and apply a MultiresControl operator to it to control the boundary mesh refinement in the same way that we would for a normal MFEM mesh.

cyrush commented 1 month ago

thanks @BradWhitlock I don't think we have supported this before, but I agree its a good idea for us to provide this support.