mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
src/finiteVolume: Moved function documentation comments into .H files and removed duplicates
This commit is contained in:
@ -67,7 +67,6 @@ Foam::processorFvPatchField<Type>::processorFvPatchField
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Construct by mapping given processorFvPatchField<Type>
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
Foam::processorFvPatchField<Type>::processorFvPatchField
|
Foam::processorFvPatchField<Type>::processorFvPatchField
|
||||||
(
|
(
|
||||||
|
|||||||
@ -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-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -50,13 +50,11 @@ Foam::processorCyclicFvPatchField<Type>::processorCyclicFvPatchField
|
|||||||
const Field<Type>& f
|
const Field<Type>& f
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
//coupledFvPatchField<Type>(p, iF, f),
|
|
||||||
processorFvPatchField<Type>(p, iF, f),
|
processorFvPatchField<Type>(p, iF, f),
|
||||||
procPatch_(refCast<const processorCyclicFvPatch>(p))
|
procPatch_(refCast<const processorCyclicFvPatch>(p))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Construct by mapping given processorCyclicFvPatchField<Type>
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
Foam::processorCyclicFvPatchField<Type>::processorCyclicFvPatchField
|
Foam::processorCyclicFvPatchField<Type>::processorCyclicFvPatchField
|
||||||
(
|
(
|
||||||
@ -66,7 +64,6 @@ Foam::processorCyclicFvPatchField<Type>::processorCyclicFvPatchField
|
|||||||
const fvPatchFieldMapper& mapper
|
const fvPatchFieldMapper& mapper
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
//coupledFvPatchField<Type>(ptf, p, iF, mapper),
|
|
||||||
processorFvPatchField<Type>(ptf, p, iF, mapper),
|
processorFvPatchField<Type>(ptf, p, iF, mapper),
|
||||||
procPatch_(refCast<const processorCyclicFvPatch>(p))
|
procPatch_(refCast<const processorCyclicFvPatch>(p))
|
||||||
{
|
{
|
||||||
@ -90,7 +87,6 @@ Foam::processorCyclicFvPatchField<Type>::processorCyclicFvPatchField
|
|||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
//coupledFvPatchField<Type>(p, iF, dict),
|
|
||||||
processorFvPatchField<Type>(p, iF, dict),
|
processorFvPatchField<Type>(p, iF, dict),
|
||||||
procPatch_(refCast<const processorCyclicFvPatch>(p))
|
procPatch_(refCast<const processorCyclicFvPatch>(p))
|
||||||
{
|
{
|
||||||
@ -122,8 +118,6 @@ Foam::processorCyclicFvPatchField<Type>::processorCyclicFvPatchField
|
|||||||
const processorCyclicFvPatchField<Type>& ptf
|
const processorCyclicFvPatchField<Type>& ptf
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
//processorLduInterfaceField(),
|
|
||||||
//coupledFvPatchField<Type>(ptf),
|
|
||||||
processorFvPatchField<Type>(ptf),
|
processorFvPatchField<Type>(ptf),
|
||||||
procPatch_(refCast<const processorCyclicFvPatch>(ptf.patch()))
|
procPatch_(refCast<const processorCyclicFvPatch>(ptf.patch()))
|
||||||
{}
|
{}
|
||||||
@ -136,7 +130,6 @@ Foam::processorCyclicFvPatchField<Type>::processorCyclicFvPatchField
|
|||||||
const DimensionedField<Type, volMesh>& iF
|
const DimensionedField<Type, volMesh>& iF
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
//coupledFvPatchField<Type>(ptf, iF),
|
|
||||||
processorFvPatchField<Type>(ptf, iF),
|
processorFvPatchField<Type>(ptf, iF),
|
||||||
procPatch_(refCast<const processorCyclicFvPatch>(ptf.patch()))
|
procPatch_(refCast<const processorCyclicFvPatch>(ptf.patch()))
|
||||||
{}
|
{}
|
||||||
|
|||||||
@ -558,7 +558,6 @@ void Foam::fvPatchField<Type>::operator/=
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Force an assignment, overriding fixedValue status
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
void Foam::fvPatchField<Type>::operator==
|
void Foam::fvPatchField<Type>::operator==
|
||||||
(
|
(
|
||||||
|
|||||||
@ -53,7 +53,6 @@ Foam::extendedCentredCellToCellStencil::extendedCentredCellToCellStencil
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
// Per cell which elements of the stencil to keep.
|
|
||||||
void Foam::extendedCentredCellToCellStencil::compact()
|
void Foam::extendedCentredCellToCellStencil::compact()
|
||||||
{
|
{
|
||||||
boolList isInStencil(map().constructSize(), false);
|
boolList isInStencil(map().constructSize(), false);
|
||||||
|
|||||||
@ -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-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -29,7 +29,6 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
// Calculates per edge the neighbour data (= edgeCells)
|
|
||||||
void Foam::CECCellToCellStencil::calcEdgeBoundaryData
|
void Foam::CECCellToCellStencil::calcEdgeBoundaryData
|
||||||
(
|
(
|
||||||
const boolList& isValidBFace,
|
const boolList& isValidBFace,
|
||||||
@ -61,8 +60,6 @@ void Foam::CECCellToCellStencil::calcEdgeBoundaryData
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Calculates per cell the neighbour data (= cell or boundary in global
|
|
||||||
// numbering). First element is always cell itself!
|
|
||||||
void Foam::CECCellToCellStencil::calcCellStencil
|
void Foam::CECCellToCellStencil::calcCellStencil
|
||||||
(
|
(
|
||||||
labelListList& globalCellCells
|
labelListList& globalCellCells
|
||||||
|
|||||||
@ -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-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -63,6 +63,9 @@ class CECCellToCellStencil
|
|||||||
EdgeMap<labelList>& neiGlobal
|
EdgeMap<labelList>& neiGlobal
|
||||||
) const;
|
) const;
|
||||||
|
|
||||||
|
//- Calculates per cell the neighbour data
|
||||||
|
// (= cell or boundary in global numbering).
|
||||||
|
// First element is always cell itself!
|
||||||
void calcCellStencil(labelListList& globalCellCells) const;
|
void calcCellStencil(labelListList& globalCellCells) const;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -30,7 +30,6 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
// Calculates per face the neighbour data (= cell or boundary face)
|
|
||||||
void Foam::CFCCellToCellStencil::calcFaceBoundaryData
|
void Foam::CFCCellToCellStencil::calcFaceBoundaryData
|
||||||
(
|
(
|
||||||
labelList& neiGlobal
|
labelList& neiGlobal
|
||||||
@ -82,10 +81,10 @@ void Foam::CFCCellToCellStencil::calcFaceBoundaryData
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Calculates per cell the neighbour data (= cell or boundary in global
|
void Foam::CFCCellToCellStencil::calcCellStencil
|
||||||
// numbering). First element is always cell itself!
|
(
|
||||||
void Foam::CFCCellToCellStencil::calcCellStencil(labelListList& globalCellCells)
|
labelListList& globalCellCells
|
||||||
const
|
) const
|
||||||
{
|
{
|
||||||
const label nBnd = mesh().nFaces()-mesh().nInternalFaces();
|
const label nBnd = mesh().nFaces()-mesh().nInternalFaces();
|
||||||
const labelList& own = mesh().faceOwner();
|
const labelList& own = mesh().faceOwner();
|
||||||
|
|||||||
@ -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-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -51,8 +51,12 @@ class CFCCellToCellStencil
|
|||||||
{
|
{
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
|
//- Calculates per face the neighbour data (= cell or boundary face)
|
||||||
void calcFaceBoundaryData(labelList& neiGlobal) const;
|
void calcFaceBoundaryData(labelList& neiGlobal) const;
|
||||||
|
|
||||||
|
//- Calculates per cell the neighbour data
|
||||||
|
// (= cell or boundary in global numbering).
|
||||||
|
// First element is always cell itself!
|
||||||
void calcCellStencil(labelListList& globalCellCells) const;
|
void calcCellStencil(labelListList& globalCellCells) const;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -29,7 +29,6 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
// Calculates per point the neighbour data (= pointCells)
|
|
||||||
void Foam::CPCCellToCellStencil::calcPointBoundaryData
|
void Foam::CPCCellToCellStencil::calcPointBoundaryData
|
||||||
(
|
(
|
||||||
const boolList& isValidBFace,
|
const boolList& isValidBFace,
|
||||||
@ -67,8 +66,6 @@ void Foam::CPCCellToCellStencil::calcPointBoundaryData
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Calculates per cell the neighbour data (= cell or boundary in global
|
|
||||||
// numbering). First element is always cell itself!
|
|
||||||
void Foam::CPCCellToCellStencil::calcCellStencil
|
void Foam::CPCCellToCellStencil::calcCellStencil
|
||||||
(
|
(
|
||||||
labelListList& globalCellCells
|
labelListList& globalCellCells
|
||||||
|
|||||||
@ -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-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -62,6 +62,9 @@ class CPCCellToCellStencil
|
|||||||
Map<labelList>& neiGlobal
|
Map<labelList>& neiGlobal
|
||||||
) const;
|
) const;
|
||||||
|
|
||||||
|
//- Calculates per cell the neighbour data
|
||||||
|
// (= cell or boundary in global numbering).
|
||||||
|
// First element is always cell itself!
|
||||||
void calcCellStencil(labelListList& globalCellCells) const;
|
void calcCellStencil(labelListList& globalCellCells) const;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -30,7 +30,6 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
// Merge two list and guarantee global0,global1 are first.
|
|
||||||
void Foam::cellToCellStencil::merge
|
void Foam::cellToCellStencil::merge
|
||||||
(
|
(
|
||||||
const label global0,
|
const label global0,
|
||||||
@ -131,7 +130,6 @@ void Foam::cellToCellStencil::merge
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Merge two list and guarantee globalI is first.
|
|
||||||
void Foam::cellToCellStencil::merge
|
void Foam::cellToCellStencil::merge
|
||||||
(
|
(
|
||||||
const label globalI,
|
const label globalI,
|
||||||
|
|||||||
@ -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-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -67,16 +67,22 @@ class cellToCellStencil
|
|||||||
protected:
|
protected:
|
||||||
|
|
||||||
//- Merge two lists.
|
//- Merge two lists.
|
||||||
|
// Guarantee global0, global1 are first.
|
||||||
static void merge
|
static void merge
|
||||||
(
|
(
|
||||||
const label,
|
const label global0,
|
||||||
const label,
|
const label global1,
|
||||||
const labelList&,
|
const labelList& listA,
|
||||||
labelList&
|
labelList& listB
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Merge two lists.
|
//- Merge two lists and guarantee globalI is first.
|
||||||
static void merge(const label, const labelList&, labelList&);
|
static void merge
|
||||||
|
(
|
||||||
|
const label globalI,
|
||||||
|
const labelList& pGlobals,
|
||||||
|
labelList& cCells
|
||||||
|
);
|
||||||
|
|
||||||
//- Valid boundary faces (not empty and not coupled)
|
//- Valid boundary faces (not empty and not coupled)
|
||||||
void validBoundaryFaces(boolList& isValidBFace) const;
|
void validBoundaryFaces(boolList& isValidBFace) const;
|
||||||
|
|||||||
@ -53,9 +53,10 @@ Foam::extendedCentredCellToFaceStencil::extendedCentredCellToFaceStencil
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
// Per face which elements of the stencil to keep.
|
|
||||||
void Foam::extendedCentredCellToFaceStencil::compact()
|
void Foam::extendedCentredCellToFaceStencil::compact()
|
||||||
{
|
{
|
||||||
|
// Per face which elements of the stencil to keep.
|
||||||
|
|
||||||
boolList isInStencil(map().constructSize(), false);
|
boolList isInStencil(map().constructSize(), false);
|
||||||
|
|
||||||
forAll(stencil_, faceI)
|
forAll(stencil_, faceI)
|
||||||
|
|||||||
@ -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-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -30,7 +30,6 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
// Calculates per edge the neighbour data (= edgeCells)
|
|
||||||
void Foam::FECCellToFaceStencil::calcEdgeBoundaryData
|
void Foam::FECCellToFaceStencil::calcEdgeBoundaryData
|
||||||
(
|
(
|
||||||
const boolList& isValidBFace,
|
const boolList& isValidBFace,
|
||||||
@ -62,8 +61,6 @@ void Foam::FECCellToFaceStencil::calcEdgeBoundaryData
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Calculates per face the edge connected data (= cell or boundary in global
|
|
||||||
// numbering).
|
|
||||||
void Foam::FECCellToFaceStencil::calcFaceStencil
|
void Foam::FECCellToFaceStencil::calcFaceStencil
|
||||||
(
|
(
|
||||||
labelListList& faceStencil
|
labelListList& faceStencil
|
||||||
|
|||||||
@ -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-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -61,6 +61,8 @@ class FECCellToFaceStencil
|
|||||||
EdgeMap<labelList>& neiGlobal
|
EdgeMap<labelList>& neiGlobal
|
||||||
) const;
|
) const;
|
||||||
|
|
||||||
|
//- Calculates per face the edge connected data
|
||||||
|
// (= cell or boundary in global numbering).
|
||||||
void calcFaceStencil(labelListList& faceStencil) const;
|
void calcFaceStencil(labelListList& faceStencil) const;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -31,7 +31,6 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
// Merge two list and guarantee global0,global1 are first.
|
|
||||||
void Foam::cellToFaceStencil::merge
|
void Foam::cellToFaceStencil::merge
|
||||||
(
|
(
|
||||||
const label global0,
|
const label global0,
|
||||||
@ -132,7 +131,6 @@ void Foam::cellToFaceStencil::merge
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Merge two list and guarantee globalI is first.
|
|
||||||
void Foam::cellToFaceStencil::merge
|
void Foam::cellToFaceStencil::merge
|
||||||
(
|
(
|
||||||
const label globalI,
|
const label globalI,
|
||||||
@ -338,13 +336,14 @@ Foam::labelList Foam::cellToFaceStencil::calcFaceCells
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Calculates per face a list of global cell/face indices.
|
|
||||||
void Foam::cellToFaceStencil::calcFaceStencil
|
void Foam::cellToFaceStencil::calcFaceStencil
|
||||||
(
|
(
|
||||||
const labelListList& globalCellCells,
|
const labelListList& globalCellCells,
|
||||||
labelListList& faceStencil
|
labelListList& faceStencil
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
|
// Calculates per face a list of global cell/face indices.
|
||||||
|
|
||||||
const polyBoundaryMesh& patches = mesh_.boundaryMesh();
|
const polyBoundaryMesh& patches = mesh_.boundaryMesh();
|
||||||
const label nBnd = mesh_.nFaces()-mesh_.nInternalFaces();
|
const label nBnd = mesh_.nFaces()-mesh_.nInternalFaces();
|
||||||
const labelList& own = mesh_.faceOwner();
|
const labelList& own = mesh_.faceOwner();
|
||||||
|
|||||||
@ -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-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -67,16 +67,22 @@ class cellToFaceStencil
|
|||||||
protected:
|
protected:
|
||||||
|
|
||||||
//- Merge two lists.
|
//- Merge two lists.
|
||||||
|
// Guarantee global0, global1 are first.
|
||||||
static void merge
|
static void merge
|
||||||
(
|
(
|
||||||
const label,
|
const label global0,
|
||||||
const label,
|
const label global1,
|
||||||
const labelList&,
|
const labelList& listA,
|
||||||
labelList&
|
labelList& listB
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Merge two lists.
|
//- Merge two lists and guarantee globalI is first.
|
||||||
static void merge(const label, const labelList&, labelList&);
|
static void merge
|
||||||
|
(
|
||||||
|
const label globalI,
|
||||||
|
const labelList& pGlobals,
|
||||||
|
labelList& cCells
|
||||||
|
);
|
||||||
|
|
||||||
//- Valid boundary faces (not empty and not coupled)
|
//- Valid boundary faces (not empty and not coupled)
|
||||||
void validBoundaryFaces(boolList& isValidBFace) const;
|
void validBoundaryFaces(boolList& isValidBFace) const;
|
||||||
|
|||||||
@ -53,7 +53,6 @@ Foam::extendedCentredFaceToCellStencil::extendedCentredFaceToCellStencil
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
// Per face which elements of the stencil to keep.
|
|
||||||
void Foam::extendedCentredFaceToCellStencil::compact()
|
void Foam::extendedCentredFaceToCellStencil::compact()
|
||||||
{
|
{
|
||||||
boolList isInStencil(map().constructSize(), false);
|
boolList isInStencil(map().constructSize(), false);
|
||||||
|
|||||||
@ -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-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -30,8 +30,6 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
// Calculates per face the neighbour data (= faces of cell). Leaves out the
|
|
||||||
// face itself since this is already in stencil.
|
|
||||||
void Foam::CFCFaceToCellStencil::calcFaceBoundaryData
|
void Foam::CFCFaceToCellStencil::calcFaceBoundaryData
|
||||||
(
|
(
|
||||||
labelListList& neiGlobal
|
labelListList& neiGlobal
|
||||||
@ -81,7 +79,7 @@ void Foam::CFCFaceToCellStencil::calcFaceBoundaryData
|
|||||||
// Do nothing since face itself already in stencil
|
// Do nothing since face itself already in stencil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//syncTools::swapBoundaryFaceList(mesh(), neiGlobal);
|
|
||||||
syncTools::syncBoundaryFaceList
|
syncTools::syncBoundaryFaceList
|
||||||
(
|
(
|
||||||
mesh(),
|
mesh(),
|
||||||
@ -92,10 +90,10 @@ void Foam::CFCFaceToCellStencil::calcFaceBoundaryData
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Calculates per cell the neighbour data (= cell or boundary in global
|
void Foam::CFCFaceToCellStencil::calcCellStencil
|
||||||
// numbering). First element is always cell itself!
|
(
|
||||||
void Foam::CFCFaceToCellStencil::calcCellStencil(labelListList& globalCellFaces)
|
labelListList& globalCellFaces
|
||||||
const
|
) const
|
||||||
{
|
{
|
||||||
const label nBnd = mesh().nFaces()-mesh().nInternalFaces();
|
const label nBnd = mesh().nFaces()-mesh().nInternalFaces();
|
||||||
const labelList& own = mesh().faceOwner();
|
const labelList& own = mesh().faceOwner();
|
||||||
|
|||||||
@ -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-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -51,8 +51,13 @@ class CFCFaceToCellStencil
|
|||||||
{
|
{
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
|
//- Calculates per face the neighbour data (= faces of cell).
|
||||||
|
// Leaves out the face itself since this is already in stencil.
|
||||||
void calcFaceBoundaryData(labelListList& neiGlobal) const;
|
void calcFaceBoundaryData(labelListList& neiGlobal) const;
|
||||||
|
|
||||||
|
//- Calculates per cell the neighbour data
|
||||||
|
// (= cell or boundary in global numbering).
|
||||||
|
// First element is always cell itself!
|
||||||
void calcCellStencil(labelListList& globalCellFaces) const;
|
void calcCellStencil(labelListList& globalCellFaces) const;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -156,14 +156,6 @@ void Foam::fvPatchMapper::calcAddressing() const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//// Cater for bad mapping
|
|
||||||
//if (nActive == 0)
|
|
||||||
//{
|
|
||||||
// newAddr[nActive] = 0;
|
|
||||||
// newWeights[nActive] = 1;
|
|
||||||
// nActive++;
|
|
||||||
//}
|
|
||||||
|
|
||||||
newAddr.setSize(nActive);
|
newAddr.setSize(nActive);
|
||||||
newWeights.setSize(nActive);
|
newWeights.setSize(nActive);
|
||||||
|
|
||||||
@ -211,7 +203,6 @@ void Foam::fvPatchMapper::clearOut()
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
// Construct from components
|
|
||||||
Foam::fvPatchMapper::fvPatchMapper
|
Foam::fvPatchMapper::fvPatchMapper
|
||||||
(
|
(
|
||||||
const fvPatch& patch,
|
const fvPatch& patch,
|
||||||
|
|||||||
@ -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-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -144,7 +144,6 @@ void Foam::fvSurfaceMapper::clearOut()
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
// Construct from components
|
|
||||||
Foam::fvSurfaceMapper::fvSurfaceMapper
|
Foam::fvSurfaceMapper::fvSurfaceMapper
|
||||||
(
|
(
|
||||||
const fvMesh& mesh,
|
const fvMesh& mesh,
|
||||||
|
|||||||
@ -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-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -87,14 +87,15 @@ void Foam::fvMeshSubset::markPoints
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Synchronize nCellsUsingFace on both sides of coupled patches. Marks
|
|
||||||
// faces that become 'uncoupled' with 3.
|
|
||||||
void Foam::fvMeshSubset::doCoupledPatches
|
void Foam::fvMeshSubset::doCoupledPatches
|
||||||
(
|
(
|
||||||
const bool syncPar,
|
const bool syncPar,
|
||||||
labelList& nCellsUsingFace
|
labelList& nCellsUsingFace
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
|
// Synchronize nCellsUsingFace on both sides of coupled patches.
|
||||||
|
// Marks faces that become 'uncoupled' with 3.
|
||||||
|
|
||||||
const polyBoundaryMesh& oldPatches = baseMesh().boundaryMesh();
|
const polyBoundaryMesh& oldPatches = baseMesh().boundaryMesh();
|
||||||
|
|
||||||
label nUncoupled = 0;
|
label nUncoupled = 0;
|
||||||
@ -355,7 +356,6 @@ void Foam::fvMeshSubset::subsetZones()
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
// Construct from components
|
|
||||||
Foam::fvMeshSubset::fvMeshSubset(const fvMesh& baseMesh)
|
Foam::fvMeshSubset::fvMeshSubset(const fvMesh& baseMesh)
|
||||||
:
|
:
|
||||||
baseMesh_(baseMesh),
|
baseMesh_(baseMesh),
|
||||||
|
|||||||
@ -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-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -29,16 +29,17 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
// Conversion is a two step process:
|
|
||||||
// - from original (fine) patch faces to agglomerations (aggloms might not
|
|
||||||
// be in correct patch order)
|
|
||||||
// - from agglomerations to coarse patch faces
|
|
||||||
void Foam::singleCellFvMesh::agglomerateMesh
|
void Foam::singleCellFvMesh::agglomerateMesh
|
||||||
(
|
(
|
||||||
const fvMesh& mesh,
|
const fvMesh& mesh,
|
||||||
const labelListList& agglom
|
const labelListList& agglom
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
// Conversion is a two step process:
|
||||||
|
// - from original (fine) patch faces to agglomerations (aggloms might not
|
||||||
|
// be in correct patch order)
|
||||||
|
// - from agglomerations to coarse patch faces
|
||||||
|
|
||||||
const polyBoundaryMesh& oldPatches = mesh.boundaryMesh();
|
const polyBoundaryMesh& oldPatches = mesh.boundaryMesh();
|
||||||
|
|
||||||
// Check agglomeration within patch face range and continuous
|
// Check agglomeration within patch face range and continuous
|
||||||
|
|||||||
@ -30,7 +30,6 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
// Construct from components
|
|
||||||
template<class TransferType>
|
template<class TransferType>
|
||||||
Foam::wallDistData<TransferType>::wallDistData
|
Foam::wallDistData<TransferType>::wallDistData
|
||||||
(
|
(
|
||||||
@ -68,7 +67,6 @@ Foam::wallDistData<TransferType>::~wallDistData()
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
// Correct for mesh geom/topo changes
|
|
||||||
template<class TransferType>
|
template<class TransferType>
|
||||||
void Foam::wallDistData<TransferType>::correct()
|
void Foam::wallDistData<TransferType>::correct()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -121,7 +121,6 @@ Foam::surfaceInterpolation::nonOrthCorrectionVectors() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Do what is neccessary if the mesh has moved
|
|
||||||
bool Foam::surfaceInterpolation::movePoints()
|
bool Foam::surfaceInterpolation::movePoints()
|
||||||
{
|
{
|
||||||
deleteDemandDrivenData(weights_);
|
deleteDemandDrivenData(weights_);
|
||||||
|
|||||||
Reference in New Issue
Block a user