www.mooseframework.org
VaporMixtureFluidProperties.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
11 
14 {
16 
17  return params;
18 }
19 
21  : FluidProperties(parameters)
22 {
23 }
24 
26 
27 #pragma GCC diagnostic push
28 #pragma GCC diagnostic ignored "-Woverloaded-virtual"
29 
30 Real
31 VaporMixtureFluidProperties::primaryMassFraction(const std::vector<Real> & x) const
32 {
33  return 1 - std::accumulate(x.begin(), x.end(), 0.0);
34 }
35 
36 #pragma GCC diagnostic pop
static InputParameters validParams()
VaporMixtureFluidProperties(const InputParameters &parameters)
const std::vector< double > x
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Real primaryMassFraction(const std::vector< Real > &x) const
Computes the mass fraction of the primary vapor given mass fractions of the secondary vapors...