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

#include <dv_pos.h>

Inheritance diagram for dv_pos:
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 setDvFromRegion (const int i1, const int i2)
 
 dv_pos ()
 
 dv_pos (domain *line, const string s, const bool Lt, const bool Lo=true)
 
virtual ~dv_pos ()
 
- Public Member Functions inherited from dv
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 resize ()
 
 dv ()
 
 dv (domain *line, const string s, const bool Lt, const bool Lo=true)
 
virtual ~dv ()
 

Additional Inherited Members

- Public Attributes inherited from dv
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 child dv_pos of parent lv object.

Author
David O. Lignell

Definition at line 23 of file dv_pos.h.

Constructor & Destructor Documentation

◆ dv_pos() [1/2]

dv_pos::dv_pos ( )
inline

Definition at line 52 of file dv_pos.h.

◆ dv_pos() [2/2]

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

dv_pos constructor function

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

Definition at line 17 of file dv_pos.cc.

◆ ~dv_pos()

virtual dv_pos::~dv_pos ( )
inlinevirtual

Definition at line 58 of file dv_pos.h.

Member Function Documentation

◆ merge2cells()

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

dv_pos merge2cells 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.

NOTE: this should only be called when posf is correct.

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

Reimplemented from dv.

Definition at line 73 of file dv_pos.cc.

◆ setDvFromRegion()

void dv_pos::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 from dv.

Definition at line 116 of file dv_pos.cc.

◆ setVar()

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

dv_pos setVar function

Parameters
iptinput: optional point to compute at Sets the grid position from posf So, you should make sure posf is consistent with pos before calling.

NOTE: this should only be called when posf is correct.

Reimplemented from dv.

Definition at line 95 of file dv_pos.cc.

◆ splitCell()

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

dv_pos 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.

note, the number of cells is changed in the calling function, not here note, this is organized to be independent of whether we split posf before or after. (that is, we often compute pos1 as simply 0.5*(posf1+posf2), but not here.

Reimplemented from dv.

Definition at line 47 of file dv_pos.cc.


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