11#include <prdc/solvers/MixtureReal.h>
39 using typename MixtureRealT::MixtureTmplT;
40 using typename MixtureRealT::PolymerT;
41 using typename MixtureRealT::SolventT;
42 using typename MixtureRealT::BlockT;
43 using typename MixtureRealT::PropagatorT;
44 using typename MixtureRealT::FieldT;
45 using typename MixtureRealT::FFTT;
46 using typename MixtureRealT::WaveListT;
64 using MixtureRealT::readParameters;
65 using MixtureRealT::associate;
66 using MixtureRealT::allocate;
67 using MixtureRealT::clearUnitCellData;
68 using MixtureRealT::setKuhn;
69 using MixtureRealT::compute;
70 using MixtureRealT::computeStress;
71 using MixtureRealT::hasStress;
72 using MixtureRealT::createBlockCRGrid;
89 using MixtureRealT::mesh;
90 using MixtureRealT::ds;
107 virtual void eqS(
FieldT& A,
double s)
const override;
115 virtual void addEqV(
FieldT& A,
FieldT const & B)
const override;
120 virtual void allocateBlocks()
override;
132 extern template class MixtureReal<1, Rpg::Polymer<1>,
Rpg::Solvent<1> >;
133 extern template class MixtureReal<2, Rpg::Polymer<2>,
Rpg::Solvent<2> >;
134 extern template class MixtureReal<3, Rpg::Polymer<3>,
Rpg::Solvent<3> >;
int nPolymer() const
Get number of polymer species.
Monomer const & monomer(int id) const
Get a Monomer type descriptor by const reference.
int nMonomer() const
Get number of monomer types.
int nBlock() const
Get total number blocks among all polymer species.
int nSolvent() const
Get number of solvent (point particle) species.
double vMonomer() const
Get monomer reference volume (set to 1.0 by default).
bool isCanonical() const
Is this mixture being treated in canonical ensemble?
SolventT & solvent(int id)
PolymerSpecies const & polymerSpecies(int id) const final
PolymerT & polymer(int id)
SolventSpecies const & solventSpecies(int id) const final
Solver and descriptor for a mixture of polymers and solvents.
typename PropagatorT::FieldT FieldT
Solver and descriptor for a mixture of polymers and solvents.
void readParameters(std::istream &in) override
Read all parameters and initialize.
typename Prdc::MixtureReal< D, Polymer< D >, Solvent< D > > MixtureRealT
Direct (parent) base class.
Solver and descriptor for a solvent species.
Periodic fields and crystallography.
SCFT and PS-FTS with real periodic fields (GPU)
PSCF package top-level namespace.