30 OFstream vacfFile(
runTime.path()/
"vacf");
32 if (!
vacf.writeAveraged(vacfFile))
35 <<
"Failed writing to "
41Info<<
"Diffusion coefficient = "
46 OFstream pacfFile(
runTime.path()/
"pacf");
48 if (!
pacf.writeAveraged(pacfFile))
51 <<
"Failed writing to "
68 if (!
hfacf.writeAveraged(hfacfFile))
71 <<
"Failed writing to "
77Info<<
"Thermal conductivity = "
Info<< tab<< "pressure"<< endl;const dictionary &pressureACFDict(autocorrelationFunctionDict.subDict("pressure"));correlationFunction< vector > pacf(mesh, pressureACFDict, 1)
Pressure autocorrelation function.
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())
bool writePacf(pressureACFDict.get< bool >("writeFile"))
bool writeVacf(velocityACFDict.get< bool >("writeFile"))
bool writeHFacf(heatFluxACFDict.get< bool >("writeFile"))
Info<< tab<< "heat flux"<< endl;const dictionary &heatFluxACFDict(autocorrelationFunctionDict.subDict("heatFlux"));correlationFunction< vector > hfacf(mesh, heatFluxACFDict, 1)
Heat flux autocorrelation function.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
scalar averageTemperature