ECOGEN 6.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
SourceNumMRF Class Reference

Moving Reference Frame method for rotating flows. More...

#include <SourceNumMRF.h>

Inherits SourceNum.

Collaboration diagram for SourceNumMRF:
[legend]

Public Member Functions

 SourceNumMRF (tinyxml2::XMLElement *element, int order, int physicalEntity, std::string fileName="Unknown file")
 SourceNumMRF constructor from a XML format reading.
 ~SourceNumMRF () override
void prepSourceTerms (Cell *cell, const int &i=0) override
 Source terms preparation for integration.
void sourceEvolution (const double &time) override
 Allows to modifiy the source term along time.
Coord computeAbsVelocity (const Coord &relVelocity, const Coord &position) override
 Compute the absolute velocity in the fixed coordinate system.
Coord getOmega () override
bool getRiemannCoupling () override
Public Member Functions inherited from SourceNum
 SourceNum (int order, int physicalEntity=0)
 SourceNum constructor depending on integration order and physical entity to apply source.
 ~SourceNum () override
void integrateSourceTerms (Cell *cell, const double &dt, Prim=vecPhases) override
 Source terms integration on conservative quantities.
void integrationEuler (Cell *cell, const double &dt)
 Euler explicite integration (order 1).
void integrationRK2 (Cell *cell, const double &dt)
 Runge-Kutta integration (order 2).
void integrationRK4 (Cell *cell, const double &dt)
 Runge-Kutta integration (order 4).
Public Member Functions inherited from Source
 Source (int physicalEntity=0)
 Source constructor depending on integration order and physical entity to apply source.
virtual ~Source ()
virtual int getPhysicalEntity ()

Private Attributes

Coord m_omega
double m_tf
 Angular velocity.
double m_incr
 Optional final time to increase linearly omega.
bool m_riemannCoupling
 To increment angular velocity from zero to omega.

Additional Inherited Members

Protected Attributes inherited from SourceNum
int m_order
Protected Attributes inherited from Source
int m_physicalEntity

Detailed Description

Moving Reference Frame method for rotating flows.

Constructor & Destructor Documentation

◆ SourceNumMRF()

SourceNumMRF::SourceNumMRF ( tinyxml2::XMLElement * element,
int order,
int physicalEntity,
std::string fileName = "Unknown file" )

SourceNumMRF constructor from a XML format reading.

Reading data from XML file under the following format: ex: <dataMRF omega="1.e3">

Parameters
elementXML element to read for source term
fileNamestring name of readed XML file
Here is the call graph for this function:

◆ ~SourceNumMRF()

SourceNumMRF::~SourceNumMRF ( )
override

Member Function Documentation

◆ computeAbsVelocity()

Coord SourceNumMRF::computeAbsVelocity ( const Coord & ,
const Coord &  )
overridevirtual

Compute the absolute velocity in the fixed coordinate system.

Parameters
relVelocityvelocity in the moving coordinate system
positionposition vector in the fixed coordinate system

Reimplemented from SourceNum.

Here is the call graph for this function:

◆ getOmega()

Coord SourceNumMRF::getOmega ( )
inlineoverridevirtual

Reimplemented from Source.

◆ getRiemannCoupling()

bool SourceNumMRF::getRiemannCoupling ( )
inlineoverridevirtual

Reimplemented from Source.

◆ prepSourceTerms()

void SourceNumMRF::prepSourceTerms ( Cell * ,
const int & = 0 )
overridevirtual

Source terms preparation for integration.

Parameters
cellcell for source term integration

Reimplemented from SourceNum.

◆ sourceEvolution()

void SourceNumMRF::sourceEvolution ( const double & )
overridevirtual

Allows to modifiy the source term along time.

Parameters
timephysical time of the computation

Reimplemented from SourceNum.

Member Data Documentation

◆ m_incr

double SourceNumMRF::m_incr
private

Optional final time to increase linearly omega.

◆ m_omega

Coord SourceNumMRF::m_omega
private

◆ m_riemannCoupling

bool SourceNumMRF::m_riemannCoupling
private

To increment angular velocity from zero to omega.

◆ m_tf

double SourceNumMRF::m_tf
private

Angular velocity.


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