30 OFstream vacfFile(
runTime.path()/
"vacf");
32 if (!
vacf.writeAveraged(vacfFile))
35 <<
"Failed writing to " 41 Info<<
"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 " 77 Info<<
"Thermal conductivity = "
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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 writeHFacf(heatFluxACFDict.get< bool >("writeFile"))
errorManip< error > abort(error &err)
bool writeVacf(velocityACFDict.get< bool >("writeFile"))
Info<< nl<< "Creating autocorrelation functions."<< endl;IOdictionary mdTransportProperitesDict(IOobject("mdTransportProperitesDict", mesh.time().system(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE, IOobject::NO_REGISTER));const dictionary &autocorrelationFunctionDict(mdTransportProperitesDict.subDict("autocorrelationFunctions"));Info<< tab<< "velocty"<< endl;const dictionary &velocityACFDict(autocorrelationFunctionDict.subDict("velocity"));correlationFunction< vector > vacf(mesh, velocityACFDict, molecules.size())
scalar averageTemperature
bool writePacf(pressureACFDict.get< bool >("writeFile"))
messageStream Info
Information stream (stdout output on master, null elsewhere)