mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
38 lines
834 B
C
38 lines
834 B
C
#include "writeCellGraph.H"
|
|
#include "volFields.H"
|
|
#include "fvMesh.H"
|
|
#include "graph.H"
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
namespace Foam
|
|
{
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
void writeCellGraph
|
|
(
|
|
const volScalarField& vsf,
|
|
const word& graphFormat
|
|
)
|
|
{
|
|
fileName path(vsf.time().path()/"graphs"/vsf.time().timeName());
|
|
mkDir(path);
|
|
|
|
graph
|
|
(
|
|
vsf.name(),
|
|
"x",
|
|
vsf.name(),
|
|
vsf.mesh().C().internalField().component(vector::X),
|
|
vsf.internalField()
|
|
).write(path/vsf.name(), graphFormat);
|
|
}
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
} // End namespace Foam
|
|
|
|
// ************************************************************************* //
|