ENH: cellSizeControlSurfaces: access to defaultCellSzie

This commit is contained in:
mattijs
2012-02-27 14:45:17 +00:00
parent 9add625ce7
commit 23ee80ebad
2 changed files with 12 additions and 2 deletions

View File

@ -2,7 +2,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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -122,6 +122,10 @@ public:
//- Return the surface indices //- Return the surface indices
inline const labelList& surfaces() const; inline const labelList& surfaces() const;
//- In regions where no cell size function is specified
// use defaultCellSize
inline scalar defaultCellSize() const;
// Query // Query
//- Return the cell size at the given location //- Return the cell size at the given location

View File

@ -2,7 +2,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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -37,4 +37,10 @@ const Foam::labelList& Foam::cellSizeControlSurfaces::surfaces() const
} }
Foam::scalar Foam::cellSizeControlSurfaces::defaultCellSize() const
{
return defaultCellSize_;
}
// ************************************************************************* // // ************************************************************************* //