mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: distinguish between cell/face/point topoSetSource (#1060)
- add intermediate classes topoSetCellSource, topoSetFaceSource, topoSetPointSource and corresponding New() factories
This commit is contained in:
@ -25,7 +25,7 @@ Class
|
||||
Foam::labelToCell
|
||||
|
||||
Description
|
||||
A topoSetSource to select cells based on explicitly given labels.
|
||||
A topoSetCellSource to select cells based on explicitly given labels.
|
||||
|
||||
\heading Dictionary parameters
|
||||
\table
|
||||
@ -41,7 +41,7 @@ SourceFiles
|
||||
#ifndef labelToCell_H
|
||||
#define labelToCell_H
|
||||
|
||||
#include "topoSetSource.H"
|
||||
#include "topoSetCellSource.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
@ -54,7 +54,7 @@ namespace Foam
|
||||
|
||||
class labelToCell
|
||||
:
|
||||
public topoSetSource
|
||||
public topoSetCellSource
|
||||
{
|
||||
|
||||
// Private data
|
||||
@ -73,12 +73,11 @@ public:
|
||||
|
||||
// Constructors
|
||||
|
||||
//- Construct from components
|
||||
labelToCell
|
||||
(
|
||||
const polyMesh& mesh,
|
||||
const labelList& labels
|
||||
);
|
||||
//- Construct from components, copying labels
|
||||
labelToCell(const polyMesh& mesh, const labelList& labels);
|
||||
|
||||
//- Construct from components, moving labels
|
||||
labelToCell(const polyMesh& mesh, labelList&& labels);
|
||||
|
||||
//- Construct from dictionary
|
||||
labelToCell(const polyMesh& mesh, const dictionary& dict);
|
||||
@ -93,11 +92,6 @@ public:
|
||||
|
||||
// Member Functions
|
||||
|
||||
virtual sourceType setType() const
|
||||
{
|
||||
return CELLSETSOURCE;
|
||||
}
|
||||
|
||||
virtual void applyToSet
|
||||
(
|
||||
const topoSetSource::setAction action,
|
||||
|
||||
Reference in New Issue
Block a user