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