PSCF v1.3.3
BlockTmpl.tpp
1#ifndef PSCF_BLOCK_TMPL_TPP
2#define PSCF_BLOCK_TMPL_TPP
3
4/*
5* PSCF - Polymer Self-Consistent Field
6*
7* Copyright 2015 - 2025, The Regents of the University of Minnesota
8* Distributed under the terms of the GNU General Public License.
9*/
10
11#include "BlockTmpl.h"
12
13namespace Pscf {
14
15 /*
16 * Constructor.
17 */
18 template <class QT, class FT>
20 : propagators_(),
21 cField_(),
22 kuhn_(0.0)
23 {
24 propagators_.allocate(2);
25 propagator(0).setDirectionId(0);
26 propagator(1).setDirectionId(1);
27 propagator(0).setPartner(propagator(1));
28 propagator(1).setPartner(propagator(0));
29 }
30
31 /*
32 * Destructor.
33 */
34 template <class QT, class FT>
37
38 /*
39 * Set the monomer statistical segment length.
40 */
41 template <class QT, class FT>
43 { kuhn_ = kuhn; }
44
45}
46#endif
virtual void setKuhn(double kuhn)
Set monomer statistical segment length.
Definition BlockTmpl.tpp:42
double kuhn() const
Get monomer statistical segment length.
Definition BlockTmpl.h:226
virtual ~BlockTmpl()
Destructor.
Definition BlockTmpl.tpp:35
QT & propagator(int directionId)
Get a Propagator for a specified direction.
Definition BlockTmpl.h:197
BlockTmpl()
Constructor.
Definition BlockTmpl.tpp:19
PSCF package top-level namespace.