File size: 840 Bytes
5a600cf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
type coded;
libs ("libutilityFunctionObjects.so");
codeInclude
#{
#include "volFields.H"
#};
codeWrite
#{
const tensor XY(1, 0, 0, 0, 1, 0, 0, 0, 0);
volScalarField
(
IOobject
(
"R",
mesh().time().name(),
mesh()
),
mag(XY & mesh().C())
).write();
#};
// ************************************************************************* //
|