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

System representing the coupled convection equations for U, T, and Wmx. More...

#include <convectionSystem.h>

Inheritance diagram for ConvectionSystemUTW:
[legend]

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.
 
CanteraGasgas
 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)
 
ScalarFunctionstrainFunction
 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
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 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.

Constructor & Destructor Documentation

◆ ConvectionSystemUTW()

ConvectionSystemUTW::ConvectionSystemUTW ( )

Member Function Documentation

◆ f()

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

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

Implements sdODE.

◆ unroll_y()

void ConvectionSystemUTW::unroll_y ( const sdVector y)

Use the contents of y to fill in the current state variables.

◆ roll_y()

void ConvectionSystemUTW::roll_y ( sdVector y) const

Fill in y with the current values of the state variables.

◆ roll_ydot()

void ConvectionSystemUTW::roll_ydot ( sdVector ydot) const

Fill in ydot with the current time derivatives.

◆ resize()

void ConvectionSystemUTW::resize ( const size_t  nPoints)

Set the size of the domain to nPoints

◆ resetSplitConstants()

void ConvectionSystemUTW::resetSplitConstants ( )

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

◆ updateContinuityBoundaryCondition()

void ConvectionSystemUTW::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.

◆ setStrainFunction()

void ConvectionSystemUTW::setStrainFunction ( ScalarFunction f)
inline

Set the function used to compute the strain rate as a function of time.

◆ setRhou()

void ConvectionSystemUTW::setRhou ( double  _rhou)
inline

◆ V2rV()

void ConvectionSystemUTW::V2rV ( void  )
private

compute rV from V

◆ rV2V()

void ConvectionSystemUTW::rV2V ( void  )
private

compute V from rV

Member Data Documentation

◆ U

dvec ConvectionSystemUTW::U

Tangential velocity gradient [1/s].

State variable.

◆ dUdt

dvec ConvectionSystemUTW::dUdt

Time derivative of U, [1/s^2].

◆ T

dvec ConvectionSystemUTW::T

Temperature [K].

State variable.

◆ dTdt

dvec ConvectionSystemUTW::dTdt

Time derivative of T [K/s].

◆ Wmx

dvec ConvectionSystemUTW::Wmx

Mixture molecular weight [kg/kmol].

State variable.

◆ dWdt

dvec ConvectionSystemUTW::dWdt

Time derivative of Wmx.

◆ Tleft

double ConvectionSystemUTW::Tleft

Temperature left boundary value.

◆ Wleft

double ConvectionSystemUTW::Wleft

mixture molecular weight left boundary value

◆ rVzero

double ConvectionSystemUTW::rVzero

mass flux boundary value at j=0

◆ drhodt

dvec ConvectionSystemUTW::drhodt

Time derivative of the density [kg/m^3*s].

◆ splitConstT

dvec ConvectionSystemUTW::splitConstT

Constant in T equation introduced by splitting method.

◆ splitConstW

dvec ConvectionSystemUTW::splitConstW

Constant in Wmx equation introduced by splitting method.

◆ splitConstU

dvec ConvectionSystemUTW::splitConstU

Constant in U equation introduced by splitting method.

◆ gas

CanteraGas* ConvectionSystemUTW::gas

Cantera data.

◆ V

dvec ConvectionSystemUTW::V

mass flux [kg/m^2*s]

◆ rV

dvec ConvectionSystemUTW::rV

(radial) mass flux (r*V) [kg/m^2*s or kg/m*rad*s]

◆ rho

dvec ConvectionSystemUTW::rho

mixture density [kg/m^3]

◆ dUdx

dvec ConvectionSystemUTW::dUdx

Gradient of U normal to the flame.

◆ dTdx

dvec ConvectionSystemUTW::dTdx

Gradient of T normal to the flame.

◆ dWdx

dvec ConvectionSystemUTW::dWdx

Gradient of Wmx normal to the flame.

◆ continuityBC

ContinuityBoundaryCondition::BC ConvectionSystemUTW::continuityBC

The method used for determining the continuity boundary condition.

◆ jContBC

size_t ConvectionSystemUTW::jContBC

The point at which the continuity equation BC is applied.

◆ xVzero

double ConvectionSystemUTW::xVzero

Location of the stagnation point (if using fixedZero BC)

◆ strainFunction

ScalarFunction* ConvectionSystemUTW::strainFunction

An object that provides the strain rate and its time derivative.

◆ rhou

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

◆ nVars

size_t ConvectionSystemUTW::nVars
private

Number of state variables at each grid point (== 3)


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