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

SubClass of SourceNumAcousticWave for a plane sinusoidal function. More...

#include <SourceNumAcousticWavePlaneSinusoidalPulse.h>

Inherits SourceNumAcousticWave.

Collaboration diagram for SourceNumAcousticWavePlaneSinusoidalPulse:
[legend]

Public Member Functions

 SourceNumAcousticWavePlaneSinusoidalPulse (tinyxml2::XMLElement *element, int order, int physicalEntity=0, std::string fileName="Unknown file")
 SourceNumAcousticWavePlaneSinusoidalPulse constructor from a XML format reading.
 ~SourceNumAcousticWavePlaneSinusoidalPulse () override
void prepSourceTerms (Cell *cell, const int &i=0) override
 Source terms preparation for integration.
double computeDeltaFunction (const Cell *cell)
 Compute the function delta.
double computeGFunction ()
 Compute the function g.
Public Member Functions inherited from SourceNumAcousticWave
 SourceNumAcousticWave (int order, int physicalEntity=0)
 SourceNumAcousticWave constructor.
 ~SourceNumAcousticWave () 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).
void sourceEvolution (const double &) override
 Allows to modifiy the source term along time.
Coord computeAbsVelocity (const Coord &, const Coord &) override
 Compute the absolute velocity in the fixed coordinate system.
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 Coord getOmega ()
virtual bool getRiemannCoupling ()
virtual int getPhysicalEntity ()

Private Attributes

double m_numberOfPulse
double m_frequency
 Number of pulse (sinusoidal wave).

Additional Inherited Members

Protected Attributes inherited from SourceNumAcousticWave
double m_sourceMomentum
double m_pressureAmplitude
 Source term on the momentum equation.
double m_delayedTime
 Pressure amplitude of the wave (Pa).
Coord m_sourceLocation
 Delayed time at which the first pulse starts (s).
Coord m_pulseDirection
 Location of the source (m).
Protected Attributes inherited from SourceNum
int m_order
Protected Attributes inherited from Source
int m_physicalEntity

Detailed Description

SubClass of SourceNumAcousticWave for a plane sinusoidal function.

Constructor & Destructor Documentation

◆ SourceNumAcousticWavePlaneSinusoidalPulse()

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

SourceNumAcousticWavePlaneSinusoidalPulse constructor from a XML format reading.

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

Parameters
elementXML element to read for source term
orderintegration order (could EULER, RK2 or RK4 scheme)
physicalEntitythe entity to which the source term is applied (default whole domain)
fileNamestring name of readed XML file
Here is the call graph for this function:

◆ ~SourceNumAcousticWavePlaneSinusoidalPulse()

SourceNumAcousticWavePlaneSinusoidalPulse::~SourceNumAcousticWavePlaneSinusoidalPulse ( )
override

Member Function Documentation

◆ computeDeltaFunction()

double SourceNumAcousticWavePlaneSinusoidalPulse::computeDeltaFunction ( const Cell * cell)

Compute the function delta.

Parameters
cellcurrent cell
Here is the call graph for this function:
Here is the caller graph for this function:

◆ computeGFunction()

double SourceNumAcousticWavePlaneSinusoidalPulse::computeGFunction ( )

Compute the function g.

Here is the caller graph for this function:

◆ prepSourceTerms()

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

Source terms preparation for integration.

Parameters
cellcell for source term integration

Reimplemented from SourceNum.

Here is the call graph for this function:

Member Data Documentation

◆ m_frequency

double SourceNumAcousticWavePlaneSinusoidalPulse::m_frequency
private

Number of pulse (sinusoidal wave).

◆ m_numberOfPulse

double SourceNumAcousticWavePlaneSinusoidalPulse::m_numberOfPulse
private

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