Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / applications / utilities / postProcessing / dataConversion / foamToFieldview9 / writeSprayHeader.H
blob377e1e2c082b7f83ae9abd4ff0cc4382631f4e46
2     /* Output the magic number. */
3     writeInt(fvParticleFile, FV_MAGIC);
5     /* Output file header and version number. */
6     writeStr80(fvParticleFile, "FVPARTICLES");
8     /* version */
9     writeInt(fvParticleFile, 1);
10     writeInt(fvParticleFile, 1);
12     int nFields = sprayScalarNames.size() + 3*sprayVectorNames.size();
13     writeInt(fvParticleFile, nFields);
15     forAll(sprayScalarNames, nameI)
16     {
17         writeStr80(fvParticleFile, sprayScalarNames[nameI]);
18     }
19     forAll(sprayVectorNames, nameI)
20     {
21         const string& name(sprayVectorNames[nameI]);
22         writeStr80(fvParticleFile, name + ("x;" + name));
23         writeStr80(fvParticleFile, name + ("y;" + name));
24         writeStr80(fvParticleFile, name + ("z;" + name));
25     }