Ember
|
System representing the coupled convection equations for U, T, and Wmx. More...
#include <convectionSystem.h>
Public Member Functions | |
ConvectionSystemUTW () | |
int | f (const realtype t, const sdVector &y, sdVector &ydot) |
The ODE function: ydot = f(t,y) | |
void | unroll_y (const sdVector &y) |
Use the contents of y to fill in the current state variables. | |
void | roll_y (sdVector &y) const |
Fill in y with the current values of the state variables. | |
void | roll_ydot (sdVector &ydot) const |
Fill in ydot with the current time derivatives. | |
void | resize (const size_t nPoints) |
Set the size of the domain to nPoints | |
void | resetSplitConstants () |
Set the term in each equation representing contributions from diffusion or production terms to zero. | |
void | updateContinuityBoundaryCondition (const dvec &qdot, ContinuityBoundaryCondition::BC newBC) |
Determine the index of the grid point at which to impose the boundary condition for the continuity equation, jContBC, based on the boundary condition type and the current mass flux V. | |
void | setStrainFunction (ScalarFunction *f) |
Set the function used to compute the strain rate as a function of time. | |
void | setRhou (double _rhou) |
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 | |
dvec | U |
Tangential velocity gradient [1/s]. | |
dvec | dUdt |
Time derivative of U , [1/s^2]. | |
dvec | T |
Temperature [K]. | |
dvec | dTdt |
Time derivative of T [K/s]. | |
dvec | Wmx |
Mixture molecular weight [kg/kmol]. | |
dvec | dWdt |
Time derivative of Wmx . | |
double | Tleft |
Temperature left boundary value. | |
double | Wleft |
mixture molecular weight left boundary value | |
double | rVzero |
mass flux boundary value at j=0 | |
dvec | drhodt |
Time derivative of the density [kg/m^3*s]. | |
dvec | splitConstT |
Constant in T equation introduced by splitting method. | |
dvec | splitConstW |
Constant in Wmx equation introduced by splitting method. | |
dvec | splitConstU |
Constant in U equation introduced by splitting method. | |
CanteraGas * | gas |
Cantera data. | |
dvec | V |
mass flux [kg/m^2*s] | |
dvec | rV |
(radial) mass flux (r*V) [kg/m^2*s or kg/m*rad*s] | |
dvec | rho |
mixture density [kg/m^3] | |
dvec | dUdx |
Gradient of U normal to the flame. | |
dvec | dTdx |
Gradient of T normal to the flame. | |
dvec | dWdx |
Gradient of Wmx normal to the flame. | |
ContinuityBoundaryCondition::BC | continuityBC |
The method used for determining the continuity boundary condition. | |
size_t | jContBC |
The point at which the continuity equation BC is applied. | |
double | xVzero |
Location of the stagnation point (if using fixedZero BC) | |
ScalarFunction * | strainFunction |
An object that provides the strain rate and its time derivative. | |
double | rhou |
Set the density of the unburned mixture. | |
Public Attributes inherited from GridBased | |
OneDimGrid | grid |
the actual grid | |
Private Member Functions | |
void | V2rV () |
compute rV from V | |
void | rV2V () |
compute V from rV | |
Private Attributes | |
size_t | nVars |
Number of state variables at each grid point (== 3 ) | |
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 coupled convection equations for U, T, and Wmx.
Solves equations for the tangential velocity gradient U
, the temperature T
and the mixture molecular weight Wmx
which are coupled with the continuity equation.
ConvectionSystemUTW::ConvectionSystemUTW | ( | ) |
void ConvectionSystemUTW::unroll_y | ( | const sdVector & | y | ) |
Use the contents of y to fill in the current state variables.
void ConvectionSystemUTW::roll_y | ( | sdVector & | y | ) | const |
Fill in y with the current values of the state variables.
void ConvectionSystemUTW::roll_ydot | ( | sdVector & | ydot | ) | const |
Fill in ydot with the current time derivatives.
void ConvectionSystemUTW::resize | ( | const size_t | nPoints | ) |
Set the size of the domain to nPoints
void ConvectionSystemUTW::resetSplitConstants | ( | ) |
Set the term in each equation representing contributions from diffusion or production terms to zero.
void ConvectionSystemUTW::updateContinuityBoundaryCondition | ( | const dvec & | qdot, |
ContinuityBoundaryCondition::BC | newBC | ||
) |
|
inline |
Set the function used to compute the strain rate as a function of time.
|
inline |
dvec ConvectionSystemUTW::U |
Tangential velocity gradient [1/s].
State variable.
dvec ConvectionSystemUTW::dUdt |
Time derivative of U
, [1/s^2].
dvec ConvectionSystemUTW::T |
Temperature [K].
State variable.
dvec ConvectionSystemUTW::dTdt |
Time derivative of T
[K/s].
dvec ConvectionSystemUTW::Wmx |
Mixture molecular weight [kg/kmol].
State variable.
dvec ConvectionSystemUTW::dWdt |
Time derivative of Wmx
.
double ConvectionSystemUTW::Tleft |
Temperature left boundary value.
double ConvectionSystemUTW::Wleft |
mixture molecular weight left boundary value
double ConvectionSystemUTW::rVzero |
mass flux boundary value at j=0
dvec ConvectionSystemUTW::drhodt |
Time derivative of the density [kg/m^3*s].
dvec ConvectionSystemUTW::splitConstT |
Constant in T
equation introduced by splitting method.
dvec ConvectionSystemUTW::splitConstW |
Constant in Wmx
equation introduced by splitting method.
dvec ConvectionSystemUTW::splitConstU |
Constant in U
equation introduced by splitting method.
CanteraGas* ConvectionSystemUTW::gas |
Cantera data.
dvec ConvectionSystemUTW::V |
mass flux [kg/m^2*s]
dvec ConvectionSystemUTW::rV |
(radial) mass flux (r*V) [kg/m^2*s or kg/m*rad*s]
dvec ConvectionSystemUTW::rho |
mixture density [kg/m^3]
dvec ConvectionSystemUTW::dUdx |
Gradient of U
normal to the flame.
dvec ConvectionSystemUTW::dTdx |
Gradient of T
normal to the flame.
dvec ConvectionSystemUTW::dWdx |
Gradient of Wmx
normal to the flame.
ContinuityBoundaryCondition::BC ConvectionSystemUTW::continuityBC |
The method used for determining the continuity boundary condition.
size_t ConvectionSystemUTW::jContBC |
The point at which the continuity equation BC is applied.
double ConvectionSystemUTW::xVzero |
Location of the stagnation point (if using fixedZero BC)
ScalarFunction* ConvectionSystemUTW::strainFunction |
An object that provides the strain rate and its time derivative.
double ConvectionSystemUTW::rhou |
Set the density of the unburned mixture.
This value appears in the source term of the momentum equation. density of the unburned gas
|
private |
Number of state variables at each grid point (== 3
)