ABLATE Source Documentation  0.12.36
ablate::domain::modifiers::OnePointClusteringMapper Class Reference

#include <onePointClusteringMapper.hpp>

+ Inheritance diagram for ablate::domain::modifiers::OnePointClusteringMapper:

Public Member Functions

 OnePointClusteringMapper (int direction, double start, double end, double beta, double location, std::shared_ptr< ablate::domain::Region > mappingRegion={})
 
std::string ToString () const override
 
- Public Member Functions inherited from ablate::domain::modifiers::MeshMapper
 MeshMapper (std::shared_ptr< ablate::mathFunctions::MathFunction > mappingFunction, std::shared_ptr< ablate::domain::Region > mappingRegion={})
 
void Modify (DM &) override
 
void Modify (const std::vector< double > &in, std::vector< double > &out) const
 

Additional Inherited Members

- Static Protected Member Functions inherited from ablate::domain::modifiers::Modifier
static void ReplaceDm (DM &originalDm, DM &replaceDm)
 

Detailed Description

Performs clustering mapping using an algebraic relationship around one point using Equation 9-50 from

Hoffmann, Klaus A., and Steve T. Chiang. "Computational fluid dynamics volume I. Forth Edition" Engineering education system (2000).

$$x'=D{ 1+\frac{sinh[\beta(x-A))]}{sinh(\beta A)}}$$

Where:

$$ A=\frac{1}{2 \beta}ln \left [ \frac{1+(e^\beta - 1)(D/H)}{1+(e^{-\beta} - 1)(D/H)} \right ] $$ $$ D = cluster location$$ $$ \beta = cluster factor $$

Constructor & Destructor Documentation

◆ OnePointClusteringMapper()

ablate::domain::modifiers::OnePointClusteringMapper::OnePointClusteringMapper ( int  direction,
double  start,
double  end,
double  beta,
double  location,
std::shared_ptr< ablate::domain::Region mappingRegion = {} 
)
explicit

Performs one point clustering

Parameters
directionThe direction (0, 1, 2) to perform the mapping
startThe start of the domain in direction
endThe end of the domain in direction
betaThe clustering factor
locationThe location to perform the clustering in direction
mappingRegionoptional region to apply this mapper. Default is everywhere

Member Function Documentation

◆ ToString()

std::string ablate::domain::modifiers::OnePointClusteringMapper::ToString ( ) const
overridevirtual

Provide name of modifier for debug/output

Returns

Reimplemented from ablate::domain::modifiers::MeshMapper.


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