1#ifndef RP_FILM_FIELD_MASK_GEN_C_H
2#define RP_FILM_FIELD_MASK_GEN_C_H
11#include <rp/environment/FilmFieldGenMaskBase.h>
12#include <pscf/backend/cpp/CPT.h>
13#include <rp/system/System.h>
19 template <
int D,
class T>
class System;
83 double stress(
int paramId)
const;
181 template <
int D>
inline
184 {
return system().domain().groupName(); }
187 template <
int D>
inline
190 {
return system().domain().unitCell().rBasis(
id); }
Backend identifier class for the C++ serial CPU backend.
A RealVec<D, T> is D-component vector with elements of floating type T.
double excludedThickness() const
Get value of excludedThickness.
double fBulk_
Reference free energy used to calculate stress normal to the film.
int normalVecId() const
Get value of normalVecId.
FilmFieldGenMaskBase()
Constructor.
double interfaceThickness() const
Get value of interfaceThickness.
bool hasFBulk() const
Check whether a value of fBulk was provided.
FSArray< bool, 6 > modifyFlexibleParams(FSArray< bool, 6 > current, UnitCell< D > const &cell) const
Modifies a flexibleParams array to be compatible with this mask.
RealVec< D > normalVecCurrent_
The lattice vector normal to the film used to generate these fields.
RealVec< D > systemLatticeVector(int id) const
Get one of the lattice vectors for this system.
Rp::System< D, CPT > & system()
Get the parent System by non-const reference.
void setFlexibleParams() const
Modifies iterator().flexibleParams_ to be compatible with the mask.
double modifyStress(int paramId, double stress) const
Modify stress value in direction normal to the film.
double stress(int paramId) const
Get contribution to the stress from this mask.
std::string systemSpaceGroup() const
Get the space group name for this system.
void compute()
Compute the field and store where the System can access.
FilmFieldGenMask()
Default constructor.
Base class template for classes that represent a complete system.
void setClassName(const char *className)
Set class name string.
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
Code for programs that simulate real-valued periodic fields.
PSCF package top-level namespace.