26 if (
mesh.time().timeIndex() %
vacf.sampleSteps() == 0)
28 Field<vector> uVals(molecules.size());
34 uVals[uV++] = mol().U();
37 vacf.calculateCorrelationFunction(uVals);
40 if (
mesh.time().timeIndex() %
pacf.sampleSteps() == 0)
47 mol().mass() * mol().U().y() * mol().U().z()
48 + 0.5*mol().rf().yz();
51 mol().mass() * mol().U().z() * mol().U().x()
52 + 0.5*mol().rf().zx();
55 mol().mass() * mol().U().x() * mol().U().y()
56 + 0.5*mol().rf().xy();
59 pacf.calculateCorrelationFunction(p);
62 if (
mesh.time().timeIndex() %
hfacf.sampleSteps() == 0)
70 0.5*mol().mass()*
magSqr(mol().
U())
71 + mol().potentialEnergy()
73 + 0.5*(mol().rf() & mol().U());
76 hfacf.calculateCorrelationFunction(s);
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Info<< tab<< "pressure"<< endl;const dictionary &pressureACFDict(autocorrelationFunctionDict.subDict("pressure"));correlationFunction< vector > pacf(mesh, pressureACFDict, 1)
Pressure autocorrelation function.
Vector< scalar > vector
A scalar version of the templated Vector.
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))
Info<< tab<< "heat flux"<< endl;const dictionary &heatFluxACFDict(autocorrelationFunctionDict.subDict("heatFlux"));correlationFunction< vector > hfacf(mesh, heatFluxACFDict, 1)
Heat flux autocorrelation function.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
Info<< nl<< "Creating autocorrelation functions."<< endl;IOdictionary mdTransportPropertiesDict(IOobject("mdTransportPropertiesDict", mesh.time().system(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE, false));const dictionary &autocorrelationFunctionDict(mdTransportPropertiesDict.subDict("autocorrelationFunctions"));Info<< tab<< "velocity"<< endl;const dictionary &velocityACFDict(autocorrelationFunctionDict.subDict("velocity"));correlationFunction< vector > vacf(mesh, velocityACFDict, molecules.size())
dimensioned< scalar > magSqr(const dimensioned< Type > &)