https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
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
43void
registerMooseObject("FluidPropertiesApp", ADSurfaceTensionMaterial)
Computes surface tension at some temperature.
const TwoPhaseFluidProperties & _fp_2phase
2-phase fluid properties object
ADSurfaceTensionMaterial(const InputParameters &parameters)
static InputParameters validParams()
ADMaterialProperty< Real > & _surface_tension
Surface tension.
const ADMaterialProperty< Real > & _T
Temperature.
virtual void computeQpProperties() override
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
static InputParameters validParams()
Base class for fluid properties used with two-phase flow.
virtual Real sigma_from_T(Real T) const
Computes surface tension sigma of saturated liquid in contact with saturated vapor.