svalinn / DAGMC

Direct Accelerated Geometry Monte Carlo Toolkit
https://svalinn.github.io/DAGMC
Other
98 stars 63 forks source link

Ability to visualize geometry shaded/colored by material/density #59

Open gonuke opened 11 years ago

gonuke commented 11 years ago

(Suggestion from Tim Bohm)

It would useful to develop (or demonstrate if existing) the ability to display a geometry (in Paraview or Cubit) with its volumes shaded and/or colored by denisty and/or material assignment. This would provide a useful visual capability to review material assignments.

makeclean commented 11 years ago

The easiest way to do this would be to create the simplest possible tetmesh for the problem, coloring each element of the mesh by the mat id. I guess the simplest thing would be to loop over the facets of the geometric entry and make each facet a tet by choosing the centroid as the 4th point. We can then easily plot the mat distribution. The challenge will be picking a point where the centre of mass is within the volume, specifically with odd shaped volumes.

gonuke commented 11 years ago

On the Paraview side, I think the contributions of @lmynsberge will take us most of the way there. On the Cubit side, it's probably a matter of setting the color for all objects in the same group:

cubit>  color vol in group <n> blue