mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: [sampled]DistanceSurface - added construct from searchableSurface
This commit is contained in:
@ -64,6 +64,30 @@ Foam::sampledDistanceSurface::sampledDistanceSurface
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
Foam::sampledDistanceSurface::sampledDistanceSurface
|
||||||
|
(
|
||||||
|
const word name,
|
||||||
|
const polyMesh& mesh,
|
||||||
|
const bool interpolate,
|
||||||
|
autoPtr<searchableSurface>&& surface,
|
||||||
|
const scalar distance,
|
||||||
|
const bool useSignedDistance
|
||||||
|
)
|
||||||
|
:
|
||||||
|
sampledSurface(name, mesh, interpolate),
|
||||||
|
distanceSurface
|
||||||
|
(
|
||||||
|
mesh,
|
||||||
|
interpolate,
|
||||||
|
std::move(surface),
|
||||||
|
distance,
|
||||||
|
useSignedDistance
|
||||||
|
),
|
||||||
|
average_(false), // pass as param?
|
||||||
|
needsUpdate_(true)
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
bool Foam::sampledDistanceSurface::needsUpdate() const
|
bool Foam::sampledDistanceSurface::needsUpdate() const
|
||||||
|
|||||||
@ -141,6 +141,18 @@ public:
|
|||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
sampledDistanceSurface
|
||||||
|
(
|
||||||
|
const word name,
|
||||||
|
const polyMesh& mesh,
|
||||||
|
const bool interpolate,
|
||||||
|
autoPtr<searchableSurface>&& surface,
|
||||||
|
const scalar distance,
|
||||||
|
const bool useSignedDistance
|
||||||
|
//const isoSurfaceParams& params = isoSurfaceParams()
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~sampledDistanceSurface() = default;
|
virtual ~sampledDistanceSurface() = default;
|
||||||
|
|
||||||
|
|||||||
@ -349,9 +349,10 @@ Foam::distanceSurface::distanceSurface
|
|||||||
const isoSurfaceParams& params
|
const isoSurfaceParams& params
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
mesh_(mesh),
|
distanceSurface
|
||||||
geometryPtr_
|
|
||||||
(
|
(
|
||||||
|
mesh,
|
||||||
|
interpolate,
|
||||||
searchableSurface::New
|
searchableSurface::New
|
||||||
(
|
(
|
||||||
surfaceType,
|
surfaceType,
|
||||||
@ -365,8 +366,26 @@ Foam::distanceSurface::distanceSurface
|
|||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
),
|
),
|
||||||
dictionary()
|
dictionary()
|
||||||
)
|
),
|
||||||
),
|
distance,
|
||||||
|
useSignedDistance,
|
||||||
|
params
|
||||||
|
)
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
Foam::distanceSurface::distanceSurface
|
||||||
|
(
|
||||||
|
const polyMesh& mesh,
|
||||||
|
const bool interpolate,
|
||||||
|
autoPtr<searchableSurface>&& surface,
|
||||||
|
const scalar distance,
|
||||||
|
const bool useSignedDistance,
|
||||||
|
const isoSurfaceParams& params
|
||||||
|
)
|
||||||
|
:
|
||||||
|
mesh_(mesh),
|
||||||
|
geometryPtr_(surface),
|
||||||
distance_(distance),
|
distance_(distance),
|
||||||
withZeroDistance_(equal(distance_, 0)),
|
withZeroDistance_(equal(distance_, 0)),
|
||||||
withSignDistance_
|
withSignDistance_
|
||||||
|
|||||||
@ -326,6 +326,16 @@ public:
|
|||||||
const isoSurfaceParams& params = isoSurfaceParams()
|
const isoSurfaceParams& params = isoSurfaceParams()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
distanceSurface
|
||||||
|
(
|
||||||
|
const polyMesh& mesh,
|
||||||
|
const bool interpolate,
|
||||||
|
autoPtr<searchableSurface>&& surface,
|
||||||
|
const scalar distance,
|
||||||
|
const bool useSignedDistance,
|
||||||
|
const isoSurfaceParams& params = isoSurfaceParams()
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~distanceSurface() = default;
|
virtual ~distanceSurface() = default;
|
||||||
|
|||||||
Reference in New Issue
Block a user