ENH: fileHandler support. Fixes channel395DFSEM in #675.

This commit is contained in:
mattijs
2017-12-21 14:25:13 +00:00
parent d259402e40
commit 2967be7d4d
2 changed files with 41 additions and 15 deletions

View File

@ -108,16 +108,29 @@ void Foam::turbulentDFSEMInletFvPatchVectorField::writeLumleyCoeffs() const
{
fileName valsFile
(
this->db().time().caseConstant()
/"boundaryData"
/this->patch().name()
/"0"
/"R"
fileHandler().filePath
(
fileName
(
db().time().path()
/db().time().caseConstant()
/"boundaryData"
/this->patch().name()
/"0"
/"R"
)
)
);
IFstream is(valsFile);
autoPtr<ISstream> isPtr
(
fileHandler().NewIFstream
(
valsFile
)
);
Field<symmTensor> Rexp(is);
Field<symmTensor> Rexp(isPtr());
OFstream os(db().time().path()/"lumley_input.out");

View File

@ -72,16 +72,29 @@ Foam::turbulentDFSEMInletFvPatchVectorField::interpolateBoundaryData
fileName valsFile
(
this->db().time().path()
/this->db().time().caseConstant()
/"boundaryData"
/patchName
/"0"
/fieldName
fileHandler().filePath
(
fileName
(
this->db().time().path()
/this->db().time().caseConstant()
/"boundaryData"
/patchName
/"0"
/fieldName
)
)
);
IFstream is(valsFile);
Field<Type> vals(is);
autoPtr<ISstream> isPtr
(
fileHandler().NewIFstream
(
valsFile
)
);
Field<Type> vals(isPtr());
Info<< "Turbulent DFSEM patch " << patchName
<< ": interpolating field " << fieldName