mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: sampledSurface: construct from components
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -152,12 +152,13 @@ Foam::autoPtr<Foam::sampledSurface> Foam::sampledSurface::New
|
||||
Foam::sampledSurface::sampledSurface
|
||||
(
|
||||
const word& name,
|
||||
const polyMesh& mesh
|
||||
const polyMesh& mesh,
|
||||
const bool interpolate
|
||||
)
|
||||
:
|
||||
name_(name),
|
||||
mesh_(mesh),
|
||||
interpolate_(false),
|
||||
interpolate_(interpolate),
|
||||
SfPtr_(NULL),
|
||||
magSfPtr_(NULL),
|
||||
CfPtr_(NULL),
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -81,7 +81,7 @@ class sampledSurface
|
||||
const polyMesh& mesh_;
|
||||
|
||||
//- Do we intend to interpolate the information?
|
||||
bool interpolate_;
|
||||
const bool interpolate_;
|
||||
|
||||
|
||||
// Demand-driven data
|
||||
@ -197,7 +197,8 @@ public:
|
||||
sampledSurface
|
||||
(
|
||||
const word& name,
|
||||
const polyMesh&
|
||||
const polyMesh&,
|
||||
const bool interpolate = false
|
||||
);
|
||||
|
||||
//- Construct from dictionary
|
||||
|
||||
Reference in New Issue
Block a user