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/)
-   -   ForcePlaneWithinFlow (http://www.cfd-online.com/Forums/openfoam-post-processing/122213-forceplanewithinflow.html)

jaason August 14, 2013 11:04

ForcePlaneWithinFlow
 
Hi all,
I have created a volScalarField of force per unit depth for each finite volume
Fx=(rho*Ux^2+(p-pa))dy

where rho U and p are properties of the volume and pa is the ambient pressure. I am calculating the force for a supersonic nozzle.

How can I obtain a surfaceScalarField for a particular location within a volScalarField?
(I basically want to take a slice of the volScalarField that i create and analyze that data)

I was thinking something along the lines:
Code:

surfaceScalarField Fexit
(
    IOobject
    (
        'Fexit',
        runTime.timeName(),
        mesh,
        IOobject::NO_READ
    ),
//Code to specify location of surface in flow
);
//Code to sum all finite Forces to total force generated by nozzle

does it have to be a geometricField to have locations attached to the field values?

thanks for any help / advice


All times are GMT -4. The time now is 20:30.