| 11 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // |
| 12 | |
| 13 | void writeCellGraph |
| 14 | ( |
| 15 | const volScalarField& vsf, |
| 16 | const word& graphFormat |
| 17 | ) |
| 18 | { |
| 19 | fileName path(vsf.time().path()/"graphs"/vsf.time().timeName()); |
| 20 | mkDir(path); |
| 21 | |
| 22 | graph |
| 23 | ( |
| 24 | vsf.name(), |
| 25 | "x", |
| 26 | vsf.name(), |
| 27 | vsf.mesh().C().primitiveField().component(vector::X), |
| 28 | vsf.primitiveField() |
| 29 | ).write(path/vsf.name(), graphFormat); |
| 30 | } |
| 31 | |
| 32 | |
| 33 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // |