CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   how to monitor the plusant velocity using swak4Foam (https://www.cfd-online.com/Forums/openfoam-programming-development/225373-how-monitor-plusant-velocity-using-swak4foam.html)

wangziyang March 25, 2020 01:34

how to monitor the plusant velocity using swak4Foam
 
hello everyone!

i want to output the pluse velocity during calculating time,so i insert the some functions to the ControlDict, they are as follows,

fieldAverage1
{
type fieldAverage;
functionObjectLibs ( "libfieldFunctionObjects.so" );
outputControl outputTime;
enabled true;

fields
(
U
{
mean on;
prime2Mean on;
base time;
}

);
}
uix
{
type expressionField;
autowrite true;
expression "U.x-UMean.x";
outputControl outputTime;
dimension [0 1 -1 0 0 0 0];
fieldName uix;
}


but when i run the programe, the error are as follows,

--> FOAM FATAL ERROR:
Parser Error for driver FieldValueExpressionDriver at "1.5-9" :"field UMean not existing or of wrong type"
"U.x-UMean.x"
^^^^^
why UMean not existed? i also use the fieldaverageFunction to output it

anyone can help me?

best wishes!

ziyang


All times are GMT -4. The time now is 06:34.