News:

SMF - Just Installed!

Main Menu

Density Plot

Started by saif, August 21, 2023, 06:49:01 PM

Previous topic - Next topic

saif

Hi,

I'm seeking advice.

I'm attempting to plot the DensityProfile.vtk file that I obtained from my simulation run. However, I'm encountering an issue where the plot appears completely white without any visible content.
All the data inside the file consists of very small values.

-----------------------------------------------------------
Part of my file:

# vtk DataFile Version 1.0
CELL_PARAMETERS 19.152000 19.152000 19.152000 90.000000 90.000000 90.000000
ASCII
DATASET STRUCTURED_POINTS
DIMENSIONS 150 150 150
ORIGIN 0.000000 0.000000 0.000000
SPACING 0.127680 0.127680 0.127680
POINT_DATA 3375000
SCALARS scalars double
LOOKUP_TABLE default
0
0.000584217
0.00084387
0.00183199
0.00266144
0.00421935
0.00569792
0.00809249
0.00786169
0.0121387

-----------------------------------------------------------
Thank you

Lingxiao Qin

Are you sure your DensityProfile.vtk file is correct? It seems the file should contain totally 3375000 data points, but you just list 10 points. (Maybe you omit other data points for clarity?) Check /RASPA/RASPA2/examples/Visualization/FullCell/Density/MFI/hexane/RASPA/simulation.input for a sample input file. By the way, iRASPA can import the DensityProfile.vtk file generated by RASPA (with a newest version) to visualize the density plot, but I find it lacks some functions such as displaying the colorbar. Perhaps you can try iRASPA to see if it can generate the correct results.