https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NaNInterfaceTestFluidProperties.C
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
11
13
16{
18 params += NaNInterface::validParams();
19
20 params.addClassDescription("Fluid properties for testing NaNInterface");
21
22 return params;
23}
24
29
30Real
32{
33 return getNaN();
34}
35
36void
37NaNInterfaceTestFluidProperties::p_from_v_e(Real, Real, Real &, Real &, Real &) const
38{
39}
40
41std::vector<Real>
registerMooseObject("FluidPropertiesTestApp", NaNInterfaceTestFluidProperties)
void addClassDescription(const std::string &doc_string)
Fluid properties for testing NaNInterface.
std::vector< Real > returnNaNVector() const
Returns a NaN vector of size 2.
NaNInterfaceTestFluidProperties(const InputParameters &parameters)
virtual Real p_from_v_e(Real v, Real e) const override
Interface class for producing errors, warnings, or just quiet NaNs.
std::vector< Real > getNaNVector(const unsigned int &n) const
Throws an error or returns NaNs with or without a warning, with a default message.
Real getNaN() const
Throws an error or returns a NaN with or without a warning, with a default message.
static InputParameters validParams()
Common class for single phase fluid properties.
static InputParameters validParams()