Files
openfoam/src/sampling/graphField/writePatchGraph.C
2008-04-15 18:56:58 +01:00

38 lines
837 B
C

#include "writePatchGraph.H"
#include "volFields.H"
#include "fvMesh.H"
#include "graph.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
void writePatchGraph
(
const volScalarField& vsf,
const label patchLabel,
const direction d,
const word& graphFormat
)
{
graph
(
vsf.name(),
"position",
vsf.name(),
vsf.mesh().boundary()[patchLabel].Cf().component(d),
vsf.boundaryField()[patchLabel]
).write(vsf.time().timePath()/vsf.name(), graphFormat);
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //