Files
OpenFOAM-12/tutorials/incompressibleFluid/mixerSRF/system/strainRate
Will Bainbridge 4162fe070d pitzDailySteady: Simplification
Some functions have been removed from this tutorial in order to simplify
the setup and permit its usage as a minimal example. The functions have
been moved to similar incompressibleFluid tutorials in order to ensure
that the test loop continues to confirm that the functions execute
successfully.
2024-06-25 14:20:04 +01:00

33 lines
881 B
C++

/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
type coded;
// Load the library containing the 'coded' functionObject
libs ("libutilityFunctionObjects.so");
name strainRate;
codeInclude
#{
#include "fvcGrad.H"
#};
codeWrite
#{
const volVectorField& U(mesh().lookupObject<volVectorField>("U"));
volScalarField::New
(
"strainRate",
sqrt(2.0)*mag(symm(fvc::grad(U)))
)->write();
#};
// ************************************************************************* //