Commit 2967be7d authored by mattijs's avatar mattijs
Browse files

ENH: fileHandler support. Fixes channel395DFSEM in #675.

parent d259402e
......@@ -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");
......
......@@ -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
)
)
);
autoPtr<ISstream> isPtr
(
fileHandler().NewIFstream
(
valsFile
)
);
IFstream is(valsFile);
Field<Type> vals(is);
Field<Type> vals(isPtr());
Info<< "Turbulent DFSEM patch " << patchName
<< ": interpolating field " << fieldName
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment