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 dftfe::uInt totalNumWaveFunctions,
37 const std::vector<std::vector<double>> &densityMatDerFermiEnergy,
38 std::shared_ptr<
40 &basisOperationsPtr,
42 &BLASWrapperPtr,
43 const dftfe::uInt matrixFreeDofhandlerIndex,
44 const dftfe::uInt 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<dftfe::uInt, dftfe::uInt> cellRange,
65 const std::pair<dftfe::uInt, dftfe::uInt> vecRange,
66 const dftfe::uInt 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:85
Namespace which declares the input parameters and the functions to parse them from the input paramete...
Definition dftParameters.h:36
Definition BLASWrapper.h:35
Definition MemoryStorage.h:33
Definition pseudoPotentialToDftfeConverter.cc:34
std::uint32_t uInt
Definition TypeConfig.h:10
void computeRhoResponseFromInterpolatedValues(std::shared_ptr< dftfe::linearAlgebra::BLASWrapper< dftfe::utils::MemorySpace::HOST > > &BLASWrapperPtr, const std::pair< dftfe::uInt, dftfe::uInt > cellRange, const std::pair< dftfe::uInt, dftfe::uInt > vecRange, const dftfe::uInt 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 dftfe::uInt 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 dftfe::uInt matrixFreeDofhandlerIndex, const dftfe::uInt 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)