Merge branch 'master' of github.com:OpenFOAM/OpenFOAM-2.3.x
This commit is contained in:
commit
a0dd7ea121
6 changed files with 28 additions and 32 deletions
|
|
@ -102,17 +102,10 @@ JohnsonJacksonParticleSlipFvPatchVectorField
|
||||||
<< abort(FatalError);
|
<< abort(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dict.found("value"))
|
fvPatchVectorField::operator=
|
||||||
{
|
(
|
||||||
fvPatchVectorField::operator=
|
vectorField("value", dict, p.size())
|
||||||
(
|
);
|
||||||
vectorField("value", dict, p.size())
|
|
||||||
);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
partialSlipFvPatchVectorField::evaluate();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -129,17 +129,10 @@ JohnsonJacksonParticleThetaFvPatchScalarField
|
||||||
<< abort(FatalError);
|
<< abort(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dict.found("value"))
|
fvPatchScalarField::operator=
|
||||||
{
|
(
|
||||||
fvPatchScalarField::operator=
|
scalarField("value", dict, p.size())
|
||||||
(
|
);
|
||||||
scalarField("value", dict, p.size())
|
|
||||||
);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
evaluate();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -466,7 +466,7 @@ void Foam::RASModels::kineticTheoryModel::correct()
|
||||||
+ fvm::div(alphaRhoPhi, Theta_)
|
+ fvm::div(alphaRhoPhi, Theta_)
|
||||||
- fvc::Sp(fvc::ddt(alpha, rho) + fvc::div(alphaRhoPhi), Theta_)
|
- fvc::Sp(fvc::ddt(alpha, rho) + fvc::div(alphaRhoPhi), Theta_)
|
||||||
)
|
)
|
||||||
- fvm::laplacian(kappa_, Theta_, "laplacian(kappa, Theta)")
|
- fvm::laplacian(kappa_, Theta_, "laplacian(kappa,Theta)")
|
||||||
==
|
==
|
||||||
fvm::SuSp(-((PsCoeff*I) && gradU), Theta_)
|
fvm::SuSp(-((PsCoeff*I) && gradU), Theta_)
|
||||||
+ (tau && gradU)
|
+ (tau && gradU)
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
|
|
@ -496,10 +496,16 @@ void getInterfaceSizes
|
||||||
}
|
}
|
||||||
interfaceSizes[nInterfaces] = infoIter();
|
interfaceSizes[nInterfaces] = infoIter();
|
||||||
|
|
||||||
Map<label> zoneAndInterface;
|
if (regionsToInterface.found(e))
|
||||||
zoneAndInterface.insert(zoneID, nInterfaces);
|
{
|
||||||
regionsToInterface.insert(e, zoneAndInterface);
|
regionsToInterface[e].insert(zoneID, nInterfaces);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Map<label> zoneAndInterface;
|
||||||
|
zoneAndInterface.insert(zoneID, nInterfaces);
|
||||||
|
regionsToInterface.insert(e, zoneAndInterface);
|
||||||
|
}
|
||||||
nInterfaces++;
|
nInterfaces++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,12 +31,10 @@ Description
|
||||||
|
|
||||||
#include "triangle.H"
|
#include "triangle.H"
|
||||||
#include "triSurface.H"
|
#include "triSurface.H"
|
||||||
#include "triSurfaceTools.H"
|
|
||||||
#include "triSurfaceSearch.H"
|
#include "triSurfaceSearch.H"
|
||||||
#include "argList.H"
|
#include "argList.H"
|
||||||
#include "OFstream.H"
|
#include "OFstream.H"
|
||||||
#include "OBJstream.H"
|
#include "OBJstream.H"
|
||||||
#include "surfaceIntersection.H"
|
|
||||||
#include "SortableList.H"
|
#include "SortableList.H"
|
||||||
#include "PatchTools.H"
|
#include "PatchTools.H"
|
||||||
#include "vtkSurfaceWriter.H"
|
#include "vtkSurfaceWriter.H"
|
||||||
|
|
@ -223,7 +221,7 @@ int main(int argc, char *argv[])
|
||||||
// write bounding box corners
|
// write bounding box corners
|
||||||
if (args.optionFound("blockMesh"))
|
if (args.optionFound("blockMesh"))
|
||||||
{
|
{
|
||||||
pointField cornerPts(boundBox(surf.points()).points());
|
pointField cornerPts(boundBox(surf.points(), false).points());
|
||||||
|
|
||||||
Info<<"// blockMeshDict info" << nl
|
Info<<"// blockMeshDict info" << nl
|
||||||
<<"vertices\n(" << nl;
|
<<"vertices\n(" << nl;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
|
|
@ -413,6 +413,12 @@ void Foam::Cloud<ParticleType>::autoMap
|
||||||
// polyMesh_.clearCellTree();
|
// polyMesh_.clearCellTree();
|
||||||
cellWallFacesPtr_.clear();
|
cellWallFacesPtr_.clear();
|
||||||
|
|
||||||
|
// Ask for the tetBasePtIs to trigger all processors to build
|
||||||
|
// them, otherwise, if some processors have no particles then
|
||||||
|
// there is a comms mismatch.
|
||||||
|
polyMesh_.tetBasePtIs();
|
||||||
|
|
||||||
|
|
||||||
forAllIter(typename Cloud<ParticleType>, *this, pIter)
|
forAllIter(typename Cloud<ParticleType>, *this, pIter)
|
||||||
{
|
{
|
||||||
ParticleType& p = pIter();
|
ParticleType& p = pIter();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue