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 ...@@ -108,16 +108,29 @@ void Foam::turbulentDFSEMInletFvPatchVectorField::writeLumleyCoeffs() const
{ {
fileName valsFile fileName valsFile
( (
this->db().time().caseConstant() fileHandler().filePath
/"boundaryData" (
/this->patch().name() fileName
/"0" (
/"R" 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"); OFstream os(db().time().path()/"lumley_input.out");
......
...@@ -72,16 +72,29 @@ Foam::turbulentDFSEMInletFvPatchVectorField::interpolateBoundaryData ...@@ -72,16 +72,29 @@ Foam::turbulentDFSEMInletFvPatchVectorField::interpolateBoundaryData
fileName valsFile fileName valsFile
( (
this->db().time().path() fileHandler().filePath
/this->db().time().caseConstant() (
/"boundaryData" fileName
/patchName (
/"0" this->db().time().path()
/fieldName /this->db().time().caseConstant()
/"boundaryData"
/patchName
/"0"
/fieldName
)
)
);
autoPtr<ISstream> isPtr
(
fileHandler().NewIFstream
(
valsFile
)
); );
IFstream is(valsFile); Field<Type> vals(isPtr());
Field<Type> vals(is);
Info<< "Turbulent DFSEM patch " << patchName Info<< "Turbulent DFSEM patch " << patchName
<< ": interpolating field " << fieldName << ": 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