www.mooseframework.org
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
PorousFlowPolyLineSink Class Reference

Approximates a line sink by a sequence of Dirac Points. More...

#include <PorousFlowPolyLineSink.h>

Inheritance diagram for PorousFlowPolyLineSink:
[legend]

Public Member Functions

 PorousFlowPolyLineSink (const InputParameters &parameters)
 

Protected Types

enum  PorTchoice { PorTchoice::pressure, PorTchoice::temperature }
 whether the flux is a function of pressure or temperature More...
 

Protected Member Functions

Real computeQpBaseOutflow (unsigned current_dirac_ptid) const override
 Returns the flux from the line sink (before modification by mobility, etc). Derived classes should override this. More...
 
void computeQpBaseOutflowJacobian (unsigned jvar, unsigned current_dirac_ptid, Real &outflow, Real &outflowp) const override
 Calculates the BaseOutflow as well as its derivative wrt jvar. Derived classes should override this. More...
 
virtual Real computeQpResidual () override
 
virtual Real computeQpJacobian () override
 
virtual Real computeQpOffDiagJacobian (unsigned int jvar) override
 
virtual void addPoints () override
 Add Dirac Points to the borehole. More...
 
Real jac (unsigned int jvar)
 Jacobian contribution for the derivative wrt the variable jvar. More...
 
Real ptqp () const
 If _p_or_t==0, then returns the quadpoint porepressure, else returns the quadpoint temperature. More...
 
Real dptqp (unsigned pvar) const
 If _p_or_t==0, then returns d(quadpoint porepressure)/d(PorousFlow variable), else returns d(quadpoint temperature)/d(PorousFlow variable) More...
 
bool parseNextLineReals (std::ifstream &ifs, std::vector< Real > &myvec)
 reads a space-separated line of floats from ifs and puts in myvec More...
 

Protected Attributes

LinearInterpolation _sink_func
 mass flux = _sink_func as a function of porepressure or temperature More...
 
const PorousFlowDictator_dictator
 PorousFlow UserObject. More...
 
PorousFlowSumQuantity_total_outflow_mass
 This is used to hold the total fluid flowing into the line sink for each time step. More...
 
const bool _has_porepressure
 Whether a quadpoint porepressure material exists (for error checking) More...
 
const bool _has_temperature
 Whether a quadpoint temperature material exists (for error checking) More...
 
const bool _has_mass_fraction
 Whether a mass_fraction material exists (for error checking) More...
 
const bool _has_relative_permeability
 Whether a relative permeability material exists (for error checking) More...
 
const bool _has_mobility
 Whether enough materials exist to form the mobility (for error checking) More...
 
const bool _has_enthalpy
 Whether an enthalpy material exists (for error checking) More...
 
const bool _has_internal_energy
 Whether an internal-energy material exists (for error checking) More...
 
enum PorousFlowLineSink::PorTchoice _p_or_t
 
const bool _use_mass_fraction
 Whether the flux will be multiplied by the mass fraction. More...
 
const bool _use_relative_permeability
 Whether the flux will be multiplied by the relative permeability. More...
 
const bool _use_mobility
 Whether the flux will be multiplied by the mobility. More...
 
const bool _use_enthalpy
 Whether the flux will be multiplied by the enthalpy. More...
 
const bool _use_internal_energy
 Whether the flux will be multiplied by the internal-energy. More...
 
const unsigned int _ph
 The phase number. More...
 
const unsigned int _sp
 The component number (only used if _use_mass_fraction==true) More...
 
const MaterialProperty< std::vector< Real > > *const _pp
 Quadpoint pore pressure in each phase. More...
 
const MaterialProperty< std::vector< std::vector< Real > > > *const _dpp_dvar
 d(quadpoint pore pressure in each phase)/d(PorousFlow variable) More...
 
const MaterialProperty< Real > *const _temperature
 Quadpoint temperature. More...
 
const MaterialProperty< std::vector< Real > > *const _dtemperature_dvar
 d(quadpoint temperature)/d(PorousFlow variable) More...
 
const MaterialProperty< std::vector< Real > > *const _fluid_density_node
 Fluid density for each phase (at the node) More...
 
const MaterialProperty< std::vector< std::vector< Real > > > *const _dfluid_density_node_dvar
 d(Fluid density for each phase (at the node))/d(PorousFlow variable) More...
 
const MaterialProperty< std::vector< Real > > *const _fluid_viscosity
 Viscosity of each component in each phase. More...
 
const MaterialProperty< std::vector< std::vector< Real > > > *const _dfluid_viscosity_dvar
 d(Viscosity of each component in each phase)/d(PorousFlow variable) More...
 
const MaterialProperty< std::vector< Real > > *const _relative_permeability
 Relative permeability of each phase. More...
 
const MaterialProperty< std::vector< std::vector< Real > > > *const _drelative_permeability_dvar
 d(Relative permeability of each phase)/d(PorousFlow variable) More...
 
const MaterialProperty< std::vector< std::vector< Real > > > *const _mass_fractions
 Mass fraction of each component in each phase. More...
 
const MaterialProperty< std::vector< std::vector< std::vector< Real > > > > *const _dmass_fractions_dvar
 d(Mass fraction of each component in each phase)/d(PorousFlow variable) More...
 
const MaterialProperty< std::vector< Real > > *const _enthalpy
 Enthalpy of each phase. More...
 
const MaterialProperty< std::vector< std::vector< Real > > > *const _denthalpy_dvar
 d(enthalpy of each phase)/d(PorousFlow variable) More...
 
const MaterialProperty< std::vector< Real > > *const _internal_energy
 Internal_Energy of each phase. More...
 
const MaterialProperty< std::vector< std::vector< Real > > > *const _dinternal_energy_dvar
 d(internal_energy of each phase)/d(PorousFlow variable) More...
 
const Real _line_length
 line length. This is only used if there is only one borehole point More...
 
const RealVectorValue _line_direction
 line direction. This is only used if there is only one borehole point More...
 
const std::string _point_file
 File defining the geometry of the borehole. More...
 
std::vector< Real > _rs
 radii of the borehole More...
 
std::vector< Real > _xs
 x points of the borehole More...
 
std::vector< Real > _ys
 y points of the borehole More...
 
std::vector< Real > _zs
 z points of borehole More...
 
Point _bottom_point
 the bottom point of the borehole (where bottom_pressure is defined) More...
 
std::vector< Real > _half_seg_len
 0.5*(length of polyline segments between points) More...
 

Detailed Description

Approximates a line sink by a sequence of Dirac Points.

Definition at line 22 of file PorousFlowPolyLineSink.h.

Member Enumeration Documentation

enum PorousFlowLineSink::PorTchoice
strongprotectedinherited

whether the flux is a function of pressure or temperature

Enumerator
pressure 
temperature 

Definition at line 91 of file PorousFlowLineSink.h.

const std::string temperature
Definition: NS.h:25
const std::string pressure
Definition: NS.h:24
enum PorousFlowLineSink::PorTchoice _p_or_t

Constructor & Destructor Documentation

PorousFlowPolyLineSink::PorousFlowPolyLineSink ( const InputParameters &  parameters)

Definition at line 33 of file PorousFlowPolyLineSink.C.

34  : PorousFlowLineSink(parameters),
35  _sink_func(getParam<std::vector<Real>>("p_or_t_vals"), getParam<std::vector<Real>>("fluxes"))
36 {
37 }
LinearInterpolation _sink_func
mass flux = _sink_func as a function of porepressure or temperature
PorousFlowLineSink(const InputParameters &parameters)

Member Function Documentation

void PorousFlowLineSink::addPoints ( )
overrideprotectedvirtualinherited

Add Dirac Points to the borehole.

Reimplemented from PorousFlowLineGeometry.

Definition at line 206 of file PorousFlowLineSink.C.

207 {
208  // This function gets called just before the DiracKernel is evaluated
209  // so this is a handy place to zero this out.
211 
213 }
virtual void addPoints() override
Add Dirac Points to the line sink.
void zero()
sets _total = 0
PorousFlowSumQuantity & _total_outflow_mass
This is used to hold the total fluid flowing into the line sink for each time step.
Real PorousFlowPolyLineSink::computeQpBaseOutflow ( unsigned  current_dirac_ptid) const
overrideprotectedvirtual

Returns the flux from the line sink (before modification by mobility, etc). Derived classes should override this.

Implements PorousFlowLineSink.

Definition at line 40 of file PorousFlowPolyLineSink.C.

41 {
42  Real outflow = 0.0;
43 
44  if (current_dirac_ptid > 0)
45  // contribution from half-segment "behind" this point (must have >1 point for
46  // current_dirac_ptid>0)
47  outflow += _half_seg_len[current_dirac_ptid - 1];
48 
49  if (current_dirac_ptid + 1 < _zs.size() || _zs.size() == 1)
50  // contribution from half-segment "ahead of" this point, or we only have one point
51  outflow += _half_seg_len[current_dirac_ptid];
52 
53  return outflow * _test[_i][_qp] * _sink_func.sample(ptqp()) * _rs[current_dirac_ptid];
54 }
std::vector< Real > _half_seg_len
0.5*(length of polyline segments between points)
Real ptqp() const
If _p_or_t==0, then returns the quadpoint porepressure, else returns the quadpoint temperature...
std::vector< Real > _zs
z points of borehole
LinearInterpolation _sink_func
mass flux = _sink_func as a function of porepressure or temperature
std::vector< Real > _rs
radii of the borehole
void PorousFlowPolyLineSink::computeQpBaseOutflowJacobian ( unsigned  jvar,
unsigned  current_dirac_ptid,
Real &  outflow,
Real &  outflowp 
) const
overrideprotectedvirtual

Calculates the BaseOutflow as well as its derivative wrt jvar. Derived classes should override this.

Implements PorousFlowLineSink.

Definition at line 57 of file PorousFlowPolyLineSink.C.

61 {
62  outflow = 0.0;
63  outflowp = 0.0;
64 
66  return;
67  const unsigned pvar = _dictator.porousFlowVariableNum(jvar);
68 
69  if (current_dirac_ptid > 0)
70  // contribution from half-segment "behind" this point (must have >1 point for
71  // current_dirac_ptid>0)
72  outflow += _half_seg_len[current_dirac_ptid - 1];
73 
74  if (current_dirac_ptid + 1 < _zs.size() || _zs.size() == 1)
75  // contribution from half-segment "ahead of" this point, or we only have one point
76  outflow += _half_seg_len[current_dirac_ptid];
77 
78  outflowp = outflow * _test[_i][_qp] * _sink_func.sampleDerivative(ptqp()) * dptqp(pvar) *
79  _phi[_j][_qp] * _rs[current_dirac_ptid];
80  outflow *= _test[_i][_qp] * _sink_func.sample(ptqp()) * _rs[current_dirac_ptid];
81 }
const PorousFlowDictator & _dictator
PorousFlow UserObject.
std::vector< Real > _half_seg_len
0.5*(length of polyline segments between points)
Real ptqp() const
If _p_or_t==0, then returns the quadpoint porepressure, else returns the quadpoint temperature...
std::vector< Real > _zs
z points of borehole
LinearInterpolation _sink_func
mass flux = _sink_func as a function of porepressure or temperature
Real dptqp(unsigned pvar) const
If _p_or_t==0, then returns d(quadpoint porepressure)/d(PorousFlow variable), else returns d(quadpoin...
std::vector< Real > _rs
radii of the borehole
bool notPorousFlowVariable(unsigned int moose_var_num) const
returns true if moose_var_num is not a porous flow variabe
unsigned int porousFlowVariableNum(unsigned int moose_var_num) const
the PorousFlow variable number
Real PorousFlowLineSink::computeQpJacobian ( )
overrideprotectedvirtualinherited

Definition at line 247 of file PorousFlowLineSink.C.

248 {
249  return jac(_var.number());
250 }
Real jac(unsigned int jvar)
Jacobian contribution for the derivative wrt the variable jvar.
Real PorousFlowLineSink::computeQpOffDiagJacobian ( unsigned int  jvar)
overrideprotectedvirtualinherited

Definition at line 253 of file PorousFlowLineSink.C.

254 {
255  return jac(jvar);
256 }
Real jac(unsigned int jvar)
Jacobian contribution for the derivative wrt the variable jvar.
Real PorousFlowLineSink::computeQpResidual ( )
overrideprotectedvirtualinherited

Definition at line 216 of file PorousFlowLineSink.C.

217 {
218  // Get the ID we initially assigned to this point
219  const unsigned current_dirac_ptid = currentPointCachedID();
220  Real outflow = computeQpBaseOutflow(current_dirac_ptid);
221  if (outflow == 0.0)
222  return 0.0;
223 
225  outflow *= (*_relative_permeability)[_i][_ph];
226 
227  if (_use_mobility)
228  outflow *= (*_relative_permeability)[_i][_ph] * (*_fluid_density_node)[_i][_ph] /
229  (*_fluid_viscosity)[_i][_ph];
230 
231  if (_use_mass_fraction)
232  outflow *= (*_mass_fractions)[_i][_ph][_sp];
233 
234  if (_use_enthalpy)
235  outflow *= (*_enthalpy)[_i][_ph];
236 
238  outflow *= (*_internal_energy)[_i][_ph];
239 
241  outflow * _dt); // this is not thread safe, but DiracKernel's aren't currently threaded
242 
243  return outflow;
244 }
void add(Real contrib)
adds contrib to _total
const bool _use_enthalpy
Whether the flux will be multiplied by the enthalpy.
const unsigned int _ph
The phase number.
const bool _use_relative_permeability
Whether the flux will be multiplied by the relative permeability.
virtual Real computeQpBaseOutflow(unsigned current_dirac_ptid) const =0
Returns the flux from the line sink (before modification by mobility, etc). Derived classes should ov...
PorousFlowSumQuantity & _total_outflow_mass
This is used to hold the total fluid flowing into the line sink for each time step.
const bool _use_mass_fraction
Whether the flux will be multiplied by the mass fraction.
const bool _use_internal_energy
Whether the flux will be multiplied by the internal-energy.
const unsigned int _sp
The component number (only used if _use_mass_fraction==true)
const bool _use_mobility
Whether the flux will be multiplied by the mobility.
Real PorousFlowLineSink::dptqp ( unsigned  pvar) const
protectedinherited

If _p_or_t==0, then returns d(quadpoint porepressure)/d(PorousFlow variable), else returns d(quadpoint temperature)/d(PorousFlow variable)

Parameters
pvarThe PorousFlow variable number

Definition at line 330 of file PorousFlowLineSink.C.

Referenced by computeQpBaseOutflowJacobian(), and PorousFlowPeacemanBorehole::computeQpBaseOutflowJacobian().

331 {
332  return (_p_or_t == PorTchoice::pressure ? (*_dpp_dvar)[_qp][_ph][pvar]
333  : (*_dtemperature_dvar)[_qp][pvar]);
334 }
const unsigned int _ph
The phase number.
const MaterialProperty< std::vector< Real > > *const _dtemperature_dvar
d(quadpoint temperature)/d(PorousFlow variable)
const MaterialProperty< std::vector< std::vector< Real > > > *const _dpp_dvar
d(quadpoint pore pressure in each phase)/d(PorousFlow variable)
enum PorousFlowLineSink::PorTchoice _p_or_t
Real PorousFlowLineSink::jac ( unsigned int  jvar)
protectedinherited

Jacobian contribution for the derivative wrt the variable jvar.

Definition at line 259 of file PorousFlowLineSink.C.

Referenced by PorousFlowLineSink::computeQpJacobian(), and PorousFlowLineSink::computeQpOffDiagJacobian().

260 {
262  return 0.0;
263  const unsigned pvar = _dictator.porousFlowVariableNum(jvar);
264 
265  Real outflow;
266  Real outflowp;
267  const unsigned current_dirac_ptid = currentPointCachedID();
268  computeQpBaseOutflowJacobian(jvar, current_dirac_ptid, outflow, outflowp);
269  if (outflow == 0.0 && outflowp == 0.0)
270  return 0.0;
271 
273  {
274  const Real relperm_prime = (_i != _j ? 0.0 : (*_drelative_permeability_dvar)[_i][_ph][pvar]);
275  outflowp = (*_relative_permeability)[_i][_ph] * outflowp + relperm_prime * outflow;
276  outflow *= (*_relative_permeability)[_i][_ph];
277  }
278 
279  if (_use_mobility)
280  {
281  const Real mob = (*_relative_permeability)[_i][_ph] * (*_fluid_density_node)[_i][_ph] /
282  (*_fluid_viscosity)[_i][_ph];
283  const Real mob_prime =
284  (_i != _j
285  ? 0.0
286  : (*_drelative_permeability_dvar)[_i][_ph][pvar] * (*_fluid_density_node)[_i][_ph] /
287  (*_fluid_viscosity)[_i][_ph] +
288  (*_relative_permeability)[_i][_ph] *
289  (*_dfluid_density_node_dvar)[_i][_ph][pvar] / (*_fluid_viscosity)[_i][_ph] -
290  (*_relative_permeability)[_i][_ph] * (*_fluid_density_node)[_i][_ph] *
291  (*_dfluid_viscosity_dvar)[_i][_ph][pvar] /
292  Utility::pow<2>((*_fluid_viscosity)[_i][_ph]));
293  outflowp = mob * outflowp + mob_prime * outflow;
294  outflow *= mob;
295  }
296 
297  if (_use_mass_fraction)
298  {
299  const Real mass_fractions_prime =
300  (_i != _j ? 0.0 : (*_dmass_fractions_dvar)[_i][_ph][_sp][pvar]);
301  outflowp = (*_mass_fractions)[_i][_ph][_sp] * outflowp + mass_fractions_prime * outflow;
302  outflow *= (*_mass_fractions)[_i][_ph][_sp];
303  }
304 
305  if (_use_enthalpy)
306  {
307  const Real enthalpy_prime = (_i != _j ? 0.0 : (*_denthalpy_dvar)[_i][_ph][pvar]);
308  outflowp = (*_enthalpy)[_i][_ph] * outflowp + enthalpy_prime * outflow;
309  outflow *= (*_enthalpy)[_i][_ph];
310  }
311 
313  {
314  const Real internal_energy_prime = (_i != _j ? 0.0 : (*_dinternal_energy_dvar)[_i][_ph][pvar]);
315  outflowp = (*_internal_energy)[_i][_ph] * outflowp + internal_energy_prime * outflow;
316  // this multiplication was performed, but the code does not need to know: outflow *=
317  // (*_internal_energy)[_i][_ph];
318  }
319 
320  return outflowp;
321 }
const bool _use_enthalpy
Whether the flux will be multiplied by the enthalpy.
const unsigned int _ph
The phase number.
const PorousFlowDictator & _dictator
PorousFlow UserObject.
const bool _use_relative_permeability
Whether the flux will be multiplied by the relative permeability.
virtual void computeQpBaseOutflowJacobian(unsigned jvar, unsigned current_dirac_ptid, Real &outflow, Real &outflowp) const =0
Calculates the BaseOutflow as well as its derivative wrt jvar. Derived classes should override this...
const bool _use_mass_fraction
Whether the flux will be multiplied by the mass fraction.
const bool _use_internal_energy
Whether the flux will be multiplied by the internal-energy.
const unsigned int _sp
The component number (only used if _use_mass_fraction==true)
bool notPorousFlowVariable(unsigned int moose_var_num) const
returns true if moose_var_num is not a porous flow variabe
unsigned int porousFlowVariableNum(unsigned int moose_var_num) const
the PorousFlow variable number
const bool _use_mobility
Whether the flux will be multiplied by the mobility.
bool PorousFlowLineGeometry::parseNextLineReals ( std::ifstream &  ifs,
std::vector< Real > &  myvec 
)
protectedinherited

reads a space-separated line of floats from ifs and puts in myvec

Definition at line 101 of file PorousFlowLineGeometry.C.

Referenced by PorousFlowLineGeometry::PorousFlowLineGeometry().

103 {
104  std::string line;
105  myvec.clear();
106  bool gotline(false);
107  if (getline(ifs, line))
108  {
109  gotline = true;
110 
111  // Harvest floats separated by whitespace
112  std::istringstream iss(line);
113  Real f;
114  while (iss >> f)
115  {
116  myvec.push_back(f);
117  }
118  }
119  return gotline;
120 }
Real PorousFlowLineSink::ptqp ( ) const
protectedinherited

If _p_or_t==0, then returns the quadpoint porepressure, else returns the quadpoint temperature.

Definition at line 324 of file PorousFlowLineSink.C.

Referenced by computeQpBaseOutflow(), PorousFlowPeacemanBorehole::computeQpBaseOutflow(), computeQpBaseOutflowJacobian(), and PorousFlowPeacemanBorehole::computeQpBaseOutflowJacobian().

325 {
326  return (_p_or_t == PorTchoice::pressure ? (*_pp)[_qp][_ph] : (*_temperature)[_qp]);
327 }
const unsigned int _ph
The phase number.
const MaterialProperty< std::vector< Real > > *const _pp
Quadpoint pore pressure in each phase.
enum PorousFlowLineSink::PorTchoice _p_or_t
const MaterialProperty< Real > *const _temperature
Quadpoint temperature.

Member Data Documentation

Point PorousFlowLineGeometry::_bottom_point
protectedinherited

the bottom point of the borehole (where bottom_pressure is defined)

Definition at line 60 of file PorousFlowLineGeometry.h.

Referenced by PorousFlowPeacemanBorehole::computeQpBaseOutflow(), PorousFlowPeacemanBorehole::computeQpBaseOutflowJacobian(), and PorousFlowLineGeometry::PorousFlowLineGeometry().

const MaterialProperty<std::vector<std::vector<Real> > >* const PorousFlowLineSink::_denthalpy_dvar
protectedinherited

d(enthalpy of each phase)/d(PorousFlow variable)

Definition at line 154 of file PorousFlowLineSink.h.

const MaterialProperty<std::vector<std::vector<Real> > >* const PorousFlowLineSink::_dfluid_density_node_dvar
protectedinherited

d(Fluid density for each phase (at the node))/d(PorousFlow variable)

Definition at line 130 of file PorousFlowLineSink.h.

const MaterialProperty<std::vector<std::vector<Real> > >* const PorousFlowLineSink::_dfluid_viscosity_dvar
protectedinherited

d(Viscosity of each component in each phase)/d(PorousFlow variable)

Definition at line 136 of file PorousFlowLineSink.h.

const PorousFlowDictator& PorousFlowLineSink::_dictator
protectedinherited
const MaterialProperty<std::vector<std::vector<Real> > >* const PorousFlowLineSink::_dinternal_energy_dvar
protectedinherited

d(internal_energy of each phase)/d(PorousFlow variable)

Definition at line 160 of file PorousFlowLineSink.h.

const MaterialProperty<std::vector<std::vector<std::vector<Real> > > >* const PorousFlowLineSink::_dmass_fractions_dvar
protectedinherited

d(Mass fraction of each component in each phase)/d(PorousFlow variable)

Definition at line 148 of file PorousFlowLineSink.h.

const MaterialProperty<std::vector<std::vector<Real> > >* const PorousFlowLineSink::_dpp_dvar
protectedinherited

d(quadpoint pore pressure in each phase)/d(PorousFlow variable)

Definition at line 118 of file PorousFlowLineSink.h.

Referenced by PorousFlowLineSink::dptqp().

const MaterialProperty<std::vector<std::vector<Real> > >* const PorousFlowLineSink::_drelative_permeability_dvar
protectedinherited

d(Relative permeability of each phase)/d(PorousFlow variable)

Definition at line 142 of file PorousFlowLineSink.h.

const MaterialProperty<std::vector<Real> >* const PorousFlowLineSink::_dtemperature_dvar
protectedinherited

d(quadpoint temperature)/d(PorousFlow variable)

Definition at line 124 of file PorousFlowLineSink.h.

Referenced by PorousFlowLineSink::dptqp().

const MaterialProperty<std::vector<Real> >* const PorousFlowLineSink::_enthalpy
protectedinherited

Enthalpy of each phase.

Definition at line 151 of file PorousFlowLineSink.h.

const MaterialProperty<std::vector<Real> >* const PorousFlowLineSink::_fluid_density_node
protectedinherited

Fluid density for each phase (at the node)

Definition at line 127 of file PorousFlowLineSink.h.

const MaterialProperty<std::vector<Real> >* const PorousFlowLineSink::_fluid_viscosity
protectedinherited

Viscosity of each component in each phase.

Definition at line 133 of file PorousFlowLineSink.h.

std::vector<Real> PorousFlowLineGeometry::_half_seg_len
protectedinherited
const bool PorousFlowLineSink::_has_enthalpy
protectedinherited

Whether an enthalpy material exists (for error checking)

Definition at line 85 of file PorousFlowLineSink.h.

Referenced by PorousFlowLineSink::PorousFlowLineSink().

const bool PorousFlowLineSink::_has_internal_energy
protectedinherited

Whether an internal-energy material exists (for error checking)

Definition at line 88 of file PorousFlowLineSink.h.

Referenced by PorousFlowLineSink::PorousFlowLineSink().

const bool PorousFlowLineSink::_has_mass_fraction
protectedinherited

Whether a mass_fraction material exists (for error checking)

Definition at line 76 of file PorousFlowLineSink.h.

Referenced by PorousFlowLineSink::PorousFlowLineSink().

const bool PorousFlowLineSink::_has_mobility
protectedinherited

Whether enough materials exist to form the mobility (for error checking)

Definition at line 82 of file PorousFlowLineSink.h.

Referenced by PorousFlowLineSink::PorousFlowLineSink().

const bool PorousFlowLineSink::_has_porepressure
protectedinherited

Whether a quadpoint porepressure material exists (for error checking)

Definition at line 70 of file PorousFlowLineSink.h.

Referenced by PorousFlowLineSink::PorousFlowLineSink().

const bool PorousFlowLineSink::_has_relative_permeability
protectedinherited

Whether a relative permeability material exists (for error checking)

Definition at line 79 of file PorousFlowLineSink.h.

Referenced by PorousFlowLineSink::PorousFlowLineSink().

const bool PorousFlowLineSink::_has_temperature
protectedinherited

Whether a quadpoint temperature material exists (for error checking)

Definition at line 73 of file PorousFlowLineSink.h.

Referenced by PorousFlowLineSink::PorousFlowLineSink().

const MaterialProperty<std::vector<Real> >* const PorousFlowLineSink::_internal_energy
protectedinherited

Internal_Energy of each phase.

Definition at line 157 of file PorousFlowLineSink.h.

const RealVectorValue PorousFlowLineGeometry::_line_direction
protectedinherited

line direction. This is only used if there is only one borehole point

Definition at line 38 of file PorousFlowLineGeometry.h.

Referenced by PorousFlowPeacemanBorehole::PorousFlowPeacemanBorehole().

const Real PorousFlowLineGeometry::_line_length
protectedinherited

line length. This is only used if there is only one borehole point

Definition at line 35 of file PorousFlowLineGeometry.h.

Referenced by PorousFlowLineGeometry::PorousFlowLineGeometry().

const MaterialProperty<std::vector<std::vector<Real> > >* const PorousFlowLineSink::_mass_fractions
protectedinherited

Mass fraction of each component in each phase.

Definition at line 145 of file PorousFlowLineSink.h.

enum PorousFlowLineSink::PorTchoice PorousFlowLineSink::_p_or_t
protectedinherited
const unsigned int PorousFlowLineSink::_ph
protectedinherited
const std::string PorousFlowLineGeometry::_point_file
protectedinherited

File defining the geometry of the borehole.

Each row has format weight x y z and the list of such points defines a polyline that is the line sink

Definition at line 45 of file PorousFlowLineGeometry.h.

Referenced by PorousFlowLineGeometry::PorousFlowLineGeometry().

const MaterialProperty<std::vector<Real> >* const PorousFlowLineSink::_pp
protectedinherited

Quadpoint pore pressure in each phase.

Definition at line 115 of file PorousFlowLineSink.h.

Referenced by PorousFlowLineSink::ptqp().

const MaterialProperty<std::vector<Real> >* const PorousFlowLineSink::_relative_permeability
protectedinherited

Relative permeability of each phase.

Definition at line 139 of file PorousFlowLineSink.h.

std::vector<Real> PorousFlowLineGeometry::_rs
protectedinherited
LinearInterpolation PorousFlowPolyLineSink::_sink_func
protected

mass flux = _sink_func as a function of porepressure or temperature

Definition at line 29 of file PorousFlowPolyLineSink.h.

Referenced by computeQpBaseOutflow(), and computeQpBaseOutflowJacobian().

const unsigned int PorousFlowLineSink::_sp
protectedinherited

The component number (only used if _use_mass_fraction==true)

Definition at line 112 of file PorousFlowLineSink.h.

Referenced by PorousFlowLineSink::computeQpResidual(), PorousFlowLineSink::jac(), and PorousFlowLineSink::PorousFlowLineSink().

const MaterialProperty<Real>* const PorousFlowLineSink::_temperature
protectedinherited

Quadpoint temperature.

Definition at line 121 of file PorousFlowLineSink.h.

Referenced by PorousFlowLineSink::ptqp().

PorousFlowSumQuantity& PorousFlowLineSink::_total_outflow_mass
protectedinherited

This is used to hold the total fluid flowing into the line sink for each time step.

Hence, it is positive for production wells where fluid is flowing from porespace into the line sink (and hence removed from the model)

Definition at line 67 of file PorousFlowLineSink.h.

Referenced by PorousFlowLineSink::addPoints(), PorousFlowLineSink::computeQpResidual(), and PorousFlowLineSink::PorousFlowLineSink().

const bool PorousFlowLineSink::_use_enthalpy
protectedinherited

Whether the flux will be multiplied by the enthalpy.

Definition at line 103 of file PorousFlowLineSink.h.

Referenced by PorousFlowLineSink::computeQpResidual(), PorousFlowLineSink::jac(), and PorousFlowLineSink::PorousFlowLineSink().

const bool PorousFlowLineSink::_use_internal_energy
protectedinherited

Whether the flux will be multiplied by the internal-energy.

Definition at line 106 of file PorousFlowLineSink.h.

Referenced by PorousFlowLineSink::computeQpResidual(), PorousFlowLineSink::jac(), and PorousFlowLineSink::PorousFlowLineSink().

const bool PorousFlowLineSink::_use_mass_fraction
protectedinherited

Whether the flux will be multiplied by the mass fraction.

Definition at line 94 of file PorousFlowLineSink.h.

Referenced by PorousFlowLineSink::computeQpResidual(), PorousFlowLineSink::jac(), and PorousFlowLineSink::PorousFlowLineSink().

const bool PorousFlowLineSink::_use_mobility
protectedinherited

Whether the flux will be multiplied by the mobility.

Definition at line 100 of file PorousFlowLineSink.h.

Referenced by PorousFlowLineSink::computeQpResidual(), PorousFlowLineSink::jac(), and PorousFlowLineSink::PorousFlowLineSink().

const bool PorousFlowLineSink::_use_relative_permeability
protectedinherited

Whether the flux will be multiplied by the relative permeability.

Definition at line 97 of file PorousFlowLineSink.h.

Referenced by PorousFlowLineSink::computeQpResidual(), PorousFlowLineSink::jac(), and PorousFlowLineSink::PorousFlowLineSink().

std::vector<Real> PorousFlowLineGeometry::_xs
protectedinherited
std::vector<Real> PorousFlowLineGeometry::_ys
protectedinherited
std::vector<Real> PorousFlowLineGeometry::_zs
protectedinherited

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