flow
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
peclet::flow::FlowReference Class Reference

#include <flow_reference.hpp>

Public Types

using F = Kokkos::View< double *, SMem >
 

Public Member Functions

 FlowReference (int n, double nu, double dt)
 
Fu ()
 
Fv ()
 
Fw ()
 
int N () const
 
I3 ext () const
 
void setBodyForce (double fx, double fy, double fz)
 
void setAdvection (bool on)
 
void setIterations (int nDiff, int nPois)
 
void setPressureMultigrid (bool useMg, int nVcycles)
 
void step ()
 
double l2 (F f)
 
double maxDivU ()
 
double idiag () const
 
void copyInner (F dst, I3 de, int dg, SConst src, I3 se, int sg)
 
void diffuseComp (F x, F b, double Ac)
 
void buildRhs ()
 
void removeMean (F f)
 
SumMax localSumMax (SConst f)
 
SumMax localSumMaxSq (SConst f)
 
SumMax reduceInner (SConst f, bool sq)
 
void periodicFill (F f)
 
void fillAxis (F f, int axis)
 

Static Public Attributes

static constexpr int G = 2
 

Detailed Description

Definition at line 23 of file flow_reference.hpp.

Member Typedef Documentation

◆ F

using peclet::flow::FlowReference::F = Kokkos::View<double*, SMem>

Definition at line 25 of file flow_reference.hpp.

Constructor & Destructor Documentation

◆ FlowReference()

peclet::flow::FlowReference::FlowReference ( int  n,
double  nu,
double  dt 
)
inline

Definition at line 28 of file flow_reference.hpp.

References G, peclet::flow::I3::x, peclet::flow::I3::y, and peclet::flow::I3::z.

Member Function Documentation

◆ u()

F & peclet::flow::FlowReference::u ( )
inline

Definition at line 49 of file flow_reference.hpp.

Referenced by buildRhs(), initTG(), and main().

◆ v()

F & peclet::flow::FlowReference::v ( )
inline

Definition at line 50 of file flow_reference.hpp.

Referenced by buildRhs(), and initTG().

◆ w()

F & peclet::flow::FlowReference::w ( )
inline

Definition at line 51 of file flow_reference.hpp.

Referenced by buildRhs(), and initTG().

◆ N()

int peclet::flow::FlowReference::N ( ) const
inline

Definition at line 52 of file flow_reference.hpp.

Referenced by copyInner(), fillAxis(), initTG(), and reduceInner().

◆ ext()

I3 peclet::flow::FlowReference::ext ( ) const
inline

Definition at line 53 of file flow_reference.hpp.

Referenced by initTG(), and main().

◆ setBodyForce()

void peclet::flow::FlowReference::setBodyForce ( double  fx,
double  fy,
double  fz 
)
inline

Definition at line 54 of file flow_reference.hpp.

◆ setAdvection()

void peclet::flow::FlowReference::setAdvection ( bool  on)
inline

Definition at line 59 of file flow_reference.hpp.

Referenced by main().

◆ setIterations()

void peclet::flow::FlowReference::setIterations ( int  nDiff,
int  nPois 
)
inline

Definition at line 60 of file flow_reference.hpp.

Referenced by main().

◆ setPressureMultigrid()

void peclet::flow::FlowReference::setPressureMultigrid ( bool  useMg,
int  nVcycles 
)
inline

Definition at line 65 of file flow_reference.hpp.

Referenced by main().

◆ step()

◆ l2()

double peclet::flow::FlowReference::l2 ( F  f)
inline

Definition at line 112 of file flow_reference.hpp.

References localSumMaxSq(), and peclet::flow::SumMax::sum.

Referenced by main().

◆ maxDivU()

double peclet::flow::FlowReference::maxDivU ( )
inline

◆ idiag()

double peclet::flow::FlowReference::idiag ( ) const
inline

Definition at line 127 of file flow_reference.hpp.

Referenced by buildRhs(), and step().

◆ copyInner()

void peclet::flow::FlowReference::copyInner ( F  dst,
I3  de,
int  dg,
SConst  src,
I3  se,
int  sg 
)
inline

Definition at line 130 of file flow_reference.hpp.

References N(), peclet::flow::I3::x, and peclet::flow::I3::y.

Referenced by step().

◆ diffuseComp()

void peclet::flow::FlowReference::diffuseComp ( F  x,
F  b,
double  Ac 
)
inline

Definition at line 145 of file flow_reference.hpp.

References peclet::flow::diffSmoothColor(), G, and periodicFill().

Referenced by step().

◆ buildRhs()

void peclet::flow::FlowReference::buildRhs ( )
inline

Definition at line 152 of file flow_reference.hpp.

References sadv::advect(), G, idiag(), u(), v(), and w().

Referenced by step().

◆ removeMean()

void peclet::flow::FlowReference::removeMean ( F  f)
inline

Definition at line 177 of file flow_reference.hpp.

References localSumMax(), and peclet::flow::SumMax::sum.

Referenced by step().

◆ localSumMax()

SumMax peclet::flow::FlowReference::localSumMax ( SConst  f)
inline

Definition at line 188 of file flow_reference.hpp.

References reduceInner().

Referenced by removeMean().

◆ localSumMaxSq()

SumMax peclet::flow::FlowReference::localSumMaxSq ( SConst  f)
inline

Definition at line 189 of file flow_reference.hpp.

References reduceInner().

Referenced by l2().

◆ reduceInner()

SumMax peclet::flow::FlowReference::reduceInner ( SConst  f,
bool  sq 
)
inline

Definition at line 190 of file flow_reference.hpp.

References G, peclet::flow::SumMax::maxabs, N(), and peclet::flow::SumMax::sum.

Referenced by localSumMax(), localSumMaxSq(), and maxDivU().

◆ periodicFill()

void peclet::flow::FlowReference::periodicFill ( F  f)
inline

Definition at line 211 of file flow_reference.hpp.

References fillAxis().

Referenced by diffuseComp(), maxDivU(), and step().

◆ fillAxis()

void peclet::flow::FlowReference::fillAxis ( F  f,
int  axis 
)
inline

Definition at line 216 of file flow_reference.hpp.

References G, and N().

Referenced by periodicFill().

Member Data Documentation

◆ G

constexpr int peclet::flow::FlowReference::G = 2
staticconstexpr

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