www.mooseframework.org
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 
14 
15 // 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 
26 {
27 public:
29 
31  virtual ~FluidProperties();
32 
33  virtual void execute() final {}
34  virtual void initialize() final {}
35  virtual void finalize() final {}
36 
37  virtual void threadJoin(const UserObject &) final {}
38  virtual void subdomainSetup() final {}
39 
41  static const Real _R;
42 
43 protected:
45  const Real _T_c2k;
48 };
FluidProperties(const InputParameters &parameters)
const bool _allow_imperfect_jacobians
Flag to set unimplemented Jacobian entries to zero.
static InputParameters validParams()
static const Real _R
Universal gas constant (J/mol/K)
virtual ~FluidProperties()
DualNumber< Real, DNDerivativeSize< 5 > > FPDualReal
virtual void finalize() final
virtual void execute() final
virtual void subdomainSetup() final
virtual void threadJoin(const UserObject &) final
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
virtual void initialize() final
const Real _T_c2k
Conversion of temperature from Celsius to Kelvin.