Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -25,11 +25,9 @@ Application
|
|||||||
chtMultiRegionFoam
|
chtMultiRegionFoam
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Transient solver for buoyant, turbulent fluid flow and solid heat
|
Solver for steady or transient fluid flow and solid heat conduction, with
|
||||||
conduction with conjugate heat transfer between solid and fluid regions.
|
conjugate heat transfer between regions, buoyancy effects, turbulence,
|
||||||
|
reactions and radiation modelling.
|
||||||
It handles secondary fluid or solid circuits which can be coupled
|
|
||||||
thermally with the main fluid region. i.e radiators, etc.
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
|||||||
@ -390,24 +390,23 @@ void Foam::particle::locate
|
|||||||
(
|
(
|
||||||
const vector& position,
|
const vector& position,
|
||||||
const vector* direction,
|
const vector* direction,
|
||||||
const label celli,
|
label celli,
|
||||||
const bool boundaryFail,
|
const bool boundaryFail,
|
||||||
const string boundaryMsg
|
const string boundaryMsg
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
celli_ = celli;
|
|
||||||
|
|
||||||
// Find the cell, if it has not been given
|
// Find the cell, if it has not been given
|
||||||
if (celli_ < 0)
|
if (celli < 0)
|
||||||
{
|
{
|
||||||
celli_ = mesh_.cellTree().findInside(position);
|
celli = mesh_.cellTree().findInside(position);
|
||||||
}
|
}
|
||||||
if (celli_ < 0)
|
if (celli < 0)
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInFunction
|
||||||
<< "Cell not found for particle position " << position << "."
|
<< "Cell not found for particle position " << position << "."
|
||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
|
celli_ = celli;
|
||||||
|
|
||||||
// Track from the centre of the cell to the desired position
|
// Track from the centre of the cell to the desired position
|
||||||
const vector displacement = position - mesh_.cellCentres()[celli_];
|
const vector displacement = position - mesh_.cellCentres()[celli_];
|
||||||
@ -479,6 +478,7 @@ void Foam::particle::locate
|
|||||||
const vector sT = displacement - sN;
|
const vector sT = displacement - sN;
|
||||||
|
|
||||||
coordinates_ = barycentric(1, 0, 0, 0);
|
coordinates_ = barycentric(1, 0, 0, 0);
|
||||||
|
celli_ = celli;
|
||||||
tetFacei_ = minTetFacei;
|
tetFacei_ = minTetFacei;
|
||||||
tetPti_ = minTetPti;
|
tetPti_ = minTetPti;
|
||||||
facei_ = -1;
|
facei_ = -1;
|
||||||
|
|||||||
@ -275,7 +275,7 @@ private:
|
|||||||
(
|
(
|
||||||
const vector& position,
|
const vector& position,
|
||||||
const vector* direction,
|
const vector* direction,
|
||||||
const label celli,
|
label celli,
|
||||||
const bool boundaryFail,
|
const bool boundaryFail,
|
||||||
const string boundaryMsg
|
const string boundaryMsg
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user