Go to the documentation of this file.
47 int main(
int argc,
char *argv[])
51 "Deforms a polyMesh using a displacement field U and a scaling factor"
52 " supplied as an argument"
59 const scalar scaleFactor =
args.
get<scalar>(1);
72 for (label timeI = 1; timeI < Times.size(); ++timeI)
95 + scaleFactor*
pInterp.interpolate(
U)().primitiveField()
98 mesh.polyMesh::movePoints(newPoints);
virtual const pointField & points() const
Defines the attributes of an object for which implicit objectRegistry management is supported,...
virtual bool write(const bool valid=true) const
static word timeName(const scalar t, const int precision=precision_)
static void addNote(const string ¬e)
Ostream & endl(Ostream &os)
T get(const label index) const
static void addArgument(const string &argName, const string &usage="")
Generic templated field type.
instantList times() const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual void setTime(const Time &t)
Generic GeometricField class.
Foam::argList args(argc, argv)
Interpolate from cell centres to points (vertices) using inverse distance weighting.
autoPtr< volPointInterpolation > pInterp