I want to map an electrostatic potential onto a density map.
How can I color a single contour from a ListContourPlot3D
using the values from another list?
Make a 3D contour plot from a list of electron density values, of which I only need one contour.
Color the single contour based on the electrostatic potential density at that point. (Need help on this.)
I have this so far:
Den = Import["Density.dat", "Table"]; (* Contains, {x, y, z, Density} pointS *)
EP = Import["ElectrostaticPotential.dat", "Table"]; (* Contains, {x, y, z, EP} point *)
ListContourPlot3D[Den,
Contours -> {0.05}, Mesh -> None,
ColorFunction -> ColorData[Function[{x, y, z}, Hue[EP]]]]
I can't seem the find the right way to write the ColorFunction
. Please help.
Comments
Post a Comment