mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: nearWallFields - updated construction of sampled field. Fixes #1620
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2011-2016 OpenFOAM Foundation
|
Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
Copyright (C) 2015-2018 OpenCFD Ltd.
|
Copyright (C) 2015-2020 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -64,16 +64,20 @@ void Foam::functionObjects::nearWallFields::createFields
|
|||||||
io.readOpt() = IOobject::NO_READ;
|
io.readOpt() = IOobject::NO_READ;
|
||||||
io.writeOpt() = IOobject::NO_WRITE;
|
io.writeOpt() = IOobject::NO_WRITE;
|
||||||
|
|
||||||
// Override bc to be calculated
|
|
||||||
wordList fldTypes(fld.boundaryField().types());
|
|
||||||
for (const label patchi : patchSet_)
|
|
||||||
{
|
|
||||||
fldTypes[patchi] = calculatedFvPatchField<Type>::typeName;
|
|
||||||
}
|
|
||||||
|
|
||||||
io.rename(sampleFldName);
|
io.rename(sampleFldName);
|
||||||
|
|
||||||
sflds.set(sz, new VolFieldType(io, fld, fldTypes));
|
// Override bc to be calculated
|
||||||
|
sflds.set
|
||||||
|
(
|
||||||
|
sz,
|
||||||
|
new VolFieldType
|
||||||
|
(
|
||||||
|
io,
|
||||||
|
fld,
|
||||||
|
patchSet_.toc(),
|
||||||
|
calculatedFvPatchField<Type>::typeName
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
Log << " created " << sflds[sz].name()
|
Log << " created " << sflds[sz].name()
|
||||||
<< " to sample " << fld.name() << endl;
|
<< " to sample " << fld.name() << endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user