https://mooseframework.inl.gov
SaturationPressureFunction.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 
16 
21 {
22 public:
24 
26 
27  // To retrieve the fluid properties
28  virtual void initialSetup() override;
29 
30  using Function::value;
31  virtual Real value(Real t, const Point & p) const override;
32  virtual RealVectorValue gradient(Real t, const Point & p) const override;
33 
34 protected:
36  const Function & _T_fn;
39 };
SaturationPressureFunction(const InputParameters &parameters)
Computes saturation pressure from temperature function and 2-phase fluid properties object...
virtual Real value(Real t, const Point &p) const override
const Function & _T_fn
Temperature function.
Base class for fluid properties used with two-phase flow.
virtual RealVectorValue gradient(Real t, const Point &p) const override
virtual void initialSetup() override
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
virtual Real value(Real t, const Point &p) const
const TwoPhaseFluidProperties * _fp_2phase
2-phase fluid properties object