scale: function object to multiply a field by a scale factor

This commit is contained in:
Chris Greenshields
2018-06-06 09:41:04 +01:00
parent c4d209345e
commit 7f49d6e2cc
5 changed files with 304 additions and 0 deletions

View File

@ -0,0 +1,24 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Web: www.OpenFOAM.org
\\/ M anipulation |
-------------------------------------------------------------------------------
Description
Multiplies a field by a scale factor
\*---------------------------------------------------------------------------*/
type scale;
libs ("libfieldFunctionObjects.so");
field <fieldName>;
result <outputFieldName>; // optional
scale 1;
executeControl writeTime;
writeControl writeTime;
// ************************************************************************* //