|
Ember
|
System representing the convection equation for a single species. More...
#include <convectionSystem.h>
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 | 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< vecInterpolator > | vInterp |
| Axial (normal) velocity [m/s] as a function of time. | |
| std::shared_ptr< BilinearInterpolator > | vzInterp |
| Interpolator for the z velocity in the quasi-2d problem. | |
| std::shared_ptr< BilinearInterpolator > | vrInterp |
| 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 | |
| dvec & | x |
| The coordinates of the grid points [m]. | |
| dvec & | r |
| "radius" at x[j]. | |
| dvec & | rphalf |
| "radius" at x[j+1/2]. | |
| dvec & | hh |
| Grid spacing between x[j] and x[j+1]. | |
| dvec & | dlj |
| Average of left and right grid spacing. | |
| dvec & | cfm |
| Coefficient for y[j-1] in first centered difference. | |
| dvec & | cf |
| Coefficient for y[j] in first centered difference. | |
| dvec & | cfp |
| 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) | |
System representing the convection equation for a single species.
The species is convected by a prescribed velocity field \(v(x)\).
|
inline |
| void ConvectionSystemY::resize | ( | const size_t | nPoints | ) |
Set the size of the domain to nPoints
| void ConvectionSystemY::resetSplitConstants | ( | ) |
Set the term representing contributions from diffusion or production terms to zero.
|
private |
| double ConvectionSystemY::Yleft |
Mass fraction to the left of the domain.
Used only in conjuction with BoundaryCondition::ControlVolume.
| size_t ConvectionSystemY::k |
Species index.
Used for debugging purposes only.
| dvec ConvectionSystemY::splitConst |
constant term introduced by splitting
| 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.
| std::shared_ptr<BilinearInterpolator> ConvectionSystemY::vzInterp |
Interpolator for the z velocity in the quasi-2d problem.
| std::shared_ptr<BilinearInterpolator> ConvectionSystemY::vrInterp |
Interpolator for the r velocity in the quasi-2d problem.
| bool ConvectionSystemY::quasi2d |
true when solving the quasi-2d problem; false otherwise.
|
private |
The velocity normal to the flame [m/s].