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 " 66 if (!
hfacf.writeAveraged(hfacfFile))
69 <<
"Failed writing to " 75 Info<<
"Thermal conductivity = "
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool writePacf(Switch(pressureACFDict.lookup("writeFile")))
Ostream & endl(Ostream &os)
Add newline and flush stream.
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.
bool writeVacf(Switch(velocityACFDict.lookup("writeFile")))
errorManip< error > abort(error &err)
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())
scalar averageTemperature
bool writeHFacf(Switch(heatFluxACFDict.lookup("writeFile")))