1#ifndef RPG_EXT_GEN_FILM_U_H
2#define RPG_EXT_GEN_FILM_U_H
11#include <rp/environment/FilmFieldGenExtBase.h>
12#include <pscf/backend/cuda/CUT.h>
13#include <rp/system/System.h>
19 template <
int D,
class T>
class System;
87 double stress(
int paramId)
const;
141 double interfaceThickness_;
148 template <
int D>
inline
154 template <
int D>
inline
160 template <
int D>
inline
166 template <
int D>
inline
169 {
return system().domain().unitCell().rBasis(
id); }
172 template <
int D>
inline
174 {
return system().mixture().nMonomer(); }
Backend identifier class for the GPU-enabled CUDA backend.
A RealVec<D, T> is D-component vector with elements of floating type T.
int normalVecId() const
Get value of normalVecId.
double excludedThickness() const
Get value of excludedThickness.
bool isAthermal() const
Are the walls athermal?
RealVec< D > normalVecCurrent_
The lattice vector normal to the film used to generate these fields.
DArray< double > chiBottomCurrent_
The chiBottom array used to generate the current external fields.
double interfaceThickness() const
Get value of interfaceThickness.
DArray< double > const & chiBottom() const
Get const chiBottom matrix by reference.
FilmFieldGenExtBase()
Constructor.
DArray< double > chiTopCurrent_
The chiTop array used to generate the current external fields.
DArray< double > const & chiTop() const
Get const chiTop array by reference.
void compute()
Compute the fields and store where the System can access.
int systemNMonomer() const
Get the number of monomer species for this system.
std::string systemSpaceGroup() const
Get the space group name for this system.
FilmFieldGenExt()
Default constructor.
double stress(int paramId) const
Get contribution to the stress from the external fields.
RealVec< D > systemLatticeVector(int id) const
Get one of the lattice vectors for this system.
System< D, CUT > & system()
Get the System associated with this object by reference.
Base class template for classes that represent a complete system.
Domain< D, T > const & domain() const
Get the Domain (const).
void setClassName(const char *className)
Set class name string.
Code for programs that simulate real-valued periodic fields.
PSCF package top-level namespace.