26#ifndef dftefeEFEBasisDofHandlerDealii_h
27# define dftefeEFEBasisDofHandlerDealii_h
33# include <deal.II/fe/fe_q.h>
42# include <deal.II/dofs/dof_handler.h>
43# include <deal.II/matrix_free/matrix_free.h>
52 template <
typename ValueTypeBasisCoeff,
53 typename ValueTypeBasisData,
67 dim>> enrichmentClassicalInterface,
75 enrichmentClassicalInterface);
84 const size_type derivativeOrder = 1)
const override;
91 dim>> enrichmentClassicalInterface,
98 dim>> enrichmentClassicalInterface);
100 std::shared_ptr<const TriangulationBase>
122 std::vector<std::pair<global_size_type, global_size_type>>
125 std::vector<std::pair<global_size_type, global_size_type>>
128 std::map<BasisIdAttribute, size_type>
134 std::vector<size_type>
137 std::vector<size_type>
143 std::vector<global_size_type> &vecGlobalNodeId)
const override;
145 const std::vector<global_size_type> &
188 std::map<global_size_type, utils::Point> &dofCoords)
const override;
194 std::shared_ptr<const ConstraintsLocal<ValueTypeBasisCoeff, memorySpace>>
198 std::shared_ptr<ConstraintsLocal<ValueTypeBasisCoeff, memorySpace>>
205 constraintsLocal)
const override;
207 std::shared_ptr<const utils::mpi::MPIPatternP2P<memorySpace>>
216 std::shared_ptr<const dealii::DoFHandler<dim>>
219 const dealii::FiniteElement<dim> &
239 std::vector<global_size_type>
245 std::shared_ptr<const EnrichmentIdsPartition<dim>>
268 std::shared_ptr<const EnrichmentIdsPartition<dim>>
270 std::vector<std::vector<global_size_type>>
273 std::vector<std::pair<global_size_type, global_size_type>>
277 std::shared_ptr<const atoms::AtomSphericalDataContainer>
291 std::shared_ptr<const utils::mpi::MPIPatternP2P<memorySpace>>
293 std::shared_ptr<const ConstraintsLocal<ValueTypeBasisCoeff, memorySpace>>
298 const std::pair<global_size_type, global_size_type> &locallyOwnedRanges,
299 std::vector<std::pair<global_size_type, global_size_type>>
Definition: ConstraintsLocal.h:43
Definition: EFEBasisDofHandlerDealii.h:61
size_type d_numCumulativeLocallyOwnedCellDofs
Definition: EFEBasisDofHandlerDealii.h:266
std::vector< std::shared_ptr< FECellBase > > d_localCells
Definition: EFEBasisDofHandlerDealii.h:264
bool d_isDistributed
Definition: EFEBasisDofHandlerDealii.h:290
std::map< BasisIdAttribute, size_type > getBasisAttributeToRangeIdMap() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1086
unsigned int getDim() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1321
bool isDistributed() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1749
std::shared_ptr< const utils::mpi::MPIPatternP2P< memorySpace > > d_mpiPatternP2P
Definition: EFEBasisDofHandlerDealii.h:292
void createConstraintsEnd(std::shared_ptr< ConstraintsLocal< ValueTypeBasisCoeff, memorySpace > > constraintsLocal) const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1721
size_type d_totalRanges
Definition: EFEBasisDofHandlerDealii.h:272
const dealii::FiniteElement< dim > & getReferenceFE(const size_type cellId) const
Definition: EFEBasisDofHandlerDealii.t.cpp:1350
std::vector< global_size_type > getGhostEnrichmentGlobalIds() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1598
bool isVariableDofsPerCell() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:957
double getBasisFunctionValue(const size_type basisId, const utils::Point &point) const override
Definition: EFEBasisDofHandlerDealii.t.cpp:838
std::vector< std::vector< global_size_type > > d_overlappingEnrichmentIdsInCells
Definition: EFEBasisDofHandlerDealii.h:271
bool isOrthogonalized() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1653
std::shared_ptr< const ConstraintsLocal< ValueTypeBasisCoeff, memorySpace > > d_constraintsLocal
Definition: EFEBasisDofHandlerDealii.h:294
FEBasisDofHandler< ValueTypeBasisCoeff, memorySpace, dim >::FECellIterator beginLocallyOwnedCells() override
Definition: EFEBasisDofHandlerDealii.t.cpp:1210
std::vector< size_type > getGlobalNodeIds() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1137
size_type nLocalNodes() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:970
void getCellDofsGlobalIds(size_type cellId, std::vector< global_size_type > &vecGlobalNodeId) const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1157
std::shared_ptr< const ConstraintsLocal< ValueTypeBasisCoeff, memorySpace > > getIntrinsicConstraints() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1682
std::vector< std::pair< global_size_type, global_size_type > > getGlobalRanges() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1073
size_type getFEOrder(size_type cellId) const override
Definition: EFEBasisDofHandlerDealii.t.cpp:929
std::vector< std::pair< global_size_type, global_size_type > > d_globalRanges
Definition: EFEBasisDofHandlerDealii.h:275
std::shared_ptr< const EnrichmentClassicalInterfaceSpherical< ValueTypeBasisData, memorySpace, dim > > getEnrichmentClassicalInterface() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1640
size_type nLocalCells() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:889
const std::vector< global_size_type > & getBoundaryIds() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1196
std::shared_ptr< const atoms::AtomSphericalDataContainer > d_atomSphericalDataContainer
Definition: EFEBasisDofHandlerDealii.h:278
std::vector< double > getEnrichmentDerivative(const size_type cellId, const size_type cellLocalEnrichmentId, const dftefe::utils::Point &point) const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1491
FEBasisDofHandler< ValueTypeBasisCoeff, memorySpace, dim >::FECellIterator beginLocalCells() override
Definition: EFEBasisDofHandlerDealii.t.cpp:1266
size_type nCumulativeLocallyOwnedCellDofs() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1408
std::vector< global_size_type > d_ghostEnrichmentGlobalIds
Definition: EFEBasisDofHandlerDealii.h:276
std::shared_ptr< const EnrichmentClassicalInterfaceSpherical< ValueTypeBasisData, memorySpace, dim > > d_enrichClassIntfce
Definition: EFEBasisDofHandlerDealii.h:287
std::shared_ptr< const TriangulationBase > getTriangulation() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:876
global_size_type nGlobalEnrichmentNodes() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1611
void reinit(std::shared_ptr< const EnrichmentClassicalInterfaceSpherical< ValueTypeBasisData, memorySpace, dim > > enrichmentClassicalInterface, const utils::mpi::MPIComm &mpiComm)
Definition: EFEBasisDofHandlerDealii.t.cpp:175
std::vector< std::string > d_atomSymbolVec
Definition: EFEBasisDofHandlerDealii.h:279
std::shared_ptr< const utils::mpi::MPIPatternP2P< memorySpace > > getMPIPatternP2P() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1736
size_type nCellDofs(size_type cellId) const override
Definition: EFEBasisDofHandlerDealii.t.cpp:942
std::vector< std::shared_ptr< FECellBase > > d_locallyOwnedCells
Definition: EFEBasisDofHandlerDealii.h:265
size_type d_numCumulativeLocalCellDofs
Definition: EFEBasisDofHandlerDealii.h:267
size_type nLocallyOwnedCells() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:902
size_type totalRanges() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1666
size_type nCumulativeLocalCellDofs() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1421
double getEnrichmentValue(const size_type cellId, const size_type cellLocalEnrichmentId, const dftefe::utils::Point &point) const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1437
std::vector< std::pair< global_size_type, global_size_type > > getLocallyOwnedRanges() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1008
std::vector< size_type > getLocalNodeIds(size_type cellId) const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1119
std::shared_ptr< ConstraintsLocal< ValueTypeBasisCoeff, memorySpace > > createConstraintsStart() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1695
std::string d_fieldName
Definition: EFEBasisDofHandlerDealii.h:281
void getBasisCenters(std::map< global_size_type, utils::Point > &dofCoords) const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1370
FEBasisDofHandler< ValueTypeBasisCoeff, memorySpace, dim >::FECellIterator endLocallyOwnedCells() override
Definition: EFEBasisDofHandlerDealii.t.cpp:1224
FEBasisDofHandler< ValueTypeBasisCoeff, memorySpace, dim >::FECellIterator endLocalCells() override
Definition: EFEBasisDofHandlerDealii.t.cpp:1280
void getAllOwnedClassicalRanges(const std::pair< global_size_type, global_size_type > &locallyOwnedRanges, std::vector< std::pair< global_size_type, global_size_type > > &allOwnedRanges, const utils::mpi::MPIComm &mpiComm) const
Definition: EFEBasisDofHandlerDealii.t.cpp:1022
std::shared_ptr< const EnrichmentIdsPartition< dim > > getEnrichmentIdsPartition() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1624
global_size_type nGlobalNodes() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:989
std::vector< global_size_type > d_boundaryIds
Definition: EFEBasisDofHandlerDealii.h:289
bool d_isOrthogonalized
Definition: EFEBasisDofHandlerDealii.h:282
std::vector< std::pair< global_size_type, global_size_type > > d_locallyOwnedRanges
Definition: EFEBasisDofHandlerDealii.h:274
std::shared_ptr< const EnrichmentIdsPartition< dim > > d_enrichmentIdsPartition
Definition: EFEBasisDofHandlerDealii.h:269
bool d_isVariableDofsPerCell
Definition: EFEBasisDofHandlerDealii.h:263
std::vector< double > getEnrichmentHessian(const size_type cellId, const size_type cellLocalEnrichmentId, const dftefe::utils::Point &point) const override
Definition: EFEBasisDofHandlerDealii.t.cpp:1545
std::vector< double > getBasisFunctionDerivative(const size_type basisId, const utils::Point &point, const size_type derivativeOrder=1) const override
Definition: EFEBasisDofHandlerDealii.t.cpp:856
std::shared_ptr< const dealii::DoFHandler< dim > > getDoFHandler() const
Definition: EFEBasisDofHandlerDealii.t.cpp:1337
std::shared_ptr< dealii::DoFHandler< dim > > d_dofHandler
Definition: EFEBasisDofHandlerDealii.h:262
size_type nGlobalCells() const override
Definition: EFEBasisDofHandlerDealii.t.cpp:915
std::vector< utils::Point > d_atomCoordinatesVec
Definition: EFEBasisDofHandlerDealii.h:280
Definition: EFEBasisDofHandler.h:57
Class to get the interface between Classical and Enrichment basis. It takes as the classical basis as...
Definition: EnrichmentClassicalInterfaceSpherical.h:72
Definition: FEBasisDofHandler.h:57
Definition: PointImpl.h:13
int MPIComm
Definition: MPITypes.h:83
MemorySpace
Definition: MemorySpaceType.h:37
dealii includes
Definition: AtomFieldDataSpherical.cpp:31
unsigned int size_type
Definition: TypeConfig.h:8
unsigned long int global_size_type
Definition: TypeConfig.h:9