CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   a postprocessing tool issue on massflow (http://www.cfd-online.com/Forums/openfoam-post-processing/119225-postprocessing-tool-issue-massflow.html)

immortality June 12, 2013 11:01

a postprocessing tool issue on massflow
 
I've written these two functions:
Code:

massflow_left
    {
        type            faceSource;
        functionObjectLibs ("libfieldFunctionObjects.so");
        enabled        true;
        outputControl  timeStep;
        log            true;
        valueOutput    false;
        source          patch;
        sourceName      left;
        operation      sum;

        fields
        (
            phi
        );
        factor 1;
    }

Code:

massflow_right
    {
        $massflow_left;
        patchName right;
    }

but the function massflow-right still performs on left patch(writes the left values).why?!

ngj June 12, 2013 16:04

Not knowing these commands, but could it be that patchName should actually be replaced by sourceName?

Otherwise, the other "function" does not make sense, since it does not have a patchName.

Kind regards

Niels

immortality June 12, 2013 16:28

thanks a lot.it should be the reason.what a mistake!


All times are GMT -4. The time now is 04:27.