mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Lagrangian: sync IO call. Fixes #2627
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user