Mushy Layer  1.0
phaseDiagram.H
1 #ifdef CH_LANG_CC
2 /*
3  * _______ __
4  * / ___/ / ___ __ _ / / ___
5  * / /__/ _ \/ _ \/ V \/ _ \/ _ \
6  * \___/_//_/\___/_/_/_/_.__/\___/
7  * Please refer to Copyright.txt, in Chombo's root directory.
8  */
9 #endif
10 
11 #ifndef _PHASEDIAGRAM_H_
12 #define _PHASEDIAGRAM_H_
13 
14 #include <cmath>
15 
16 #include "AMR.H"
17 #include "memtrack.H"
18 #include "parstream.H"
19 #include "ParmParse.H"
20 #include "MushyLayerParams.h"
21 
22 #include "NamespaceHeader.H"
23 
24 void updateEnthalpyVariables(LevelData<FArrayBox>& HC,
25  LevelData<FArrayBox>& temperature, LevelData<FArrayBox>& compositionLiquid,
26  LevelData<FArrayBox>& compositionSolid, LevelData<FArrayBox>& porosity,
27  LevelData<FArrayBox>& enthalpySolid, LevelData<FArrayBox>& enthalpyLiquid,
28  LevelData<FArrayBox>& enthalpyEutectic,
29  MushyLayerParams a_params);
30 
32 void updateEnthalpyVariables(LevelData<FArrayBox>& HC,
33  LevelData<FArrayBox>& theta, LevelData<FArrayBox>& compositionLiquid,
34  LevelData<FArrayBox>& compositionSolid, LevelData<FArrayBox>& porosity,
35  MushyLayerParams a_params);
36 
38 void updateEnthalpyVariables(LevelData<FArrayBox>& enthalpy, LevelData<FArrayBox>& composition,
39  LevelData<FArrayBox>& theta, LevelData<FArrayBox>& compositionLiquid,
40  LevelData<FArrayBox>& compositionSolid, LevelData<FArrayBox>& porosity,
41  MushyLayerParams m_parameters);
42 
43 
45 void updateEnthalpyVariables(LevelData<FArrayBox>& enthalpy, LevelData<FArrayBox>& composition,
46  LevelData<FArrayBox>& theta, LevelData<FArrayBox>& compositionLiquid,
47  LevelData<FArrayBox>& compositionSolid, LevelData<FArrayBox>& porosity,
48  LevelData<FArrayBox>& enthalpySolid, LevelData<FArrayBox>& enthalpyLiquid,
49  LevelData<FArrayBox>& enthalpyEutectic,
50  MushyLayerParams m_parameters );
51 
52 
53 //Real computePorosity(Real H, Real a_C, Real H_s, Real H_l, Real H_e, MushyLayerParams a_params);
54 //Real computeCl(Real H, Real a_C, Real H_s, Real H_l, Real H_e, MushyLayerParams a_params);
55 //Real computeCs(Real H, Real a_C, Real H_s, Real H_l, Real H_e, MushyLayerParams a_params);
56 //Real computeTemperature(Real H, Real a_C, Real H_s, Real H_l, Real H_e, MushyLayerParams a_params);
57 
59 Real computePorosity(Real H, Real C, Real compositionRatio, Real specificHeatRatio,
60  Real stefan, Real waterDistributionCoeff, Real heatCapacityRatio,
61  Real thetaEutectic, Real ThetaEutectic);
63 Real computeTemperature(Real H, Real C, Real compositionRatio, Real specificHeatRatio,
64  Real stefan, Real waterDistributionCoeff, Real heatCapacityRatio,
65  Real thetaEutectic, Real ThetaEutectic);
66 
68 Real computePorosityMushyLayer(Real H, Real a_C, Real compositionRatio, Real specificHeatRatio,
69  Real stefan, Real waterDistributionCoeff);
70 
72 void computeBoundingEnergy(const Real H, const Real C, Real& H_s, Real& H_l, Real& H_e,
73  const Real heatCapacityRatio, const Real stefan, const Real compositionRatio,
74  const Real waterDistributionCoeff,
75  const Real thetaEutectic, const Real ThetaEutectic);
76 
78 void computeBoundingEnergy(const LevelData<FArrayBox>& a_H, const LevelData<FArrayBox>& a_C,
80  MushyLayerParams a_params);
81 
83 void computeEnthalpyVars(const Real H, const Real Theta, Real&porosity, Real& theta, Real& ThetaL, Real& ThetaS,
84  const Real H_s, const Real H_l, const Real H_e,
85  const Real specificHeatRatio, const Real Stefan,
86  const Real compositionRatio, const Real waterDistributionCoeff,
87  const Real thetaEutectic, const Real ThetaEutectic);
88 #include "NamespaceFooter.H"
89 
90 #endif
double Real
Class to handle the physical parameters of a mushy layer simulation.
Definition: MushyLayerParams.h:175