Home
Downloads
Documentation
Installation
User Guide
man-pages
API Documentation
README
Release Notes
Changes
License
Support
SourceForge Project
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
sampling
graphField
writeCellGraph.C
Go to the documentation of this file.
1
#include "
writeCellGraph.H
"
2
#include <
finiteVolume/volFields.H
>
3
#include <
finiteVolume/fvMesh.H
>
4
#include <
OpenFOAM/graph.H
>
5
6
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
7
8
namespace
Foam
9
{
10
11
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
12
13
void
writeCellGraph
14
(
15
const
volScalarField
& vsf,
16
const
word
& graphFormat
17
)
18
{
19
graph
20
(
21
vsf.
name
(),
22
"x"
,
23
vsf.
name
(),
24
vsf.
mesh
().
C
().
internalField
().
component
(
vector::X
),
25
vsf.
internalField
()
26
).write(vsf.
time
().
timePath
()/vsf.
name
(), graphFormat);
27
}
28
29
30
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
31
32
}
// End namespace Foam
33
34
// ************************ vim: set sw=4 sts=4 et: ************************ //