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
|
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
|
|||||||
|
|
||||||
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
|
||||||
|
)
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
IFstream is(valsFile);
|
autoPtr<ISstream> isPtr
|
||||||
Field<Type> vals(is);
|
(
|
||||||
|
fileHandler().NewIFstream
|
||||||
|
(
|
||||||
|
valsFile
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
Field<Type> vals(isPtr());
|
||||||
|
|
||||||
Info<< "Turbulent DFSEM patch " << patchName
|
Info<< "Turbulent DFSEM patch " << patchName
|
||||||
<< ": interpolating field " << fieldName
|
<< ": interpolating field " << fieldName
|
||||||
|
|||||||
Reference in New Issue
Block a user