CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   OpenFoam_compressibleInterFoam solver_calculation void fraction in the Outlet (https://www.cfd-online.com/Forums/openfoam-pre-processing/140674-openfoam_compressibleinterfoam-solver_calculation-void-fraction-outlet.html)

sahar_rf August 20, 2014 12:21

OpenFoam_compressibleInterFoam solver_calculation void fraction in the Outlet
 
Hello everyone
I use to compressibleInterFoam solver for two phase flow in horizontal channel.
i want to calculate void fraction (alpha) in the Outlet,
for this purpose, i add this formula in the controlDict :

functions {
alpha.wateroutlet
{
type patchExpression;
patches (
outlet1
outlet2
);
verbose true;
expression "alpha.water";
accumulations (
average
);
}

}

the error is :
- -> FOAM FATAL ERROR:
Parser Error for driver PatchValueExpressionDriver at "1.1-5" : "field alpha not existing or of wrong type"
"alpha"
^^^^^
- - |

can you help me?
Thank you


All times are GMT -4. The time now is 22:47.