ODT
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
dv Class Reference

#include <dv.h>

Inheritance diagram for dv:
Inheritance graph
[legend]

Public Member Functions

virtual void setVar (const int ipt=-1)
 
virtual void merge2cells (const int imrg, const double m2, const double m1, const bool LconstVolume=false)
 
virtual void splitCell (const int isplt, const int nsplt, const vector< double > &cellFaces)
 
virtual void getRhsSrc (const int ipt=-1)
 
virtual void getRhsMix (const vector< double > &gf, const vector< double > &dxc)
 
virtual void interpVarToFacesHarmonic (const vector< double > &cvar, vector< double > &fvar)
 
virtual double linearInterpToFace (const int &iface, const vector< double > &vec)
 
virtual void setDvFromRegion (const int i1, const int i2)
 
virtual void resize ()
 
 dv ()
 
 dv (domain *line, const string s, const bool Lt, const bool Lo=true)
 
virtual ~dv ()
 

Public Attributes

string var_name
 name of variable
 
vector< double > d
 the data
 
bool L_transported
 flag true if var is transported
 
bool L_output
 flag true if included in output
 
bool LagSrc
 flag to lag source term in implicit solve (initially put in for enthalpy radiation)
 
domaindomn
 pointer to domain object (parent)
 
vector< double > rhsSrc
 the data
 
vector< double > rhsMix
 the data
 
vector< double > flux
 

Detailed Description

Class implementing base dv object. Derived dv will be u,v,w,Yi,etc.

Author
David O. Lignell

Definition at line 23 of file dv.h.

Constructor & Destructor Documentation

◆ dv() [1/2]

dv::dv ( )
inline

Definition at line 68 of file dv.h.

◆ dv() [2/2]

dv::dv ( domain * line,
const string s,
const bool Lt,
const bool Lo = true )

dv constructor function

Parameters
p_domninput: set domain pointer with.
p_phiinput: set vector pointer with.

Definition at line 16 of file dv.cc.

◆ ~dv()

virtual dv::~dv ( )
inlinevirtual

Definition at line 74 of file dv.h.

Member Function Documentation

◆ getRhsMix()

virtual void dv::getRhsMix ( const vector< double > & gf,
const vector< double > & dxc )
inlinevirtual

Reimplemented in dv_enth, dv_mixf, dv_sca, dv_uvw, and dv_ygas.

Definition at line 56 of file dv.h.

◆ getRhsSrc()

virtual void dv::getRhsSrc ( const int ipt = -1)
inlinevirtual

Reimplemented in dv_enth, dv_mixf, dv_sca, dv_uvw, dv_ygas, and dv_ygas_noRxn.

Definition at line 55 of file dv.h.

◆ interpVarToFacesHarmonic()

void dv::interpVarToFacesHarmonic ( const vector< double > & cvar,
vector< double > & fvar )
virtual

interpolate a cell centered variable to a face by harmonic interpolation which gives roughly an upwind flux

Definition at line 75 of file dv.cc.

◆ linearInterpToFace()

double dv::linearInterpToFace ( const int & iface,
const vector< double > & vec )
virtual

Interpolate variables to single face

Parameters
ifaceinput: face index to interpolate to.
vecinput: variable being interpolated.
Returns
return interpolated variable at desired face.

Definition at line 136 of file dv.cc.

◆ merge2cells()

void dv::merge2cells ( const int imrg,
const double m1,
const double m2,
const bool LconstVolume = false )
virtual

dv merger2cells function

Function presumes that the variable being merged is a quantity per unit mass. Merging conservatively: (rho*phi*dx)_merged = (rho*phi*dx)_1 + (rho*phi*dx)_2 Then solve for phi_merged.

Parameters
imrginput: merge cells imrg and imrg+1
m1input: mass in cell imrg
m2input: mass in cell imrg
LconstVolumeinput: (for posf, default is false)

Reimplemented in dv_dvisc_const, dv_pos, dv_posf, dv_rho, dv_rho_const, and dv_rho_mf.

Definition at line 60 of file dv.cc.

◆ resize()

void dv::resize ( )
virtual

Resize data

Reimplemented in dv_posf.

Definition at line 193 of file dv.cc.

◆ setDvFromRegion()

void dv::setDvFromRegion ( const int i1,
const int i2 )
virtual

Set data array from region of domain.

Parameters
i1input: index of starting cell of domn to build from
i2input: index of ending cell of domn to build from See domain::setDomainFromRegion for additional details.

Reimplemented in dv_pos, and dv_posf.

Definition at line 175 of file dv.cc.

◆ setVar()

virtual void dv::setVar ( const int ipt = -1)
inlinevirtual

Reimplemented in dv_aDL, dv_chi, dv_chi_dmf, dv_dvisc, dv_dvisc_const, dv_hr, dv_mixf, dv_pos, dv_rho, dv_rho_const, dv_rho_mf, and dv_temp.

Definition at line 44 of file dv.h.

◆ splitCell()

void dv::splitCell ( const int isplt,
const int nsplt,
const vector< double > & cellFaces )
virtual

dv splitCell function

Parameters
ispltinput: index of cell to split
nspltinput: number of cells to split cell into
cellFacesinput: original left edge, new interior faces, orig. right edge.

Reimplemented in dv_pos, and dv_posf.

Definition at line 39 of file dv.cc.

Member Data Documentation

◆ d

vector<double> dv::d

the data

Definition at line 30 of file dv.h.

◆ domn

domain* dv::domn

pointer to domain object (parent)

Definition at line 35 of file dv.h.

◆ flux

vector<double> dv::flux

Definition at line 40 of file dv.h.

◆ L_output

bool dv::L_output

flag true if included in output

Definition at line 32 of file dv.h.

◆ L_transported

bool dv::L_transported

flag true if var is transported

Definition at line 31 of file dv.h.

◆ LagSrc

bool dv::LagSrc

flag to lag source term in implicit solve (initially put in for enthalpy radiation)

Definition at line 33 of file dv.h.

◆ rhsMix

vector<double> dv::rhsMix

the data

Definition at line 38 of file dv.h.

◆ rhsSrc

vector<double> dv::rhsSrc

the data

Definition at line 37 of file dv.h.

◆ var_name

string dv::var_name

name of variable

Definition at line 29 of file dv.h.


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