GeometricField, volFields: Added experimental member function ".v()" and perfix operator "~"

both of which return the dimensionedInternalField for volFields only.

These will be useful in FV equation source term expressions which need
not evaluate boundary conditions.
This commit is contained in:
Henry Weller
2016-04-26 20:45:53 +01:00
parent cb9732204d
commit f0d25904e4
5 changed files with 95 additions and 3 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -52,6 +52,10 @@ int main(int argc, char *argv[])
mesh
);
Info<< nl
<< "p.v().size(): "
<< p.v().size() << endl;
Info<< "Reading field U\n" << endl;
volVectorField U
(