#include <onePointClusteringMapper.hpp>
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 |
![]() | |
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 void | ReplaceDm (DM &originalDm, DM &replaceDm) |
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 $$
|
explicit |
Performs one point clustering
direction | The direction (0, 1, 2) to perform the mapping |
start | The start of the domain in direction |
end | The end of the domain in direction |
beta | The clustering factor |
location | The location to perform the clustering in direction |
mappingRegion | optional region to apply this mapper. Default is everywhere |
|
overridevirtual |
Provide name of modifier for debug/output
Reimplemented from ablate::domain::modifiers::MeshMapper.