Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Volumetric rendering for non-ortho boxes #439

Closed
dkoes opened this issue Feb 10, 2020 · 7 comments
Closed

Volumetric rendering for non-ortho boxes #439

dkoes opened this issue Feb 10, 2020 · 7 comments

Comments

@dkoes
Copy link
Contributor

dkoes commented Feb 10, 2020

Current support doesn't work if file format (e.g. ccp4) specifies a transformation matrix. Shouldn't be too difficult to support since renders take a model to texture transformation matrix already.

@jaxmatrix
Copy link
Contributor

I am working on this issues, please tell me where I can find a dx data file and ccp4 data file with non-orthogonal boxes definition

@jaxmatrix
Copy link
Contributor

Is there any open source or free program that can generate these files? I am familiar with Gaussian and Quantum Espresso but these generate electron density in .cube format.

@dkoes
Copy link
Contributor Author

dkoes commented Mar 29, 2021

Which files? I'm not familiar with DSN6 but the PDB has many examples. For ccp4 and dx the gridData submodule of MDAnalysis can write out these formats:
https://www.mdanalysis.org/GridDataFormats/gridData/formats.html

@jaxmatrix
Copy link
Contributor

I meant " can a open source program generate ccp4 or dx files". I tried generating dx files using octopus by performing simple dft calculation for benzene and methane. dx files generated were having orthogonal grid. I guess it has to something with structure of the cell that we are trying to simulate. I will try to perform a similar calculation for some crystal with non-orthogonal lattice to see if I can get some dx files with non-orthogonal grid vectors.

@jaxmatrix
Copy link
Contributor

I was successful in generating non-ortho boxes when I simulated hexagonal boron nitride (h-BN) in octopus using the following input file

CalculationMode = gs
UnitsOutput = ev_angstrom
ExperimentalFeatures = yes

PeriodicDimensions = 2

Spacing = 0.20*angstrom

BNlength = 1.445*angstrom
a = sqrt(3)*BNlength
L = 40
%LatticeParameters
 a | a | L
%

%LatticeVectors
  1.0 | 0.0       | 0.0
 -1/2 | sqrt(3)/2 | 0.0
  0.0 | 0.0       | 1.0
%
 
%ReducedCoordinates
 'B' | 0.0 | 0.0 | 0.0
 'N' | 1/3 | 2/3 | 0.0
% 

PseudopotentialSet=hgh_lda

LCAOStart=lcao_states 

%KPointsGrid
  12   | 12   | 1
%
KPointsUseSymmetries = yes

Output = wfs + density
OutputFormat = dx + cube 

I guess volumetric grids are dependent upon the lattice vector of the molecule/system.

I am attaching electron density plot of h-BN in cube and dx format
h-BN.zip

@dkoes
Copy link
Contributor Author

dkoes commented Sep 9, 2021

Implemented in 1.7.0

@dkoes dkoes closed this as completed Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants