BUG: Lagrangian: sync IO call. Fixes #2627

This commit is contained in:
mattijs
2022-11-09 15:31:20 +00:00
parent 6c6c8c5008
commit 8c0679d25f
6 changed files with 23 additions and 21 deletions

View File

@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2021 OpenCFD Ltd.
Copyright (C) 2021-2022 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -104,9 +104,10 @@ void Foam::HeatTransferCoeff<CloudType>::postEvolve
}
if (c.size() && c.time().writeTime())
const bool haveParticles = c.size();
if (c.time().writeTime() && returnReduceOr(haveParticles))
{
htc.write();
htc.write(haveParticles);
}
}

View File

@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2021 OpenCFD Ltd.
Copyright (C) 2021-2022 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -89,10 +89,10 @@ void Foam::KinematicReynoldsNumber<CloudType>::postEvolve
Re[parceli++] = p.Re(td);
}
if (c.size() && c.time().writeTime())
const bool haveParticles = c.size();
if (c.time().writeTime() && returnReduceOr(haveParticles))
{
Re.write();
Re.write(haveParticles);
}
}

View File

@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2021 OpenCFD Ltd.
Copyright (C) 2021-2022 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -103,10 +103,10 @@ void Foam::NusseltNumber<CloudType>::postEvolve
Nu[parceli++] = heatTransfer.Nu(Re, Pr);
}
if (c.size() && c.time().writeTime())
const bool haveParticles = c.size();
if (c.time().writeTime() && returnReduceOr(haveParticles))
{
Nu.write();
Nu.write(haveParticles);
}
}

View File

@ -98,9 +98,10 @@ void Foam::ParticleDose<CloudType>::postEvolve
parceli++;
}
if (c.size() && c.time().writeTime())
const bool haveParticles = c.size();
if (c.time().writeTime() && returnReduceOr(haveParticles))
{
D.write();
D.write(haveParticles);
}
}

View File

@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2021 OpenCFD Ltd.
Copyright (C) 2021-2022 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -99,10 +99,10 @@ void Foam::ThermoReynoldsNumber<CloudType>::postEvolve
Re[parceli++] = p.Re(rhos, p.U(), td.Uc(), p.d(), mus);
}
if (c.size() && c.time().writeTime())
const bool haveParticles = c.size();
if (c.time().writeTime() && returnReduceOr(haveParticles))
{
Re.write();
Re.write(haveParticles);
}
}

View File

@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2020 OpenCFD Ltd.
Copyright (C) 2020,2022 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -113,10 +113,10 @@ void Foam::WeberNumberReacting<CloudType>::postEvolve
We[parceli++] = rhoc*magSqr(p.U() - Uc)*p.d()/sigma;
}
if (c.size() && c.time().writeTime())
const bool haveParticles = c.size();
if (c.time().writeTime() && returnReduceOr(haveParticles))
{
We.write();
We.write(haveParticles);
}
}