https://mooseframework.inl.gov
Loading...
Searching...
No Matches
HydrostaticPressureFunction.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"
14
19{
20public:
22
24
25 virtual void initialSetup() override;
26
27 using Function::value;
28 virtual Real value(Real t, const Point & p) const override;
29
30protected:
32 const Real _p_ref;
34 const Real _T_ref;
36 const Point & _r_ref;
37
39 Real _rho;
40};
const Real p
virtual Real value(Real t, const Point &p) const
Interface for specifying gravity vector.
Computes hydrostatic pressure from a reference point.
const Real _T_ref
Reference temperature.
const Real _p_ref
Reference pressure.
Real _rho
Density at reference pressure and temperature.
const Point & _r_ref
Reference point.
virtual Real value(Real t, const Point &p) const override
const InputParameters & parameters() const