Namespaces | Macros | Functions
gnuplotCoordSetWriter.C File Reference
Include dependency graph for gnuplotCoordSetWriter.C:

Go to the source code of this file.

Namespaces

 Foam
 Namespace for OpenFOAM.
 
 Foam::coordSetWriters
 

Macros

#define doLocalCode(Type)
 
#define doLocalCode(Type)
 

Functions

 defineTypeName (gnuplotWriter)
 
 addToRunTimeSelectionTable (coordSetWriter, gnuplotWriter, word)
 
 addToRunTimeSelectionTable (coordSetWriter, gnuplotWriter, wordDict)
 
 defineCoordSetWriterWriteFields (Foam::coordSetWriters::gnuplotWriter)
 

Detailed Description

Original source file gnuplotCoordSetWriter.C

Definition in file gnuplotCoordSetWriter.C.

Macro Definition Documentation

◆ doLocalCode [1/2]

#define doLocalCode (   Type)
Value:
for (const word& fldName : Type##Names_) \
{ \
os << (nplots++ ? ", \\" : "plot \\") << nl; \
os << " '-' title \"" << fldName << "\" with lines"; \
}
constexpr char nl
The newline &#39;\n&#39; character (0x0a)
Definition: Ostream.H:49

Referenced by gnuplotWriter::writeBuffered().

◆ doLocalCode [2/2]

#define doLocalCode (   Type)
Value:
for (const Field<Type>& fld : Type##Fields_) \
{ \
writeTable(os, coords_[0], fld, " \t"); \
os << "end_data" << nl << nl; \
}
constexpr char nl
The newline &#39;\n&#39; character (0x0a)
Definition: Ostream.H:49
OBJstream os(runTime.globalPath()/outputName)
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))

Function Documentation

◆ defineCoordSetWriterWriteFields()

defineCoordSetWriterWriteFields ( Foam::coordSetWriters::gnuplotWriter  )