DFT-FE 1.1.0-pre
Density Functional Theory With Finite-Elements
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
densityCalculator.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (c) 2017-2025 The Regents of the University of Michigan and DFT-FE
4// authors.
5//
6// This file is part of the DFT-FE code.
7//
8// The DFT-FE code is free software; you can use it, redistribute
9// it, and/or modify it under the terms of the GNU Lesser General
10// Public License as published by the Free Software Foundation; either
11// version 2.1 of the License, or (at your option) any later version.
12// The full text of the license can be found in the file LICENSE at
13// the top level of the DFT-FE distribution.
14//
15// ---------------------------------------------------------------------
16//
17
18#ifndef densityCalculator_H_
19#define densityCalculator_H_
20
21#include <headers.h>
22#include "dftParameters.h"
23#include "FEBasisOperations.h"
25namespace dftfe
26{
27 template <typename NumberType, dftfe::utils::MemorySpace memorySpace>
28 void
31 const unsigned int totalNumWaveFunctions,
32 const std::vector<std::vector<double>> &partialOccupancies,
33 std::shared_ptr<
35 &basisOperationsPtr,
37 & BLASWrapperPtr,
38 const unsigned int matrixFreeDofhandlerIndex,
39 const unsigned int quadratureIndex,
40 const std::vector<double> &kPointWeights,
41 std::vector<
43 &densityValues,
44 std::vector<
46 & gradDensityValues,
47 const bool isEvaluateGradRho,
48 const MPI_Comm & mpiCommParent,
49 const MPI_Comm & interpoolcomm,
50 const MPI_Comm & interBandGroupComm,
51 const dftParameters &dftParams);
52
53 template <typename NumberType>
54 void
56 std::shared_ptr<
58 & BLASWrapperPtr,
59 const std::pair<unsigned int, unsigned int> cellRange,
60 const std::pair<unsigned int, unsigned int> vecRange,
61 const unsigned int nQuadsPerCell,
62 double * partialOccupVec,
63 NumberType * wfcQuadPointData,
64 NumberType * gradWfcQuadPointData,
65 double * rhoCellsWfcContributions,
66 double * gradRhoCellsWfcContributions,
67 double * rho,
68 double * gradRho,
69 const bool isEvaluateGradRho);
70
71} // namespace dftfe
72#endif
Definition FEBasisOperations.h:84
Namespace which declares the input parameters and the functions to parse them from the input paramete...
Definition dftParameters.h:35
Definition BLASWrapper.h:35
Definition MemoryStorage.h:33
Definition pseudoPotentialToDftfeConverter.cc:34
void computeRhoGradRhoFromInterpolatedValues(std::shared_ptr< dftfe::linearAlgebra::BLASWrapper< dftfe::utils::MemorySpace::HOST > > &BLASWrapperPtr, const std::pair< unsigned int, unsigned int > cellRange, const std::pair< unsigned int, unsigned int > vecRange, const unsigned int nQuadsPerCell, double *partialOccupVec, NumberType *wfcQuadPointData, NumberType *gradWfcQuadPointData, double *rhoCellsWfcContributions, double *gradRhoCellsWfcContributions, double *rho, double *gradRho, const bool isEvaluateGradRho)
void computeRhoFromPSI(const dftfe::utils::MemoryStorage< NumberType, memorySpace > *X, const unsigned int totalNumWaveFunctions, const std::vector< std::vector< double > > &partialOccupancies, std::shared_ptr< dftfe::basis::FEBasisOperations< NumberType, double, memorySpace > > &basisOperationsPtr, std::shared_ptr< dftfe::linearAlgebra::BLASWrapper< memorySpace > > &BLASWrapperPtr, const unsigned int matrixFreeDofhandlerIndex, const unsigned int quadratureIndex, const std::vector< double > &kPointWeights, std::vector< dftfe::utils::MemoryStorage< double, dftfe::utils::MemorySpace::HOST > > &densityValues, std::vector< dftfe::utils::MemoryStorage< double, dftfe::utils::MemorySpace::HOST > > &gradDensityValues, const bool isEvaluateGradRho, const MPI_Comm &mpiCommParent, const MPI_Comm &interpoolcomm, const MPI_Comm &interBandGroupComm, const dftParameters &dftParams)
@ gradRho
Definition mixingClass.h:34
@ rho
Definition mixingClass.h:33