mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: InteractionLists. Not writing wall faces obj file when there are
none. using correct timePath.
This commit is contained in:
@ -1032,13 +1032,22 @@ void Foam::InteractionLists<ParticleType>::prepareWallDataToRefer()
|
|||||||
template<class ParticleType>
|
template<class ParticleType>
|
||||||
void Foam::InteractionLists<ParticleType>::writeReferredWallFaces() const
|
void Foam::InteractionLists<ParticleType>::writeReferredWallFaces() const
|
||||||
{
|
{
|
||||||
fileName objDir = mesh_.time().timeName()/cloud::prefix/cloud_.name();
|
if (referredWallFaces_.empty())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
fileName objDir = mesh_.time().timePath()/cloud::prefix;
|
||||||
|
|
||||||
mkDir(objDir);
|
mkDir(objDir);
|
||||||
|
|
||||||
OFstream str(objDir /"referredWallFaces.obj");
|
fileName objFileName = "referredWallFaces.obj";
|
||||||
|
|
||||||
Info<< " Writing " << str.name() << endl;
|
OFstream str(objDir/objFileName);
|
||||||
|
|
||||||
|
Info<< " Writing "
|
||||||
|
<< mesh_.time().timeName()/cloud::prefix/objFileName
|
||||||
|
<< endl;
|
||||||
|
|
||||||
label offset = 1;
|
label offset = 1;
|
||||||
|
|
||||||
|
|||||||
@ -67,6 +67,7 @@ SourceFiles
|
|||||||
#include "treeDataCell.H"
|
#include "treeDataCell.H"
|
||||||
#include "treeDataFace.H"
|
#include "treeDataFace.H"
|
||||||
#include "mapDistribute.H"
|
#include "mapDistribute.H"
|
||||||
|
#include "volFields.H"
|
||||||
#include "Random.H"
|
#include "Random.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|||||||
Reference in New Issue
Block a user