https://mooseframework.inl.gov
Loading...
Searching...
No Matches
FluidProperties.h
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
10#pragma once
11
14
15// Forward Declarations
16
17// The default ADReal 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, FPADReal, 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.
23typedef DualNumber<Real, DNDerivativeSize<5>> FPADReal;
24
26{
27public:
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
43protected:
45 const Real _T_c2k;
48};
DualNumber< Real, DNDerivativeSize< 5 > > FPADReal
const Real _T_c2k
Conversion of temperature from Celsius to Kelvin.
virtual void threadJoin(const UserObject &) final
static const Real _R
Universal gas constant (J/mol/K)
static InputParameters validParams()
const bool _allow_imperfect_jacobians
Flag to set unimplemented Jacobian entries to zero.
virtual void subdomainSetup() final
virtual void finalize() final
virtual void execute() final
virtual void initialize() final
virtual ~FluidProperties()
const InputParameters & parameters() const