Ember
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
ConvectionSystemY Class Reference

System representing the convection equation for a single species. More...

#include <convectionSystem.h>

Inheritance diagram for ConvectionSystemY:
[legend]

Public Member Functions

 ConvectionSystemY ()
 
int f (const realtype t, const sdVector &y, sdVector &ydot)
 The ODE function: ydot = f(t,y)
 
void resize (const size_t nPoints)
 Set the size of the domain to nPoints
 
void resetSplitConstants ()
 Set the term representing contributions from diffusion or production terms to zero.
 
- Public Member Functions inherited from sdODE
virtual int f (const realtype t, const sdVector &y, sdVector &ydot)=0
 Evaluate the ODE function.
 
virtual int g (realtype t, sdVector &y, realtype *gOut)
 Optional function for CVODE to find roots of.
 
virtual int denseJacobian (const realtype t, const sdVector &y, const sdVector &ydot, sdMatrix &J)
 Optional function used to compute the dense Jacobian.
 
virtual int bandedJacobian (const realtype t, const sdVector &y, const sdVector &ydot, sdBandMatrix &J)
 Optional function used to compute a banded Jacobian.
 
virtual ~sdODE ()
 
- Public Member Functions inherited from GridBased
 GridBased ()
 
virtual ~GridBased ()
 
virtual void setGrid (const OneDimGrid &grid)
 Copy the specified grid to this object.
 

Public Attributes

double Yleft
 Mass fraction to the left of the domain.
 
size_t k
 Species index.
 
dvec splitConst
 constant term introduced by splitting
 
std::shared_ptr< vecInterpolatorvInterp
 Axial (normal) velocity [m/s] as a function of time.
 
std::shared_ptr< BilinearInterpolatorvzInterp
 Interpolator for the z velocity in the quasi-2d problem.
 
std::shared_ptr< BilinearInterpolatorvrInterp
 Interpolator for the r velocity in the quasi-2d problem.
 
bool quasi2d
 true when solving the quasi-2d problem; false otherwise.
 
- Public Attributes inherited from GridBased
OneDimGrid grid
 the actual grid
 

Private Member Functions

void update_v (const double t)
 Compute the value of v at time t by linearly interpolating between the adjacent velocity fields stored in vInterp.
 

Private Attributes

dvec v
 The velocity normal to the flame [m/s].
 

Additional Inherited Members

- Protected Attributes inherited from GridBased
dvecx
 The coordinates of the grid points [m].
 
dvecr
 "radius" at x[j].
 
dvecrphalf
 "radius" at x[j+1/2].
 
dvechh
 Grid spacing between x[j] and x[j+1].
 
dvecdlj
 Average of left and right grid spacing.
 
dveccfm
 Coefficient for y[j-1] in first centered difference.
 
dveccf
 Coefficient for y[j] in first centered difference.
 
dveccfp
 Coefficient for y[j+1] in first centered difference.
 
int & alpha
 curved grid exponent.
 
int & beta
 curved grid exponent.
 
size_t & nPoints
 number of grid point
 
size_t & jj
 index of last grid point (== nPoints-1)
 

Detailed Description

System representing the convection equation for a single species.

The species is convected by a prescribed velocity field \(v(x)\).

Constructor & Destructor Documentation

◆ ConvectionSystemY()

ConvectionSystemY::ConvectionSystemY ( )
inline

Member Function Documentation

◆ f()

int ConvectionSystemY::f ( const realtype  t,
const sdVector y,
sdVector ydot 
)
virtual

The ODE function: ydot = f(t,y)

Implements sdODE.

◆ resize()

void ConvectionSystemY::resize ( const size_t  nPoints)

Set the size of the domain to nPoints

◆ resetSplitConstants()

void ConvectionSystemY::resetSplitConstants ( )

Set the term representing contributions from diffusion or production terms to zero.

◆ update_v()

void ConvectionSystemY::update_v ( const double  t)
private

Compute the value of v at time t by linearly interpolating between the adjacent velocity fields stored in vInterp.

Member Data Documentation

◆ Yleft

double ConvectionSystemY::Yleft

Mass fraction to the left of the domain.

Used only in conjuction with BoundaryCondition::ControlVolume.

◆ k

size_t ConvectionSystemY::k

Species index.

Used for debugging purposes only.

◆ splitConst

dvec ConvectionSystemY::splitConst

constant term introduced by splitting

◆ vInterp

std::shared_ptr<vecInterpolator> ConvectionSystemY::vInterp

Axial (normal) velocity [m/s] as a function of time.

This velocity data is computed by ConvectionSystemUTW. The keys are the times [s] for which the corresponding velocity field was computed.

◆ vzInterp

std::shared_ptr<BilinearInterpolator> ConvectionSystemY::vzInterp

Interpolator for the z velocity in the quasi-2d problem.

◆ vrInterp

std::shared_ptr<BilinearInterpolator> ConvectionSystemY::vrInterp

Interpolator for the r velocity in the quasi-2d problem.

◆ quasi2d

bool ConvectionSystemY::quasi2d

true when solving the quasi-2d problem; false otherwise.

◆ v

dvec ConvectionSystemY::v
private

The velocity normal to the flame [m/s].


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