https://mooseframework.inl.gov
ADSurfaceTensionMaterial.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 
12 
13 registerMooseObject("FluidPropertiesApp", ADSurfaceTensionMaterial);
14 
17 {
19 
20  params.addRequiredParam<MaterialPropertyName>("T", "Temperature material property");
21  params.addRequiredParam<MaterialPropertyName>("surface_tension",
22  "Name to give surface tension material property");
23 
24  params.addRequiredParam<UserObjectName>("fp_2phase",
25  "Two-phase fluid properties user object name");
26 
27  params.addClassDescription("Computes surface tension at some temperature");
28 
29  return params;
30 }
31 
33  : Material(parameters),
34 
35  _T(getADMaterialProperty<Real>("T")),
36  _surface_tension_name(getParam<MaterialPropertyName>("surface_tension")),
37  _surface_tension(declareADProperty<Real>(_surface_tension_name)),
38 
39  _fp_2phase(getUserObject<TwoPhaseFluidProperties>("fp_2phase"))
40 {
41 }
42 
43 void
45 {
47 }
static InputParameters validParams()
ADSurfaceTensionMaterial(const InputParameters &parameters)
registerMooseObject("FluidPropertiesApp", ADSurfaceTensionMaterial)
const TwoPhaseFluidProperties & _fp_2phase
2-phase fluid properties object
void addRequiredParam(const std::string &name, const std::string &doc_string)
Base class for fluid properties used with two-phase flow.
unsigned int _qp
const ADMaterialProperty< Real > & _T
Temperature.
static InputParameters validParams()
ADMaterialProperty< Real > & _surface_tension
Surface tension.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void computeQpProperties() override
void addClassDescription(const std::string &doc_string)
Computes surface tension at some temperature.
virtual Real sigma_from_T(Real T) const
Computes surface tension sigma of saturated liquid in contact with saturated vapor.