Code Monkey home page Code Monkey logo

rho2_ops's Introduction

RHO2_OPS
--------

Contact me if you have any doubts: [email protected]

A Makefile is provided to compile the code. It can be easily adapted for your preferred compiler (OpenMP is required for its compilation while MPI is optional). 

The source files will build three programs:

a) psi4_interface which is an interface to read psi4 output containing the TPDM (2-RDM) generated by DETCI to produce a .dm2 file that can be passed to chimpanC. 
Currently, it will not work for open-shell calculations including the frozen core option.

b) chimpanC which is an interface to transform 2-RDM matrices from the molecular orbital basis to the primitive basis. 
This code is compatible with the psi4_interface (ready for PSI4 except open-shell systems with frozen-core), DMN code of Dr. Matito, and with DoNOF code of Dr. Piris. 
chimpanC requires a Gaussian fchk file to produce the 2-RDM in the primitive basis. Although, 2-RDM and the .basis files can be generated using a user's coded interface 
(see the psi4_interface for example). Contact me if you have any doubts about formats. 

c) RHO2_OPS which requires the .basis (with the information about the primitives basis set) and the 2-RDM (in primitives as well). 
This code computes: intracules, extracules, and total position spread. The first two quantities are computed using the algorithm of Cioslowksi and Liu.

The input file:
---------------

$NAME_BASIS
name_file.basis    -> Name of the file with the basis
$NAME_DM2
name_file.dm2      -> Name of the file with the DM2 (in primitives)
$THRESHOLD
1e-10              -> Threshold for storing the DM2 terms   
$TAU
1e-10              -> Tau from Cioslowski article (for the screening threshold)   
$RADIAL            (Use for SCAN the intracule: Incompatible with $LEGENDRE but compatible with $ANGULAR)
0.0e0              -> Initial Point for 'u'
0.05               -> step size
10                 -> Last Point
$LEGENDRE          (Use a Legendre Quadrature for |r_12| coordinate: Incompatible with $RADIAL but compatible with $ANGULAR)
10                 -> Order for the Legendre Quadrature (some integer)
1e99               -> Superior limit of the integral (e.g. for integral _0 ^12  write 12) Note: Use 1e99 for Infinity 
$ANGULAR           (Spherical average via Sphere-Lebedev Rule)
6                  -> Angular grid for the spherical average (set 0 for none spherical average). 
$ANGULAR2          (Spherical average via Legendre theta & phi)
40                 -> Theta
50                 -> Phi
$PARALLEL          (OpenMP parallelization of the intracules and extracules evaluation)
4                  -> Number of THREADS to use. 
$INTRACULE         -> To compute the intracule (is incompatible with $MOMENTS but compatible with $EXTRACULE)
$EXTRACULE         -> To compute the intracule (is incompatible with $MOMENTS but compatible with $INTRACULE)
$MOMENTS           -> To compute second moments (x1x2, x1y2, etc.) Is incompatible with $INTRACULE and $EXTRACULE
$RANGESEP          -> To select a lambda_rs value for the intracule integration: Int I(u) erf[lambda_rs*u] u^n du (Optional: Default lambda_rs=1e99)
0.5                -> lambda_rs
$SCREENING         -> To select a lambda_scr value for the intracule integration: Int I(u) exp[-lambda_scr*u] u^n du (Optional: Default lambda_scr=0.0e0)
0.5                -> lambda_scr
$RWEIGHTS          -> To print the radial weights. Recall that Integral = radial_val times weight
$SYMRED            -> Only the elements 2D_ij,kl are given but the 2D_ji,lk must be produced by the code (do not use with $MOMENTS)
$CNORM1            -> The elements 2D_ij,kl also contain the normalization of the gaussian functions (like in WFN files)

rho2_ops's People

Contributors

berrodma avatar marm314 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

berrodma

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.