ptot
Hello,
i would like to calculate ptot with the help of function objects. after that i would like to use the function patchmassflowaverage on ptot. how can i calculate ptot so that the function massflowaverage knows the variable?? Greetz |
i've found something similar in an earlier post here.
i added in my conrtoldict: functions ( compute_ptot { type expressionField; outputControl timeStep; outputInterval 1; fieldName ptot; expression "p + 0.5*magSqr(U)"; autowrite false; } massFlow { type patchMassFlowAverage; functionObjectLibs ( "libsimpleFunctionObjects.so"); verbose true; readFields(ptot); fields (U p T ptot ); patches ( Fluid_Inlet Fluid_Outlet ); factor 1.0; } ); but i get an error, that the function type expressionField is unknown. |
I hope you could resolve it.probably too late.but maybe help someone in future,
you can use Swak for mass averaging on total p: Code:
n2_totalPressure Code:
totalP // user-defined name of function object entry Code:
totalPressure_left Code:
Average_left |
All times are GMT -4. The time now is 18:21. |