mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Calculates linear/angular momentum, reporting integral values
and optionally writing the fields.
Example
momentum1
{
type momentum;
libs ("libfieldFunctionObjects.so");
...
writeMomentum yes;
writeVelocity no;
cylindrical true;
origin (0 0 0);
e1 (1 0 0);
e3 (0 0 1);
}
34 lines
608 B
C++
34 lines
608 B
C++
// -*- C++ -*-
|
|
// Calculate momentum fields
|
|
momentum
|
|
{
|
|
type momentum;
|
|
libs ("libfieldFunctionObjects.so");
|
|
log true;
|
|
|
|
executeInterval 10;
|
|
writeControl writeTime;
|
|
|
|
// writeToFile true;
|
|
|
|
writeMomentum true;
|
|
writePosition true;
|
|
writeVelocity true;
|
|
|
|
// Cells to select (all/cellSet/cellZone)
|
|
regionType all;
|
|
// name c0;
|
|
|
|
cylindrical true;
|
|
|
|
origin (0 0 0);
|
|
rotation
|
|
{
|
|
type cylindrical;
|
|
axis (1 0 0); //< local Z
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|