Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenFOAM-plus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Development
OpenFOAM-plus
Commits
39be1630
Commit
39be1630
authored
8 years ago
by
mark
Browse files
Options
Downloads
Patches
Plain Diff
ENH: meshedSurf API for passing around points/faces (issue
#104
)
parent
3130c4ac
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!75
Feature keep sampled pids
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/surfMesh/meshedSurf/meshedSurf.H
+85
-0
85 additions, 0 deletions
src/surfMesh/meshedSurf/meshedSurf.H
src/surfMesh/meshedSurf/meshedSurfRef.H
+119
-0
119 additions, 0 deletions
src/surfMesh/meshedSurf/meshedSurfRef.H
with
204 additions
and
0 deletions
src/surfMesh/meshedSurf/meshedSurf.H
0 → 100644
+
85
−
0
View file @
39be1630
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 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/>.
Class
Foam::meshedSurf
Description
Abstract definition of a meshed surface defined by faces and points.
\*---------------------------------------------------------------------------*/
#ifndef meshedSurf_H
#define meshedSurf_H
#include
"pointField.H"
#include
"faceList.H"
#include
"ListOps.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace
Foam
{
/*---------------------------------------------------------------------------*\
Class meshedSurf Declaration
\*---------------------------------------------------------------------------*/
class
meshedSurf
{
public:
// Constructors
//- Construct null
meshedSurf
()
{}
//- Destructor
virtual
~
meshedSurf
()
{}
// Access Member Functions
//- Const access to (global) points used for the surface
virtual
const
pointField
&
points
()
const
=
0
;
//- Const access to the surface faces
virtual
const
faceList
&
faces
()
const
=
0
;
//- Const access to per-face zone/region information
virtual
const
labelList
&
zoneIds
()
const
=
0
;
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
}
// End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif
// ************************************************************************* //
This diff is collapsed.
Click to expand it.
src/surfMesh/meshedSurf/meshedSurfRef.H
0 → 100644
+
119
−
0
View file @
39be1630
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 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/>.
Class
Foam::meshedSurfRef
Description
Implements a meshed surface by referencing existing faces and points.
\*---------------------------------------------------------------------------*/
#ifndef meshedSurfRef_H
#define meshedSurfRef_H
#include
"meshedSurf.H"
#include
"labelList.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace
Foam
{
/*---------------------------------------------------------------------------*\
Class meshedSurfRef Declaration
\*---------------------------------------------------------------------------*/
class
meshedSurfRef
:
public
meshedSurf
{
const
pointField
&
points_
;
const
faceList
&
faces_
;
const
labelList
&
zoneIds_
;
// Private Member Functions
//- Disallow construct as copy
meshedSurfRef
(
const
meshedSurfRef
&
)
=
delete
;
//- Disallow default bitwise assignment
void
operator
=
(
const
meshedSurfRef
&
)
=
delete
;
public:
// Public Member Functions
// Constructors
//- Construct from components
meshedSurfRef
(
const
pointField
&
pts
,
const
faceList
&
faces
,
const
labelList
&
ids
=
Foam
::
emptyLabelList
)
:
points_
(
pts
),
faces_
(
faces
),
zoneIds_
(
ids
)
{}
//- Destructor
virtual
~
meshedSurfRef
()
{}
// Access Member Functions
//- Const access to (global) points used for the surface
virtual
const
pointField
&
points
()
const
{
return
points_
;
}
//- Const access to the surface faces
virtual
const
faceList
&
faces
()
const
{
return
faces_
;
}
//- Const access to per-face zone/region information
virtual
const
labelList
&
zoneIds
()
const
{
return
zoneIds_
;
}
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
}
// End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif
// ************************************************************************* //
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment