Loading [MathJax]/extensions/tex2jax.js
www.mooseframework.org
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
FluidProperties.h
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 #pragma once
11 
12 #include "ThreadedGeneralUserObject.h"
13 
14 // Forward Declarations
16 
17 // The default DualReal size allows functions of many more variables than
18 // common in the FluidProperties module. This makes the computations much
19 // slower than necessary, so use a smaller definition in the FluidProperties
20 // module, FPDualReal, which is suitable for up to five variables.
21 // This is useful for the cases where we wish to use AD to compute the derivatives
22 // rather than hand-coding them in derived classes.
23 typedef DualNumber<Real, DNDerivativeSize<5>> FPDualReal;
24 
25 template <>
26 InputParameters validParams<FluidProperties>();
27 
28 class FluidProperties : public ThreadedGeneralUserObject
29 {
30 public:
31  FluidProperties(const InputParameters & parameters);
32  virtual ~FluidProperties();
33 
34  virtual void execute() final {}
35  virtual void initialize() final {}
36  virtual void finalize() final {}
37 
38  virtual void threadJoin(const UserObject &) final {}
39  virtual void subdomainSetup() final {}
40 
42  static const Real _R;
43 
44 protected:
46  const Real _T_c2k;
49 };
FluidProperties::execute
virtual void execute() final
Definition: FluidProperties.h:34
FluidProperties::~FluidProperties
virtual ~FluidProperties()
Definition: FluidProperties.C:34
FluidProperties::threadJoin
virtual void threadJoin(const UserObject &) final
Definition: FluidProperties.h:38
FluidProperties::subdomainSetup
virtual void subdomainSetup() final
Definition: FluidProperties.h:39
FluidProperties::_T_c2k
const Real _T_c2k
Conversion of temperature from Celsius to Kelvin.
Definition: FluidProperties.h:46
FPDualReal
DualNumber< Real, DNDerivativeSize< 5 > > FPDualReal
Definition: FluidProperties.h:15
FluidProperties::initialize
virtual void initialize() final
Definition: FluidProperties.h:35
FluidProperties::FluidProperties
FluidProperties(const InputParameters &parameters)
Definition: FluidProperties.C:27
validParams< FluidProperties >
InputParameters validParams< FluidProperties >()
Definition: FluidProperties.C:16
FluidProperties::_R
static const Real _R
Universal gas constant (J/mol/K)
Definition: FluidProperties.h:42
FluidProperties::_allow_imperfect_jacobians
const bool _allow_imperfect_jacobians
Flag to set unimplemented Jacobian entries to zero.
Definition: FluidProperties.h:48
FluidProperties
Definition: FluidProperties.h:28
FluidProperties::finalize
virtual void finalize() final
Definition: FluidProperties.h:36