Go to the documentation of this file.
67 int main(
int argc,
char *argv[])
71 for (
int i = 0; i<10; i++)
73 myList.append(
new Scalar(1.3*i));
76 myList.append(
new Scalar(100.3));
77 myList.append(
new Scalar(500.3));
79 Info<<
nl <<
"And again using STL iterator: " <<
nl <<
endl;
86 Info<<
nl <<
"And again using STL const_iterator: " <<
nl <<
endl;
97 Info<<
"original: " << myList <<
endl;
102 Info<<
nl <<
"source: " << myList <<
nl
103 <<
nl <<
"target: " << newList <<
endl;
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
Non-intrusive singly-linked list.
friend Ostream & operator<<(Ostream &os, const Scalar &s)
Ostream & endl(Ostream &os)
Add newline and flush stream.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
void transfer(ILList< LListBase, T > &)
Transfer the contents of the argument into this List.
int main(int argc, char *argv[])
Intrusive singly-linked list.
Ostream & operator<<(Ostream &, const edgeMesh &)
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
An Ostream is an abstract base class for all output systems (streams, files, token lists,...