mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge remote-tracking branch 'origin/develop' into develop-pre-release
This commit is contained in:
@ -268,6 +268,12 @@ castellatedMeshControls
|
|||||||
// // All three settings can be overridden on a surface by
|
// // All three settings can be overridden on a surface by
|
||||||
// // surface basis in the refinementSurfaces section.
|
// // surface basis in the refinementSurfaces section.
|
||||||
// gapLevel (<numGapCells> <minLevel> <maxlevel>);
|
// gapLevel (<numGapCells> <minLevel> <maxlevel>);
|
||||||
|
// // Optional: when doing the gapLevel refinement directly remove
|
||||||
|
// // based on orientation w.r.t. gap. This limits the
|
||||||
|
// // amount of cells before doing the 'locationInMesh'
|
||||||
|
// // cell selection. Default is 'mixed' i.e. keep cells
|
||||||
|
// // whilst doing the gap-level refinement.
|
||||||
|
// //gapMode inside; // inside/outside/mixed
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
19
etc/caseDicts/postProcessing/fields/processorField
Normal file
19
etc/caseDicts/postProcessing/fields/processorField
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | Web: www.OpenFOAM.com
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
Description
|
||||||
|
Writes a volScalarField with processor number. Useful for postprocessing.
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
type processorField;
|
||||||
|
libs ("libfieldFunctionObjects.so");
|
||||||
|
|
||||||
|
executeControl writeTime;
|
||||||
|
writeControl writeTime;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
113
src/OpenFOAM/containers/HashTables/HashPtrTable/HashPtrTableI.H
Normal file
113
src/OpenFOAM/containers/HashTables/HashPtrTable/HashPtrTableI.H
Normal file
@ -0,0 +1,113 @@
|
|||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | Copyright (C) 2018 OpenCFD Ltd.
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
License
|
||||||
|
This file is part of OpenFOAM.
|
||||||
|
|
||||||
|
OpenFOAM is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#include "autoPtr.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
template<class T, class Key, class Hash>
|
||||||
|
inline Foam::HashPtrTable<T, Key, Hash>::HashPtrTable()
|
||||||
|
:
|
||||||
|
parent_type()
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
template<class T, class Key, class Hash>
|
||||||
|
inline Foam::HashPtrTable<T, Key, Hash>::HashPtrTable(const label size)
|
||||||
|
:
|
||||||
|
parent_type(size)
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
template<class T, class Key, class Hash>
|
||||||
|
inline bool Foam::HashPtrTable<T, Key, Hash>::insert
|
||||||
|
(
|
||||||
|
const Key& key,
|
||||||
|
autoPtr<T>& aptr
|
||||||
|
)
|
||||||
|
{
|
||||||
|
if (parent_type::insert(key, aptr.get()))
|
||||||
|
{
|
||||||
|
aptr.release(); // Now owned by HashPtrTable
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
template<class T, class Key, class Hash>
|
||||||
|
inline bool Foam::HashPtrTable<T, Key, Hash>::insert
|
||||||
|
(
|
||||||
|
const Key& key,
|
||||||
|
autoPtr<T>&& aptr
|
||||||
|
)
|
||||||
|
{
|
||||||
|
if (parent_type::insert(key, aptr.get()))
|
||||||
|
{
|
||||||
|
aptr.release(); // Now owned by HashPtrTable
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
template<class T, class Key, class Hash>
|
||||||
|
inline bool Foam::HashPtrTable<T, Key, Hash>::set
|
||||||
|
(
|
||||||
|
const Key& key,
|
||||||
|
T* ptr
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return this->parent_type::set(key, ptr);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
template<class T, class Key, class Hash>
|
||||||
|
inline bool Foam::HashPtrTable<T, Key, Hash>::set
|
||||||
|
(
|
||||||
|
const Key& key,
|
||||||
|
autoPtr<T>& aptr
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return this->set(key, aptr.release());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
template<class T, class Key, class Hash>
|
||||||
|
inline bool Foam::HashPtrTable<T, Key, Hash>::set
|
||||||
|
(
|
||||||
|
const Key& key,
|
||||||
|
autoPtr<T>&& aptr
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return this->set(key, aptr.release());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -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) 2011-2017 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
\\/ M anipulation | Copyright (C) 2015-2018 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -207,6 +207,7 @@ Foam::polyMesh::readUpdateState Foam::polyMesh::readUpdate()
|
|||||||
if (boundaryChanged)
|
if (boundaryChanged)
|
||||||
{
|
{
|
||||||
WarningInFunction
|
WarningInFunction
|
||||||
|
<< "Number of patches has changed. This may have "
|
||||||
<< "unexpected consequences. Proceed with care." << endl;
|
<< "unexpected consequences. Proceed with care." << endl;
|
||||||
|
|
||||||
boundary_.clear();
|
boundary_.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user