mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: fileHandler support. Fixes channel395DFSEM in #675.
This commit is contained in:
@ -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
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user