mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
38 lines
837 B
C
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
|
|
|
|
// ************************************************************************* //
|