Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
2967be7d
Commit
2967be7d
authored
Dec 21, 2017
by
mattijs
Browse files
ENH: fileHandler support. Fixes channel395DFSEM in
#675
.
parent
d259402e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/finiteVolume/fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.C
View file @
2967be7d
...
...
@@ -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
(
is
Ptr
()
);
OFstream
os
(
db
().
time
().
path
()
/
"lumley_input.out"
);
...
...
src/finiteVolume/fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorFieldTemplates.C
View file @
2967be7d
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment