mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Release-notes-dev: updated for coded functionObject
This commit is contained in:
@ -277,6 +277,26 @@
|
||||
triSurfaceMesh).
|
||||
+ =nearWallFields=: constructs field with on selected patches interpolated
|
||||
internal field for further postprocessing.
|
||||
+ =coded=: uses the dynamic code compilation from =#codeStream=
|
||||
to provide an in-line functionObject. E.g.
|
||||
#+BEGIN_SRC c++
|
||||
functions
|
||||
(
|
||||
pAverage
|
||||
{
|
||||
functionObjectLibs ("libutilityFunctionObjects.so");
|
||||
type coded;
|
||||
redirectType average;
|
||||
code
|
||||
#{
|
||||
const volScalarField& p = obr().lookupObject<volScalarField>("p");
|
||||
Info<<"p avg:" << average(p) << endl;
|
||||
#};
|
||||
}
|
||||
);
|
||||
#+END_SRC
|
||||
See also [[./doc/changes/dynamicCode.org]]
|
||||
|
||||
|
||||
* New tutorials
|
||||
There is a large number of new tutorials for existing and new solvers in the
|
||||
|
||||
Reference in New Issue
Block a user