Ethan Posted June 5, 2009 Posted June 5, 2009 Hello, How are the continuous contour images in 3-D Results in PetraSim constructed from discrete grid block values? Are they interpolated linearly between grid block centers? Is there any type of weighting scheme? Thanks, Ethan
Charlie Thornton Posted June 12, 2009 Posted June 12, 2009 Ethan, The simulation output gives us data for the cell centers. We use that data to interpolate values for the cell corners. Based on the interpolated corner data, we create the isosurfaces using VTK's ContourFilter class which I believe uses an implementation of the marching cubes algorithm for 3D volumes. The interpolation is linear - based on the distance between the corner and neighboring cell centers. - Charlie
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now