https://mooseframework.inl.gov
WCNSFVTwoPhaseMixturePhysics.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 
13 
15 
22 {
23 public:
27 
29 
30 private:
31  virtual void addFVKernels() override;
32  virtual void addMaterials() override;
33 
35  virtual void setSlipVelocityParams(InputParameters & params) const override;
36 
40  void addPhaseInterfaceTerm();
42  void addPhaseDriftFluxTerm();
43  void addAdvectionSlipTerm();
44 
47 
49  const bool _add_phase_equation;
52 
54  const MooseFunctorName _phase_1_fraction_name;
56  const MooseFunctorName _phase_2_fraction_name;
57 
59  const MooseFunctorName _phase_1_density;
61  const MooseFunctorName _phase_1_viscosity;
63  const MooseFunctorName _phase_1_specific_heat;
65  const MooseFunctorName _phase_1_thermal_conductivity;
66 
68  const MooseFunctorName _phase_2_density;
70  const MooseFunctorName _phase_2_viscosity;
72  const MooseFunctorName _phase_2_specific_heat;
74  const MooseFunctorName _phase_2_thermal_conductivity;
75 
78 
80  const bool _use_drift_flux;
82  const bool _use_advection_slip;
83 };
Creates all the objects needed to solve the Navier Stokes energy equation.
const WCNSFVFluidHeatTransferPhysics * _fluid_energy_physics
Fluid heat transfer physics.
Creates all the objects needed to solve the mixture terms for the weakly-compressible and incompressi...
Creates all the objects needed to solve the Navier Stokes scalar transport equations using the nonlin...
const MooseFunctorName _phase_2_fraction_name
Name of the second phase fraction (usually, dispersed or advected by the liquid)
virtual void setSlipVelocityParams(InputParameters &params) const override
Adds the slip velocity parameters.
const MooseFunctorName _phase_2_specific_heat
Name of the specific heat of the other phase.
const bool _use_advection_slip
Whether to add the advection slip term to each component of the momentum equation.
const MooseFunctorName _phase_2_thermal_conductivity
Name of the thermal conductivity of the other phase.
static InputParameters commonMixtureParams()
const bool _use_external_mixture_properties
Whether to define the mixture model internally or use fluid properties instead.
WCNSFVTwoPhaseMixturePhysics(const InputParameters &parameters)
static void renamePassiveScalarToMixtureParams(InputParameters &params)
const MooseFunctorName _phase_1_density
Name of the density of the other phase.
const bool _add_phase_equation
Convenience boolean to keep track of whether the phase transport equation is requested.
const MooseFunctorName _phase_1_viscosity
Name of the dyanmic viscosity of the other phase.
const MooseFunctorName _phase_1_thermal_conductivity
Name of the thermal conductivity of the other phase.
const InputParameters & parameters() const
const MooseFunctorName _phase_2_density
Name of the density of the other phase.
const MooseFunctorName _phase_1_specific_heat
Name of the specific heat of the other phase.
void addPhaseInterfaceTerm()
Functions adding kernels for the other physics.
const MooseFunctorName _phase_2_viscosity
Name of the dynamic viscosity of the other phase.
const MooseFunctorName _phase_1_fraction_name
Name of the first phase fraction (usually, liquid)
bool _has_energy_equation
Convenience boolean to keep track of whether the fluid energy equation is present.
const bool _use_drift_flux
Whether to add the drift flux momentum terms to each component momentum equation. ...