DFT-FE 1.1.0-pre
Density Functional Theory With Finite-Elements
Loading...
Searching...
No Matches
densityFirstOrderResponseCalculator.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (c) 2017-2018 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
19#ifndef densityFirstOrderResponseCalculator_H_
20#define densityFirstOrderResponseCalculator_H_
21
22#include "headers.h"
23#include "dftParameters.h"
24#include "FEBasisOperations.h"
25#include <BLASWrapper.h>
27
28
29namespace dftfe
30{
31 template <typename NumberType, dftfe::utils::MemorySpace memorySpace>
32 void
36 const unsigned int totalNumWaveFunctions,
37 const std::vector<std::vector<double>> &densityMatDerFermiEnergy,
38 std::shared_ptr<
40 &basisOperationsPtr,
42 & BLASWrapperPtr,
43 const unsigned int matrixFreeDofhandlerIndex,
44 const unsigned int quadratureIndex,
45 const std::vector<double> &kPointWeights,
46 std::vector<
48 &rhoResponseValuesHam,
49 std::vector<
51 & rhoResponseValuesFermiEnergy,
52 const MPI_Comm & mpiCommParent,
53 const MPI_Comm & interpoolcomm,
54 const MPI_Comm & interBandGroupComm,
55 const dftParameters &dftParams);
56
57
58 template <typename NumberType>
59 void
61 std::shared_ptr<
63 & BLASWrapperPtr,
64 const std::pair<unsigned int, unsigned int> cellRange,
65 const std::pair<unsigned int, unsigned int> vecRange,
66 const unsigned int nQuadsPerCell,
67 double * onesVec,
68 double * partialOccupPrimeVec,
69 NumberType * wfcQuadPointData,
70 NumberType * wfcPrimeQuadPointData,
71 double *rhoResponseHamCellsWfcContributions,
72 double *rhoResponseFermiEnergyCellsWfcContributions,
73 double *rhoResponseHam,
74 double *rhoResponseFermiEnergy);
75
76} // namespace dftfe
77#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 computeRhoResponseFromInterpolatedValues(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 *onesVec, double *partialOccupPrimeVec, NumberType *wfcQuadPointData, NumberType *wfcPrimeQuadPointData, double *rhoResponseHamCellsWfcContributions, double *rhoResponseFermiEnergyCellsWfcContributions, double *rhoResponseHam, double *rhoResponseFermiEnergy)
void computeRhoFirstOrderResponse(const dftfe::utils::MemoryStorage< NumberType, memorySpace > &X, const dftfe::utils::MemoryStorage< NumberType, memorySpace > &XPrime, const unsigned int totalNumWaveFunctions, const std::vector< std::vector< double > > &densityMatDerFermiEnergy, 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 > > &rhoResponseValuesHam, std::vector< dftfe::utils::MemoryStorage< double, dftfe::utils::MemorySpace::HOST > > &rhoResponseValuesFermiEnergy, const MPI_Comm &mpiCommParent, const MPI_Comm &interpoolcomm, const MPI_Comm &interBandGroupComm, const dftParameters &dftParams)