https://mooseframework.inl.gov
SaturationDensityFunction.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
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 "Function.h"
13 #include "FunctionInterface.h"
14 
17 
22 {
23 public:
25 
27 
28  // To retrieve the fluid properties
29  virtual void initialSetup() override;
30 
31  using Function::value;
32  virtual Real value(Real t, const Point & p) const override;
33 
34 protected:
36  const Function & _T_fn;
44  const bool _use_liquid;
45 };
static InputParameters validParams()
const SinglePhaseFluidProperties * _fp_liquid
Single-phase liquid properties.
const Function & _T_fn
Temperature function.
Base class for fluid properties used with two-phase flow.
virtual void initialSetup() override
Common class for single phase fluid properties.
const bool _use_liquid
Set true to use liquid phase; else vapor phase.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const TwoPhaseFluidProperties * _fp_2phase
2-phase fluid properties object
const InputParameters & parameters() const
virtual Real value(Real t, const Point &p) const
Computes saturation density from temperature function.
virtual Real value(Real t, const Point &p) const override
const SinglePhaseFluidProperties * _fp_vapor
Single-phase vapor properties.
SaturationDensityFunction(const InputParameters &parameters)