28 Field<vector> uVals(molecules.size());
34 uVals[uV++] = mol().U();
37 vacf.calculateCorrelationFunction(uVals);
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);
70 0.5*mol().mass()*
magSqr(mol().
U())
71 + mol().potentialEnergy()
73 + 0.5*(mol().rf() & mol().U());
76 hfacf.calculateCorrelationFunction(
s);
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
label timeIndex() const
Return current time index.
const Time & time() const
Return the top-level database.
Info<< tab<< "pressure"<< endl;const dictionary &pressureACFDict(autocorrelationFunctionDict.subDict("pressure"));correlationFunction< vector > pacf(mesh, pressureACFDict, 1)
Pressure autocorrelation function.
Info<< tab<< "heat flux"<< endl;const dictionary &heatFluxACFDict(autocorrelationFunctionDict.subDict("heatFlux"));correlationFunction< vector > hfacf(mesh, heatFluxACFDict, 1)
Heat flux autocorrelation function.
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())
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), lagrangian::cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Vector< scalar > vector
A scalar version of the templated Vector.
void magSqr(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)