include/meltpooldg/phase_change/phase_change_data.hpp Source File

Developer Documentation: include/meltpooldg/phase_change/phase_change_data.hpp Source File
Developer Documentation
phase_change_data.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <deal.II/base/parameter_handler.h>
4
6{
10 template <typename number>
12 {
14 struct LiquidGas
15 {
17 number boiling_temperature = 3133.0;
18
20 number reference_pressure = 1.e5;
21
25
28 {
30 bool use_darcy_damping = false;
31
33 number liquidus_temperature = 2200.;
34
36 number solidus_temperature = 1933.;
38
39 void
40 add_parameters(dealii::ParameterHandler &prm)
41 {
42 prm.enter_subsection("phase change");
43 {
44 prm.enter_subsection("liquid gas");
45 prm.add_parameter("boiling temperature",
47 "Boiling temperature at given reference pressure.",
48 dealii::Patterns::Double(0., std::numeric_limits<number>::max()));
49 prm.add_parameter("reference pressure",
51 "Reference pressure for boiling temperature.",
52 dealii::Patterns::Double(0., std::numeric_limits<number>::max()));
53 prm.add_parameter("latent heat of vaporization",
55 "Latent heat of vaporization (J/kg).",
56 dealii::Patterns::Double(0., std::numeric_limits<number>::max()));
57 prm.leave_subsection();
58 prm.enter_subsection("solid liquid");
59 prm.add_parameter("use darcy damping",
61 "Use Darcy damping?",
62 dealii::Patterns::Bool());
63 prm.add_parameter("liquidus temperature",
65 "Liquidus temperature.",
66 dealii::Patterns::Double(0., std::numeric_limits<number>::max()));
67 prm.add_parameter("solidus temperature",
69 "Solidus temperature.",
70 dealii::Patterns::Double(0., std::numeric_limits<number>::max()));
71 prm.leave_subsection();
72 }
73 prm.leave_subsection();
74 }
75 };
76} // namespace MeltPoolDG::Multiphase
A collection of functions for the computation of the interface terms for compressible two-phase flows...
Definition multiphase_interface_kernels.hpp:31
Parameters for the liquid-gas phase change.
Definition phase_change_data.hpp:15
number latent_heat_of_vaporization
Latent heat of vaporization (SI: J/kg)
Definition phase_change_data.hpp:23
number reference_pressure
Reference pressure for boiling temperature (SI: Pa)
Definition phase_change_data.hpp:20
number boiling_temperature
Boiling temperature at given reference pressure (SI: K)
Definition phase_change_data.hpp:17
Parameters for the solid-liquid phase change.
Definition phase_change_data.hpp:28
number solidus_temperature
Solidus temperature (SI: K)
Definition phase_change_data.hpp:36
number liquidus_temperature
Liquidus temperature (SI: K)
Definition phase_change_data.hpp:33
bool use_darcy_damping
Optional darcy damping.
Definition phase_change_data.hpp:30
Collection of parameters related to liquid-gas and solid-liquid phase transitions.
Definition phase_change_data.hpp:12
struct MeltPoolDG::Multiphase::PhaseChangeData::SolidLiquid solid_liquid
void add_parameters(dealii::ParameterHandler &prm)
Definition phase_change_data.hpp:40
struct MeltPoolDG::Multiphase::PhaseChangeData::LiquidGas liquid_gas