mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'develop' of develop.openfoam.com:Development/OpenFOAM-dev-OpenCFD into develop
This commit is contained in:
@ -3,7 +3,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) 2012-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -379,10 +379,10 @@ void Foam::ParticleCollector<CloudType>::collectParcelConcentricCircles
|
|||||||
scalar(nSector_)*theta/constant::mathematical::twoPi
|
scalar(nSector_)*theta/constant::mathematical::twoPi
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
hitFaceIDs_.append(secI);
|
hitFaceIDs_.append(secI);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class CloudType>
|
template<class CloudType>
|
||||||
|
|||||||
@ -1075,21 +1075,6 @@ void Foam::searchableCone::getVolumeType
|
|||||||
volType.setSize(points.size());
|
volType.setSize(points.size());
|
||||||
volType = volumeType::INSIDE;
|
volType = volumeType::INSIDE;
|
||||||
|
|
||||||
scalar magDir = magDir_;
|
|
||||||
|
|
||||||
bool swap = false;
|
|
||||||
bool swapInner = false;
|
|
||||||
|
|
||||||
if (radius1_ > radius2_)
|
|
||||||
{
|
|
||||||
swap = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (innerRadius1_ > innerRadius2_)
|
|
||||||
{
|
|
||||||
swapInner = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
forAll(points, pointI)
|
forAll(points, pointI)
|
||||||
{
|
{
|
||||||
const point& pt = points[pointI];
|
const point& pt = points[pointI];
|
||||||
@ -1100,15 +1085,7 @@ void Foam::searchableCone::getVolumeType
|
|||||||
scalar parallel = v & unitDir_;
|
scalar parallel = v & unitDir_;
|
||||||
scalar comp = parallel;
|
scalar comp = parallel;
|
||||||
scalar compInner = parallel;
|
scalar compInner = parallel;
|
||||||
if (swap)
|
|
||||||
{
|
|
||||||
comp = -(magDir-parallel);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (swapInner)
|
|
||||||
{
|
|
||||||
compInner = -(magDir-parallel);
|
|
||||||
}
|
|
||||||
|
|
||||||
scalar radius_sec = radius1_+comp*(radius2_-radius1_)/magDir_;
|
scalar radius_sec = radius1_+comp*(radius2_-radius1_)/magDir_;
|
||||||
|
|
||||||
|
|||||||
@ -132,8 +132,7 @@ void Foam::probes::findElements(const fvMesh& mesh)
|
|||||||
<< " seems to be on multiple domains:"
|
<< " seems to be on multiple domains:"
|
||||||
<< " cell " << elementList_[probeI]
|
<< " cell " << elementList_[probeI]
|
||||||
<< " on my domain " << Pstream::myProcNo()
|
<< " on my domain " << Pstream::myProcNo()
|
||||||
<< " and cell " << cellI << " on some other domain."
|
<< " and cell " << cellI << " on some other domain." << endl
|
||||||
<< endl
|
|
||||||
<< "This might happen if the probe location is on"
|
<< "This might happen if the probe location is on"
|
||||||
<< " a processor patch. Change the location slightly"
|
<< " a processor patch. Change the location slightly"
|
||||||
<< " to prevent this." << endl;
|
<< " to prevent this." << endl;
|
||||||
@ -146,8 +145,7 @@ void Foam::probes::findElements(const fvMesh& mesh)
|
|||||||
<< " seems to be on multiple domains:"
|
<< " seems to be on multiple domains:"
|
||||||
<< " cell " << faceList_[probeI]
|
<< " cell " << faceList_[probeI]
|
||||||
<< " on my domain " << Pstream::myProcNo()
|
<< " on my domain " << Pstream::myProcNo()
|
||||||
<< " and face " << faceI << " on some other domain."
|
<< " and face " << faceI << " on some other domain." << endl
|
||||||
<< endl
|
|
||||||
<< "This might happen if the probe location is on"
|
<< "This might happen if the probe location is on"
|
||||||
<< " a processor patch. Change the location slightly"
|
<< " a processor patch. Change the location slightly"
|
||||||
<< " to prevent this." << endl;
|
<< " to prevent this." << endl;
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# ========= | #
|
# ========= | #
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox #
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox #
|
||||||
# \\ / O peration | Version: dev #
|
# \\ / O peration | Version: dev #
|
||||||
# \\ / A nd | Web: www.OpenFOAM.com #
|
# \\ / A nd | Web: www.OpenFOAM.org #
|
||||||
# \\/ M anipulation | #
|
# \\/ M anipulation | #
|
||||||
#-----------------------------------------------------------------------------#
|
#-----------------------------------------------------------------------------#
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|||||||
Reference in New Issue
Block a user