PSCF v1.3
FieldGenerator.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 "FieldGenerator.h"
9
10namespace Pscf {
11namespace Prdc {
12
13 // Constructor
16
17 // Destructor
20
21 // Get contribution to the stress from this imposed field.
22 double FieldGenerator::stress(int paramId) const
23 // (default implementation)
24 { UTIL_THROW("Unimplemented stress() method called."); }
25
26 // Modify stress to minimize a property other than fHelmholtz.
27 // (default implementation)
28 double FieldGenerator::modifyStress(int paramId, double stress)
29 const
30 { return stress; }
31
32} // namespace Prdc
33} // namespace Pscf
virtual double modifyStress(int paramId, double stress) const
Modify stress to minimize a property other than fHelmholtz.
virtual double stress(int paramId) const
Get contribution to the stress from this imposed field.
#define UTIL_THROW(msg)
Macro for throwing an Exception, reporting function, file and line number.
Definition global.h:49
Periodic fields and crystallography.
Definition CField.cpp:11
PSCF package top-level namespace.
Definition param_pc.dox:1