mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
35 lines
764 B
C
35 lines
764 B
C
#include "writeCellGraph.H"
|
|
#include "volFields.H"
|
|
#include "fvMesh.H"
|
|
#include "graph.H"
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
namespace Foam
|
|
{
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
void writeCellGraph
|
|
(
|
|
const volScalarField& vsf,
|
|
const word& graphFormat
|
|
)
|
|
{
|
|
graph
|
|
(
|
|
vsf.name(),
|
|
"x",
|
|
vsf.name(),
|
|
vsf.mesh().C().internalField().component(vector::X),
|
|
vsf.internalField()
|
|
).write(vsf.time().timePath()/vsf.name(), graphFormat);
|
|
}
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
} // End namespace Foam
|
|
|
|
// ************************************************************************* //
|