This is a simple function that provides a convenient way for a user to
call fvc::reconstruct for the purposes of post-processing flux fields;
e.g., to construct a cell velocity from a face flux.
It can be used to generate output during a run by adding the following
settings to a case's controlDict:
functions
{
#includeFunc reconstruct(phi)
}
Or it can be executed as a postProcessing step by calling:
postProcess -func "reconstruct(phi)"
23 lines
860 B
C++
23 lines
860 B
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
-------------------------------------------------------------------------------
|
|
Description
|
|
Calculates the reconstruction of a field; e.g., to construct a cell-centred
|
|
velocity, U, from the face-centred flux, phi.
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
type reconstruct;
|
|
libs ("libfieldFunctionObjects.so");
|
|
|
|
field <fieldName>;
|
|
|
|
executeControl writeTime;
|
|
writeControl writeTime;
|
|
|
|
// ************************************************************************* //
|