Overture  Version 25
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
GridSmoother Class Reference

#include <GridSmoother.h>

Collaboration diagram for GridSmoother:
Collaboration graph
[legend]

Public Types

enum  BoundaryConditionEnum { periodic =-1, pointsFixed, pointsSlide, boundaryIsSmoothed }
 
enum  StretchingEnum { lineAttraction =1, pointAttraction }
 

Public Member Functions

 GridSmoother (int domainDimension, int rangeDimension)
 
 ~GridSmoother ()
 
int buildDialog (DialogData &dialog)
 
bool updateOptions (aString &answer, DialogData &dialog, MappingInformation &mapInfo)
 
void reset ()
 
void setWeights (real arcLength, real curvature, real area)
 
int setBoundaryConditions (int bc[2][3])
 
int setBoundaryConditions (IntegerArray &bc)
 
int setBoundaryMappings (Mapping *boundaryMapping[2][3])
 
int setMatchingCurves (vector< MatchingCurve > &matchingCurves)
 
int periodicUpdate (realArray &x, const IntegerArray &indexRange)
 
int smooth (Mapping &map, DataPointMapping &dpm, GenericGraphicsInterface &gi, GraphicsParameters &parameters, int projectGhost[2][3])
 
int applyBoundaryConditions (Mapping &map, DataPointMapping &dpm, realArray &x, const IntegerArray &indexRange, const IntegerArray &gids, const Index Iv[3], const Index Jv[3], const Index Kv[3], realArray &normal, bool projectSurfaceGrids=true)
 

Protected Member Functions

void computeNormals (realArray &normal, const Index &I1, const Index &I2, const Index &I3, const realArray &x)
 

Protected Attributes

int domainDimension
 
int rangeDimension
 
int numberOfIterations
 
int totalIterations
 
int numberOfEquidistributionIterations
 
int numberOfWeightSmooths
 
int numberOfLaplacianSmooths
 
int numberOfEllipticSmooths
 
int smoothNormals
 
int numberOfNormalSmooths
 
real blendingFactor
 
int useInitialGridAsControlGrid
 
int numberOfControlFunctionSmooths
 
bool controlFunctionComputed
 
int projectSmoothedGridOntoReferenceSurface
 
int smoothGridGhostPoints
 
int smoothingOffset [2][3]
 
int smoothingRegion [2][3]
 
real maximumProjectionCorrection
 
IntegerArray bc
 
MappingboundaryMapping [2][3]
 
real omega
 
real arclengthWeight
 
real curvatureWeight
 
real areaWeight
 
IntegerArray regionsNotToProject
 
IntegerArray ipar
 
RealArray rpar
 
MappingProjectionParameters mpParams
 
vector< MatchingCurvematchingCurves
 
realArray source
 

Member Enumeration Documentation

Enumerator
periodic 
pointsFixed 
pointsSlide 
boundaryIsSmoothed 
Enumerator
lineAttraction 
pointAttraction 

Constructor & Destructor Documentation

GridSmoother::GridSmoother ( int  domainDimension,
int  rangeDimension 
)
GridSmoother::~GridSmoother ( )

Member Function Documentation

int GridSmoother::applyBoundaryConditions ( Mapping map,
DataPointMapping dpm,
realArray x,
const IntegerArray indexRange,
const IntegerArray gids,
const Index  Iv[3],
const Index  Jv[3],
const Index  Kv[3],
realArray normal,
bool  projectSurfaceGrids = true 
)
int GridSmoother::buildDialog ( DialogData dialog)
void GridSmoother::computeNormals ( realArray normal,
const Index &  I1,
const Index &  I2,
const Index &  I3,
const realArray x 
)
protected

References max(), rangeDimension, REAL_MIN, and SQR.

Referenced by applyBoundaryConditions().

int GridSmoother::periodicUpdate ( realArray x,
const IntegerArray indexRange 
)
void GridSmoother::reset ( )
int GridSmoother::setBoundaryConditions ( int  bc[2][3])
int GridSmoother::setBoundaryConditions ( IntegerArray bc)

References bc.

int GridSmoother::setBoundaryMappings ( Mapping boundaryMapping[2][3])
int GridSmoother::setMatchingCurves ( vector< MatchingCurve > &  matchingCurves)

References matchingCurves.

Referenced by HyperbolicMapping::update().

void GridSmoother::setWeights ( real  arcLength,
real  curvature,
real  area 
)
int GridSmoother::smooth ( Mapping map,
DataPointMapping dpm,
GenericGraphicsInterface gi,
GraphicsParameters parameters,
int  projectGhost[2][3] 
)
bool GridSmoother::updateOptions ( aString answer,
DialogData dialog,
MappingInformation mapInfo 
)

Member Data Documentation

real GridSmoother::arclengthWeight
protected
real GridSmoother::areaWeight
protected
IntegerArray GridSmoother::bc
protected
real GridSmoother::blendingFactor
protected
Mapping* GridSmoother::boundaryMapping[2][3]
protected
bool GridSmoother::controlFunctionComputed
protected

Referenced by GridSmoother(), reset(), and smooth().

real GridSmoother::curvatureWeight
protected
int GridSmoother::domainDimension
protected
IntegerArray GridSmoother::ipar
protected

Referenced by buildDialog(), smooth(), and updateOptions().

vector<MatchingCurve> GridSmoother::matchingCurves
protected
real GridSmoother::maximumProjectionCorrection
protected
MappingProjectionParameters GridSmoother::mpParams
protected
int GridSmoother::numberOfControlFunctionSmooths
protected
int GridSmoother::numberOfEllipticSmooths
protected
int GridSmoother::numberOfEquidistributionIterations
protected
int GridSmoother::numberOfIterations
protected
int GridSmoother::numberOfLaplacianSmooths
protected
int GridSmoother::numberOfNormalSmooths
protected
int GridSmoother::numberOfWeightSmooths
protected

Referenced by GridSmoother(), smooth(), and updateOptions().

real GridSmoother::omega
protected
int GridSmoother::projectSmoothedGridOntoReferenceSurface
protected
int GridSmoother::rangeDimension
protected
IntegerArray GridSmoother::regionsNotToProject
protected
RealArray GridSmoother::rpar
protected

Referenced by buildDialog(), smooth(), and updateOptions().

int GridSmoother::smoothGridGhostPoints
protected
int GridSmoother::smoothingOffset[2][3]
protected
int GridSmoother::smoothingRegion[2][3]
protected

Referenced by GridSmoother().

int GridSmoother::smoothNormals
protected
realArray GridSmoother::source
protected

Referenced by smooth().

int GridSmoother::totalIterations
protected

Referenced by GridSmoother(), and smooth().

int GridSmoother::useInitialGridAsControlGrid
protected

The documentation for this class was generated from the following files: