PSCF v1.4.0
IntraCorrelation.cpp
1/*
2* PSCF - Polymer Self-Consistent Field
3*
4* Copyright 2015 - 2025, The Regents of the University of Minnesota
5* Distributed under the terms of the GNU General Public License.
6*/
7
8#include "IntraCorrelation.h"
9
10#include <rpc/system/System.h>
11#include <rpc/solvers/Mixture.h>
12#include <rpc/field/Domain.h>
13
14#include <prdc/cpu/FFT.h>
15#include <prdc/cpu/RField.h>
16
17#include <rp/fts/compressor/IntraCorrelation.tpp>
18
19namespace Pscf {
20namespace Rpc {
21
22 using namespace Util;
23 using namespace Prdc;
24
25 /*
26 * Constructor.
27 */
28 template <int D>
32
33 #if 0
34 /*
35 * Compute k-space array of intramolecular correlation functions.
36 */
37 template<int D>
38 void
40 {
41 computeMeshProperties();
42
43 // Compute total intramolecular correlation function
44 UTIL_CHECK(correlations.capacity() == kSize_);
45 if (!correlationMixturePtr_->isAllocated()) {
46 correlationMixturePtr_->allocate();
47 }
48 correlationMixturePtr_->setup();
49 correlationMixturePtr_->computeOmegaTotal(Gsq_, correlations);
50
51 }
52 #endif
53
54}
55}
56
57// Explicit instantiation definitions
58namespace Pscf {
59 namespace Rp {
60 template class IntraCorrelation<1, Rpc::Types<1> >;
61 template class IntraCorrelation<2, Rpc::Types<2> >;
62 template class IntraCorrelation<3, Rpc::Types<3> >;
63 }
64 namespace Rpc {
65 template class IntraCorrelation<1>;
66 template class IntraCorrelation<2>;
67 template class IntraCorrelation<3>;
68 }
69}
Field of real double precision values on an FFT mesh.
Definition cpu/RField.h:27
Intramolecular correlation analyzer.
Types< D >::System const & system() const
void computeOmegaTotal(Array< typename Types< D >::Real > &correlations)
Intramolecular correlation analyzer.
IntraCorrelation(System< D > const &system)
Constructor.
A complete physical system.
Aliases for types used in the Rpc program-level namespace.
int capacity() const
Return allocated size.
Definition Array.h:144
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
Definition global.h:68
Periodic fields and crystallography.
Definition complex.cpp:11
Class templates for real-valued periodic fields.
Real periodic fields, SCFT and PS-FTS (CPU).
Definition param_pc.dox:2
PSCF package top-level namespace.