www.mooseframework.org
FluidProperties.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 #include "FluidProperties.h"
11 
12 const Real FluidProperties::_R = 8.3144598;
13 
14 template <>
15 InputParameters
17 {
18  InputParameters params = validParams<GeneralUserObject>();
19  params.addParam<bool>(
20  "allow_imperfect_jacobians",
21  false,
22  "true to allow unimplemented property derivative terms to be set to zero for the AD API");
23  params.registerBase("FluidProperties");
24  return params;
25 }
26 
27 FluidProperties::FluidProperties(const InputParameters & parameters)
28  : ThreadedGeneralUserObject(parameters),
29  _T_c2k(273.15),
30  _allow_imperfect_jacobians(getParam<bool>("allow_imperfect_jacobians"))
31 {
32 }
33 
FluidProperties::~FluidProperties
virtual ~FluidProperties()
Definition: FluidProperties.C:34
validParams< FluidProperties >
InputParameters validParams< FluidProperties >()
Definition: FluidProperties.C:16
FluidProperties.h
FluidProperties::FluidProperties
FluidProperties(const InputParameters &parameters)
Definition: FluidProperties.C:27
FluidProperties::_R
static const Real _R
Universal gas constant (J/mol/K)
Definition: FluidProperties.h:42