Go to the documentation of this file.
29 if (
mesh.time().timeIndex() %
vacf.sampleSteps() == 0)
31 Field<vector> uVals(molecules.size());
35 for (
const molecule& mol : molecules)
42 vacf.calculateCorrelationFunction(uVals);
45 if (
mesh.time().timeIndex() %
pacf.sampleSteps() == 0)
49 for (
const molecule& mol : molecules)
52 mol.mass() * mol.U().y() * mol.U().z()
56 mol.mass() * mol.U().z() * mol.U().x()
60 mol.mass() * mol.U().x() * mol.U().y()
64 pacf.calculateCorrelationFunction(
p);
67 if (
mesh.time().timeIndex() %
hfacf.sampleSteps() == 0)
71 for (
const molecule& mol : molecules)
75 0.5*mol.mass()*
magSqr(mol.U())
76 + mol.potentialEnergy()
78 + 0.5*(mol.rf() & mol.U());
81 hfacf.calculateCorrelationFunction(
s);
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;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
static constexpr const zero Zero
Info<< tab<< "pressure"<< endl;const dictionary &pressureACFDict(autocorrelationFunctionDict.subDict("pressure"));correlationFunction< vector > pacf(mesh, pressureACFDict, 1)
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
Vector< scalar > vector
A scalar version of the templated Vector.
Info<< tab<< "heat flux"<< endl;const dictionary &heatFluxACFDict(autocorrelationFunctionDict.subDict("heatFlux"));correlationFunction< vector > hfacf(mesh, heatFluxACFDict, 1)
Info<< nl<< "Creating autocorrelation functions."<< endl;IOdictionary mdTransportProperitesDict(IOobject("mdTransportProperitesDict", mesh.time().system(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE, false));const dictionary &autocorrelationFunctionDict(mdTransportProperitesDict.subDict("autocorrelationFunctions"));Info<< tab<< "velocty"<< endl;const dictionary &velocityACFDict(autocorrelationFunctionDict.subDict("velocity"));correlationFunction< vector > vacf(mesh, velocityACFDict, molecules.size())