waves
Basic FE playground
flow::Medium Class Reference

Handle fluid medium. More...

#include <wMedium.h>

Inheritance diagram for flow::Medium:
Collaboration diagram for flow::Medium:

Public Member Functions

 Medium (std::shared_ptr< tbox::MshData > _msh, int no, double mInf, int dim, double alpha, double beta)
 
 Medium (std::shared_ptr< tbox::MshData > _msh, std::string const &name, double mInf, int dim, double alpha, double beta)
 
virtual ~Medium ()
 
void initFun (double mInf, int dim, double alpha, double beta)
 
void createMap ()
 Create data structure. More...
 
virtual void write (std::ostream &out) const override
 

Public Attributes

std::map< tbox::Node *, std::vector< tbox::Element * > > neMap
 map each elements connected to a node More...
 
F0Elrho
 density More...
 
F0Elmach
 Mach number. More...
 
F0ElcP
 pressure coefficient More...
 
F0PsPhiInfphiInf
 freestream potential More...
 
std::vector< std::pair< tbox::Element *, std::vector< tbox::Element * > > > adjMap
 map of adjacent elements More...
 

Private Attributes

size_t nCnt
 number of nodes More...
 

Detailed Description

Handle fluid medium.

Authors
Adrien Crovato

Constructor & Destructor Documentation

◆ Medium() [1/2]

flow::Medium::Medium ( std::shared_ptr< tbox::MshData >  _msh,
int  no,
double  mInf,
int  dim,
double  alpha,
double  beta 
)

◆ Medium() [2/2]

flow::Medium::Medium ( std::shared_ptr< tbox::MshData >  _msh,
std::string const &  name,
double  mInf,
int  dim,
double  alpha,
double  beta 
)

◆ ~Medium()

Medium::~Medium ( )
virtual

Member Function Documentation

◆ createMap()

void Medium::createMap ( )

Create data structure.

◆ initFun()

void Medium::initFun ( double  mInf,
int  dim,
double  alpha,
double  beta 
)

Initialize functions

◆ write()

void Medium::write ( std::ostream &  out) const
overridevirtual

Member Data Documentation

◆ adjMap

std::vector<std::pair<tbox::Element *, std::vector<tbox::Element *> > > flow::Medium::adjMap

map of adjacent elements

◆ cP

F0El* flow::Medium::cP

pressure coefficient

◆ mach

F0El* flow::Medium::mach

Mach number.

◆ nCnt

size_t flow::Medium::nCnt
private

number of nodes

◆ neMap

std::map<tbox::Node *, std::vector<tbox::Element *> > flow::Medium::neMap

map each elements connected to a node

◆ phiInf

F0PsPhiInf* flow::Medium::phiInf

freestream potential

◆ rho

F0El* flow::Medium::rho

density


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