Go to the documentation of this file.
28 OFstream vacfFile(runTime.path()/
"vacf");
30 if (!
vacf.writeAveraged(vacfFile))
33 <<
"Failed writing to "
39 Info<<
"Diffusion coefficient = "
44 OFstream pacfFile(runTime.path()/
"pacf");
46 if (!
pacf.writeAveraged(pacfFile))
49 <<
"Failed writing to "
63 runTime.path()/ +
"hfacf"
66 if (!
hfacf.writeAveraged(hfacfFile))
69 <<
"Failed writing to "
75 Info<<
"Thermal conductivity = "
bool writePacf(Switch(pressureACFDict.lookup("writeFile")))
Info<< tab<< "pressure"<< endl;const dictionary &pressureACFDict(autocorrelationFunctionDict.subDict("pressure"));correlationFunction< vector > pacf(mesh, pressureACFDict, 1)
Pressure autocorrelation function.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool writeHFacf(Switch(heatFluxACFDict.lookup("writeFile")))
scalar averageTemperature
errorManip< error > abort(error &err)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Info<< tab<< "heat flux"<< endl;const dictionary &heatFluxACFDict(autocorrelationFunctionDict.subDict("heatFlux"));correlationFunction< vector > hfacf(mesh, heatFluxACFDict, 1)
Heat flux autocorrelation function.
bool writeVacf(Switch(velocityACFDict.lookup("writeFile")))
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())