www.mooseframework.org
TwoPhaseAverageDensityAux.h
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 
10 #pragma once
11 
12 #include "AuxKernel.h"
13 
17 
18 template <>
20 
28 class TwoPhaseAverageDensityAux : public AuxKernel
29 {
30 public:
31  TwoPhaseAverageDensityAux(const InputParameters & parameters);
32 
33 protected:
34  virtual Real computeValue() override;
35 
37  const VariableValue & _p;
39  const VariableValue & _T;
40 
47 };
48 
TwoPhaseAverageDensityAux
Computes the average of the densities of the phases corresponding to a 2-phase fluid properties objec...
Definition: TwoPhaseAverageDensityAux.h:28
TwoPhaseAverageDensityAux::_fp_2phase
const TwoPhaseFluidProperties & _fp_2phase
2-phase fluid properties object
Definition: TwoPhaseAverageDensityAux.h:42
TwoPhaseAverageDensityAux::computeValue
virtual Real computeValue() override
Definition: TwoPhaseAverageDensityAux.C:44
SinglePhaseFluidProperties
Common class for single phase fluid properties.
Definition: SinglePhaseFluidProperties.h:89
validParams< TwoPhaseAverageDensityAux >
InputParameters validParams< TwoPhaseAverageDensityAux >()
Definition: TwoPhaseAverageDensityAux.C:18
TwoPhaseAverageDensityAux::_T
const VariableValue & _T
Temperature.
Definition: TwoPhaseAverageDensityAux.h:39
TwoPhaseAverageDensityAux::_fp_liquid
const SinglePhaseFluidProperties & _fp_liquid
Liquid 1-phase fluid properties object.
Definition: TwoPhaseAverageDensityAux.h:44
TwoPhaseAverageDensityAux::TwoPhaseAverageDensityAux
TwoPhaseAverageDensityAux(const InputParameters &parameters)
Definition: TwoPhaseAverageDensityAux.C:32
TwoPhaseFluidProperties
Base class for fluid properties used with two-phase flow.
Definition: TwoPhaseFluidProperties.h:23
TwoPhaseAverageDensityAux::_p
const VariableValue & _p
Pressure.
Definition: TwoPhaseAverageDensityAux.h:37
TwoPhaseAverageDensityAux::_fp_vapor
const SinglePhaseFluidProperties & _fp_vapor
Vapor 1-phase fluid properties object.
Definition: TwoPhaseAverageDensityAux.h:46