Modelling of two phase flow in packed bed (continued)

In summary: I don't know actually, but I think you will be right about the CO2 depositing temporarily on the bed. What I thought would happen (assuming a bed colder than the freezing point of CO2) was that the ambient CO2 enriched stream would enter the cold bed and immediately the CO2 at the 'front' of the stream would freeze. The pure air would carry on through the bed. Then the newly entering stream - which is at ambient temperature - would vaporise the frozen CO2, and the vaporised CO2 plus the CO2 'behind' it in the stream would now be frozen/deposited slightly further downstream. This process repeats until you
  • #316
Chestermiller said:
This needs to be multiplied by ##y_{in}## for CO2
Change made
Chestermiller said:
This assumes that the mass balance is truly satisfied. The objective of this exercise is to check to see if that is the case. If ##\dot{m}_i(t)## is the total molar flow rate out of tank i at time t, then the total molar amount of CO2 leaving the column up to time t is$$\int_0^t{\dot{m}_n(t')y_{CO2}(t')dt'}$$
To implement the integration in code, can I do a cumulative sum here like this:
$$\int_0^t{\dot{m}_n(t')y_{CO2}(t')dt'} = \sum_{t=0}^t{\dot{m}_{out}y_{CO2,OUT}}$$
which is just calculating the outlet CO2 flow at all times and summing them together

Chestermiller said:
The total molar holdup of CO2 in the gas would be $$M_{CO2} = \sum_{j=1}^{n}(P/RT_j)y_{j,CO2}(A_cdz*\epsilon)\tag{4}$$
Note that the summation is from tank 1 to tank n, the mole fraction of CO2 multiplies the total number of moles, and that you multiply by the void fraction rather than dividing.
Change made
Chestermiller said:
I don't know what this means, but it doesn't sound correct.
In regards to defining the 'fraction of CO2 captured up to a given time'. So we agreed that 'captured' means 'in the solid phase', but what is this a fraction of?

I was thinking:
Fraction of CO_2 captured = ##\frac{M_{CO2,SOLID}}{M_{CO2,SOLID} + M_{CO2,GAS}}## at a given time, which is the moles of CO2 divided by the total mass of CO2 in the packed bed, at a given time

What this definition doesn't capture is the 'fraction of CO2 captured ##\textbf{up to a given time}##. The above definition can only calculate the fraction of CO2 captured ##\textbf{at to a given time}##, so I guess my definition above isn't correct, unless you meant at a given time rather than up to a given time?

I'll post those changed plots once the simulation finishes
 
Engineering news on Phys.org
  • #317
Heres a plot of all the above variables versus time:
Screenshot 2022-08-08 at 11.04.58.png


And zooming in on the total column CO2 gas holdup because its much smaller than the other values:
Screenshot 2022-08-08 at 11.07.42.png
 
  • #318
casualguitar said:
Change made

To implement the integration in code, can I do a cumulative sum here like this:
$$\int_0^t{\dot{m}_n(t')y_{CO2}(t')dt'} = \sum_{t=0}^t{\dot{m}_{out}y_{CO2,OUT}}$$
which is just calculating the outlet CO2 flow at all times and summing them together
Just use the trapezoidal rule, and don't forget to multiply by ##\Delta t##
casualguitar said:
Change made

In regards to defining the 'fraction of CO2 captured up to a given time'. So we agreed that 'captured' means 'in the solid phase', but what is this a fraction of?

I was thinking:
Fraction of CO_2 captured = ##\frac{M_{CO2,SOLID}}{M_{CO2,SOLID} + M_{CO2,GAS}}## at a given time, which is the moles of CO2 divided by the total mass of CO2 in the packed bed, at a given time

What this definition doesn't capture is the 'fraction of CO2 captured ##\textbf{up to a given time}##. The above definition can only calculate the fraction of CO2 captured ##\textbf{at to a given time}##, so I guess my definition above isn't correct, unless you meant at a given time rather than up to a given time?

I'll post those changed plots once the simulation finishes
The fraction of CO2 captured up to any time t would be the amount on the bed at time t divided by the amount entering up to time t.
 
  • #319
casualguitar said:
Heres a plot of all the above variables versus time:
View attachment 305562

And zooming in on the total column CO2 gas holdup because its much smaller than the other values:
View attachment 305563
How can the CO2 moles out exceed the CO2 moles in? You need to multiply by ##\Delta t## in getting moles out.

At short times, how can CO2 holdup on the column exceed the CO2 that entered up to time t?
 
  • #320
Chestermiller said:
Just use the trapezoidal rule, and don't forget to multiply by
Yes ##\Delta t## is 1 second so I think the above applies

Chestermiller said:
The fraction of CO2 captured up to any time t would be the amount on the bed at time t divided by the amount entering up to time t.
Got it, change made (wont post the plot yet because of that issue with the total solid deposited being greater than the total CO2 that entered the system)
Chestermiller said:
How can the CO2 moles out exceed the CO2 moles in? You need to multiply by Δt in getting moles out.
Well if the inlet flow is less dense than the density of the fluid in the tank then we would have a negative accumulation of CO2 i.e. moles out > moles in? ##\Delta t## is 1s here
Chestermiller said:
At short times, how can CO2 holdup on the column exceed the CO2 that entered up to time t?
Ah I see that. Hmm doesn't make sense. Checking my calculations. Actually if I increase the mole fraction of CO2 in the inlet flow then this issue goes away. Checking this now anyway
 
  • #321
casualguitar said:
Well if the inlet flow is less dense than the density of the fluid in the tank then we would have a negative accumulation of CO2 i.e. moles out > moles in?
No freakin' way. There is no CO2 in the column to begin with. So the cumulative amount coming out can never be greater than the cumulative amount you put in.
 
  • #322
Calculation of total moles of CO2 entering column.

Mass flow in = 0.27 kg/m^2-s
Mean molecular weight = (28)(0.75)+(44)(0.2)+(18)(0.05)=30.7
Area of column cross section =##\pi(0.035)^2/4=0.000962\ m^2##
molar flow rate of CO2 in = ##\frac{(270)(0.000962)(0.2)}{30.7}=0.00169\ moles/sec##

At 250 sec, moles CO2 that entered = 0.423 moles. This is consistent with your graph.
 
  • #323
Chestermiller said:
Calculation of total moles of CO2 entering column.

Mass flow in = 0.27 kg/m^2-s
Mean molecular weight = (28)(0.75)+(44)(0.2)+(18)(0.05)=30.7
Area of column cross section =##\pi(0.035)^2/4=0.000962\ m^2##
molar flow rate of CO2 in = ##\frac{(270)(0.000962)(0.2)}{30.7}=0.00169\ moles/sec##

At 250 sec, moles CO2 that entered = 0.423 moles. This is consistent with your graph.
Meaning that the error is in the solid CO2 buildup graph. I'll manually recreate the solid CO2 buildup array and see if it matches the solution from the integrator
 
  • #324
I regenerated the solid CO2 buildup array after the integrator (rather than extracting the solution from the integrator), and plotted the integrator solution (blue) versus the manually recreated solution (orange):
Screenshot 2022-08-09 at 09.02.19.png

The manually created orange one has a better shape in that the buildup declines to zero at a rate closer to that seen in Tuinier et al.

I made the orange array with the assumption that the total solid CO2 on the bed at any time will be equal to the total solid CO2 on the bed at the previous time plus the net desublimation rate across the bed (i.e. summing the desublimation rate for each position), times the surface area available for desublimation in each bed. So something like this:
$$M_{CO2, t} = M_{CO2,t-1} + \sum_{j=1}^nMDR_t*SA$$
where MDR is the molar desublimation rate in a tank and SA is the surface area available for desublimation in the tank
 
  • #325
One further note:

Checking the CO2 captured fraction up to time t using your definition above gives the following output (plotting time vs CO2 captured fraction using both the integrator CO2 buildup and the manually calculated CO2 buildup). I plotted both against the gas temperature (in tank 1) just to give a reference point

Integrator:
Screenshot 2022-08-09 at 09.22.16.png


Manually calculated:
Screenshot 2022-08-09 at 09.21.06.png


The captured fraction for the integrator values goes above 1 so there is something wrong there. The manually calculated version looks somewhat better. Once the temperature approximately exceeds the desublimation temperature the captured fraction starts to reduce

Looks like an error in how I've set up the integrator to calculate the mass buildup
 
  • #326
casualguitar said:
Looks like an error in how I've set up the integrator to calculate the mass buildup
Just looking into this integrator integration a bit more - I'm printing out the value of both dMCO2/dt and MCO2 at each time, to check that ##M_{CO2,t} = M_{CO2,t-1} + dMCO2dt## when MCO2>0 and it doesn't seem to be:
Screenshot 2022-08-09 at 10.03.10.png

There are two issues here. Firstly the rate of deposition is negative at the start, and secondly the above equation doesn't seem to apply anywhere.

Seeing that the sign is negative at the beginning, its possible that these are actually sublimation rates (which would be negative at the beginning), meaning that my logic to deal with MCO2<0 might be incorrect
 
  • #327
casualguitar said:
Just looking into this integrator integration a bit more - I'm printing out the value of both dMCO2/dt and MCO2 at each time, to check that ##M_{CO2,t} = M_{CO2,t-1} + dMCO2dt## when MCO2>0 and it doesn't seem to be:
View attachment 305615
There are two issues here. Firstly the rate of deposition is negative at the start, and secondly the above equation doesn't seem to apply anywhere.

Seeing that the sign is negative at the beginning, its possible that these are actually sublimation rates (which would be negative at the beginning), meaning that my logic to deal with MCO2<0 might be incorrect
keep at it. you'll get there. This is why I suggested checking the overall balances.
 
  • Like
Likes casualguitar
  • #328
Chestermiller said:
keep at it. you'll get there. This is why I suggested checking the overall balances.
Plotting the total solid buildup (somewhat corrected) for both the integrator (blue) and manually (orange), actually shows the integrator perfectly matches the manual recreation up until t=200, and then the manual one starts to decrease while the integrator increases further.
Screenshot 2022-08-09 at 14.48.48.png


Anyway just working through this. Just said I'd post in case a plot like this is indicative of some error type in particular. It may be a sign error at this point (t=200) since they somewhat mirror one another from t=200 through y=0.13 (approx).
 

Attachments

  • Screenshot 2022-08-09 at 14.33.37.png
    Screenshot 2022-08-09 at 14.33.37.png
    1.4 KB · Views: 69
  • #329
I'm not sure how this didn't register with me earlier but yes as you said before ##\dot{m}_{out}## is clearly greater than ##\dot{m}_{in}## and this is not possible

Some thinking out loud here-
To confirm, the equation I'm using to calculate the outlet flowrate is:
$$\dot{m}_{OUT} = \dot{m}_{IN} + \frac{m_j}{T_g}*\frac{\partial T_g}{\partial t} - ((MDR_{CO2} + MLR_{H2O})*SA)$$ where MDR and MLR are the desublimation and liquefaction rates of CO2 and h2o.

So in what cases will ##\dot{m}_{out}## be greater than ##\dot{m}_{in}##? Looking at the terms, ##m_j## and ##T_g## will always be positive, as will \frac{\partial T_g}{\partial t} unless its zero (steady state)

Checking the last term (the ##((MDR_{CO2} + MLR_{H2O})*SA)## bit), printing out the integrator ##MLR_{H2O}## values show that it is positive in all cases in this simulation. This is ok for now because the gas temperature only gets up to 200K. The ##MDR_{CO2}## values start out positive and then go negative as the temperature goes up, as expected.

So to have ##\dot{m}_{out}## < ##\dot{m}_{in}## we need ##MDR_{CO2}## + ##MLR_{H2O}## to be positive? Hmm. So ##MLR_{H2O}## is always positive (for now), therefore all we need is for ##MDR_{CO2}## to be positive, or have a smaller absolute value than ##MLR_{H2O}##

Looking at the equation for these, the general form is:
$$M_i'' = \frac{k_i(Py_i - P(T_I))}{RT}$$
So ##k_i##, ##P## and ##R## are constants, and T is the same for both h2o and co2, so the only questionable terms here are the desublimation/liquefaction pressures and ##y_i##.

Two questions come up at this point - is it not true that varying ##y_{CO2}## will mean that in some cases ##MDR_{CO2}## will be greater than ##MLR_{H2O}##, and sometimes less than? Meaning that ##\dot{m}_{out}## < ##\dot{m}_{in}## is dependent on ##y_{CO2}## being in a certain range?
 
Last edited:
  • #330
casualguitar said:
I'm not sure how this didn't register with me earlier but yes as you said before ##\dot{m}_{out}## is clearly greater than ##\dot{m}_{in}## and this is not possible

Some thinking out loud here-
To confirm, the equation I'm using to calculate the outlet flowrate is:
$$\dot{m}_{OUT} = \dot{m}_{IN} + \frac{m_j}{T_g}*\frac{\partial T_g}{\partial t} - ((MDR_{CO2} + MLR_{H2O})*SA)$$ where MDR and MLR are the desublimation and liquefaction rates of CO2 and h2o.

So in what cases will ##\dot{m}_{out}## be greater than ##\dot{m}_{in}##? Looking at the terms, ##m_j## and ##T_g## will always be positive, as will \frac{\partial T_g}{\partial t} unless its zero (steady state)

Checking the last term (the ##((MDR_{CO2} + MLR_{H2O})*SA)## bit), printing out the integrator ##MLR_{H2O}## values show that it is positive in all cases in this simulation. This is ok for now because the gas temperature only gets up to 200K. The ##MDR_{CO2}## values start out positive and then go negative as the temperature goes up, as expected.

So to have ##\dot{m}_{out}## < ##\dot{m}_{in}## we need ##MDR_{CO2}## + ##MLR_{H2O}## to be positive? Hmm. So ##MLR_{H2O}## is always positive (for now), therefore all we need is for ##MDR_{CO2}## to be positive, or have a smaller absolute value than ##MLR_{H2O}##

Looking at the equation for these, the general form is:
$$M_i'' = \frac{k_i(Py_i - P(T_I))}{RT}$$
So ##k_i##, ##P## and ##R## are constants, and T is the same for both h2o and co2, so the only questionable terms here are the desublimation/liquefaction pressures and ##y_i##.

Two questions come up at this point - is it not true that varying ##y_{CO2}## will mean that in some cases ##MDR_{CO2}## will be greater than ##MLR_{H2O}##, and sometimes less than? Meaning that ##\dot{m}_{out}## < ##\dot{m}_{in}## is dependent on ##y_{CO2}## being in a certain range?
I have no idea what you are doing here. We are looking at the overall mass balance of CO2 in the column, not the instantaneous amounts entering and leaving.

(Total moles of CO2 that entered column up to time t) = (Total moles of CO2 that exited column up to time t) + (Total moles of CO2 accumulated in column at present time t)
 
  • #331
Chestermiller said:
We are looking at the overall mass balance of CO2 in the column, not the instantaneous amounts entering and leaving.
Yes I was also looking at the overall mass balance. However from the plot earlier (where the total CO2 out was greater than the total CO2 in) it seems that it isn't working. Therefore I moved to the instantaneous balance to search for bugs. There is definitely a bug in the instantaneous mass balance and this may be causing the bug in the overall mass balance

In the post above I was looking for the bug in the ##\dot{m}## equation (i.e. why is the outlet flow greater than the inlet flow) in the hope that fixing this would fix the overall mass balance bug. Is this a reasonable approach?
 
  • #332
casualguitar said:
Yes I was also looking at the overall mass balance. However from the plot earlier (where the total CO2 out was greater than the total CO2 in) it seems that it isn't working. Therefore I moved to the instantaneous balance to search for bugs. There is definitely a bug in the instantaneous mass balance and this may be causing the bug in the overall mass balance

In the post above I was looking for the bug in the ##\dot{m}## equation (i.e. why is the outlet flow greater than the inlet flow) in the hope that fixing this would fix the overall mass balance bug. Is this a reasonable approach?
Don't forget to take into account the number of moles of N2 that was in the column to begin with.
 
  • #333
Chestermiller said:
Don't forget to take into account the number of moles of N2 that was in the column to begin with.
Ah so to account for initial N2 I've calculated the molar holdup of gas in the column initially (##m_j##), is there somewhere else I should account for the initial N2?

What I also did this morning for this model was switch to average ##C_p## in the gas phase heat balance rather than just using ##C_{p,N2}##
 
  • #334
casualguitar said:
Ah so to account for initial N2 I've calculated the molar holdup of gas in the column initially (##m_j##), is there somewhere else I should account for the initial N2?
This only has to be done if you are looking at the cumulative in- and out flows, not the instantaneous values.
casualguitar said:
What I also did this morning for this model was switch to average ##C_p## in the gas phase heat balance rather than just using ##C_{p,N2}##
This should not have a major effect.
 
  • #335
Chestermiller said:
This only has to be done if you are looking at the cumulative in- and out flows, not the instantaneous values.

This should not have a major effect.
I think I've narrowed it down to an error with the MDR/MLR functions (molar desublimation/liquefaction rates) i.e. this equation: $$M_i'' = \frac{k_i(Py_i - P(T_I))}{RT}$$

Reason being is the follows - when I set the mass transfer rate equal to zero (##k_i## = 0 for CO2 and h2o), everything works:
- the mole balance works (see below moles in > moles out):
Screenshot 2022-08-12 at 11.17.38.png

The CO2 mole fraction equation works (see below it levels out at 0.2, whereas with mass transfer turned on it levels out at 0.35 which is impossible since the inlet mole fraction is 0.2):
Screenshot 2022-08-12 at 11.18.13.png


Lastly the temperature profiles work (see below the temperature levelling out at the inlet gas temperature, rather than some temperature below this):
Screenshot 2022-08-12 at 11.19.18.png


No other update besides this. I'll investigate the MDR/MLR functions and see what's going on
 
  • #336
casualguitar said:
No other update besides this. I'll investigate the MDR/MLR functions and see what's going on
In regards to calculating the sublimation pressure - I've got a correlation from Perrys working currently. One question on this - what happens to the sublimation pressure above the triple point? Currently I have something like this:

if temp < triple point temp:
-> use the correlation to calculate sublimation pressure
else:
-> return a very large number for the sublimation pressure

Do we have a sublimation rate associated with temperatures above the triple point temperature or is it 'infinitely fast'?
 
  • #337
casualguitar said:
I think I've narrowed it down to an error with the MDR/MLR functions (molar desublimation/liquefaction rates) i.e. this equation: $$M_i'' = \frac{k_i(Py_i - P(T_I))}{RT}$$

Reason being is the follows - when I set the mass transfer rate equal to zero (##k_i## = 0 for CO2 and h2o), everything works:
- the mole balance works (see below moles in > moles out):
View attachment 312602
At long times, why doesn't the CO2 gas holdup plus the total CO2 out equal the total CO2 in?
 
  • #338
casualguitar said:
In regards to calculating the sublimation pressure - I've got a correlation from Perrys working currently. One question on this - what happens to the sublimation pressure above the triple point? Currently I have something like this:

if temp < triple point temp:
-> use the correlation to calculate sublimation pressure
else:
-> return a very large number for the sublimation pressure

Do we have a sublimation rate associated with temperatures above the triple point temperature or is it 'infinitely fast'?
Above the triple point, you use the equilibrium vapor pressure of the liquid. This is very close to the equilibrium vapor pressure for sublimation, so you can use that too. We are not allowing for the CO2 deposited to become liquid.
 
  • #339
Chestermiller said:
Above the triple point, you use the equilibrium vapor pressure of the liquid. This is very close to the equilibrium vapor pressure for sublimation, so you can use that too. We are not allowing for the CO2 deposited to become liquid.
The vapour pressure curve for CO2 is included now. If the mass transfer is turned way down (k_i = 8x10^-10), then the plots look fine
The temperature levels out at the expected temperature:
Screenshot 2022-08-12 at 13.03.34.png

The molar desublimation rate of CO2 looks fine:
Screenshot 2022-08-12 at 14.20.21.png

The rise and fall of the solid CO2 deposited on the bed looks good (the sublimation is rapid and not like previous plots where the sublimation was much slower than the desublimation):
Screenshot 2022-08-12 at 14.21.05.png

Lastly, the mole fraction of CO2 levels out at the correct value of 0.2:
Screenshot 2022-08-12 at 14.22.16.png


However when the mass transfer is turned up (k_i = 8*10^-4) these trends no longer work:
Temperature levels out at a low value:
Screenshot 2022-08-12 at 14.23.11.png


The sublimation is much slower than the desublimation:
Screenshot 2022-08-12 at 14.23.49.png

And lastly the CO2 mole fraction levels out at an impossible value:
Screenshot 2022-08-12 at 14.24.09.png


It seems odd to me that there is a 'cut off' k_i value where the trends are no longer right, because k_i doesn't change the sign of MDR/MLR (molar desublimation/liquefaction rates), just the magnitude.

There is a fault in my MDR/MLR logic which potentially causes large molar flow rates at the inlet. Close to t=0, the y_CO2 value is so low that the MDR is actually negative. Could I add in some correction to say that if the y_CO2 value is extremely low then assume MDR = 0, or similar?
 
  • #340
So initially, the MDR value is very slightly below zero (doesn't look like it below but it is if I zoom in). This negative value actually causes ##\dot{m}_j## to be much higher than ##\dot{m}_{j-1}##, and this molar flow then propagates through the bed
Screenshot 2022-08-12 at 14.29.53.png
 
  • #341
casualguitar said:
I think I've narrowed it down to an error with the MDR/MLR functions (molar desublimation/liquefaction rates) i.e. this equation: $$M_i'' = \frac{k_i(Py_i - P(T_I))}{RT}$$

Reason being is the follows - when I set the mass transfer rate equal to zero (##k_i## = 0 for CO2 and h2o), everything works:
- the mole balance works (see below moles in > moles out):
View attachment 312602
The CO2 mole fraction equation works (see below it levels out at 0.2, whereas with mass transfer turned on it levels out at 0.35 which is impossible since the inlet mole fraction is 0.2):
I calculate a final total CO2 gas holdup of 0.0006 moles, which is roughly half the value on this graph.
 
  • #342
Chestermiller said:
I calculate a final total CO2 gas holdup of 0.0006 moles, which is roughly half the value on this graph.
Exactly yes the reason its half the value is because the temperature profile (with mass transfer turned on) is the following (below), where the temperature levels out at a value approximately half of the correct value (shown further below):
Screenshot 2022-08-15 at 10.36.21.png

Screenshot 2022-08-15 at 10.35.50.png


However to get the correct profile above I have to turn off mass transfer, meaning that the issue is definitely related to the mass transfer.

Looking at the desublimation rate at short time, I see that it is actually negative initially (indicating sublimation). This 1) doesn't seem to make sense as the bed is cold and 2) causes ##\dot{m}_{out}## > ##\dot{m}_{in}## which isn't possible.

So why is there apparently sublimation occurring at short times? Well if (in the equation below) ##Py_i## is less than ##P(T_I)## then this will occur. The issue is that at short times ##y_i## is so small that this equation says there is sublimation happening not desublimation. Is this correct or should I add a further constraint to stop this?

The equation for reference:
$$M_i'' = \frac{k_i(Py_i - P(T_I))}{RT}$$
 
  • #343
casualguitar said:
Exactly yes the reason its half the value is because the temperature profile (with mass transfer turned on) is the following (below), where the temperature levels out at a value approximately half of the correct value (shown further below):
View attachment 312750
View attachment 312749

However to get the correct profile above I have to turn off mass transfer, meaning that the issue is definitely related to the mass transfer.

Looking at the desublimation rate at short time, I see that it is actually negative initially (indicating sublimation). This 1) doesn't seem to make sense as the bed is cold and 2) causes ##\dot{m}_{out}## > ##\dot{m}_{in}## which isn't possible.

So why is there apparently sublimation occurring at short times? Well if (in the equation below) ##Py_i## is less than ##P(T_I)## then this will occur. The issue is that at short times ##y_i## is so small that this equation says there is sublimation happening not desublimation. Is this correct or should I add a further constraint to stop this?

The equation for reference:
$$M_i'' = \frac{k_i(Py_i - P(T_I))}{RT}$$
Let's. try the trick factor that Tuinier et al use, appropriately corrected for our units: ##\frac{m_i}{m_i+0.1}##
 
  • #344
Chestermiller said:
Let's. try the trick factor that Tuinier et al use, appropriately corrected for our units: ##\frac{m_i}{m_i+0.1}##
So we let desublimation as it is, and add in this trick factor for sublimation?

To convert their units (kg/m3) to ours (they use mol/m3) I guess we would just need to multiply each ##m_i## term by ##\frac{1000}{mW}##?

That is interesting though. I had thought that desublimation was dependent on temperature and pressure only. I did not realize that a sufficiently low ##y_i## (and therefore a sufficiently low partial pressure) would mean that sublimation actually occurs

Also a note - I'm using units of pascals for the ##M_i''## equation calculation
 
  • #345
casualguitar said:
So we let desublimation as it is, and add in this trick factor for sublimation?

To convert their units (kg/m3) to ours (they use mol/m3) I guess we would just need to multiply each ##m_i## term by ##\frac{1000}{mW}##?

That is interesting though. I had thought that desublimation was dependent on temperature and pressure only. I did not realize that a sufficiently low ##y_i## (and therefore a sufficiently low partial pressure) would mean that sublimation actually occurs

Also a note - I'm using units of pascals for the ##M_i''## equation calculation
Adding in the fudge factor seems to fix the temperature profile issue, and the other plots look a bit better also. Also the final molar holdup is now 0.006 also:
Screenshot 2022-08-15 at 14.46.37.png

Screenshot 2022-08-15 at 14.46.50.png
Screenshot 2022-08-15 at 14.46.58.png
Screenshot 2022-08-15 at 14.47.09.png


Edit: I'm not sure what the benefit of the fudge factor is though. What is this for? To ensure that sublimation is slightly more inhibited than desublimation?
 
  • #346
casualguitar said:
So we let desublimation as it is, and add in this trick factor for sublimation?
yes
casualguitar said:
To convert their units (kg/m3) to ours (they use mol/m3) I guess we would just need to multiply each ##m_i## term by ##\frac{1000}{mW}##?
I think our units are moles in each tank. We would multiply both numerator and denominator of their factor (including the 0.1 term) by ##\frac{(1000)A_C\Delta z}{molecular\ weight}## to get ours.
casualguitar said:
That is interesting though. I had thought that desublimation was dependent on temperature and pressure only. I did not realize that a sufficiently low ##y_i## (and therefore a sufficiently low partial pressure) would mean that sublimation actually occurs
It doesn't mean this. All this does is make sure that the mass deposited never gets less than -0.1 kg/m^3 (which is not significant). If the deposited mass tries to go negative, we add mass. Their purpose of this factor was just to provide smoothing of the behavior (not to model actual behavior) so that the deposited mass can't stay negative by more than 0.1.
casualguitar said:
Also a note - I'm using units of pascals for the ##M_i''## equation calculation
The P/RT is supposed to be moles/m^3 of gas.
 
  • #347
casualguitar said:
Adding in the fudge factor seems to fix the temperature profile issue, and the other plots look a bit better also. Also the final molar holdup is now 0.006 also:
View attachment 312767
View attachment 312768View attachment 312769View attachment 312770

Edit: I'm not sure what the benefit of the fudge factor is though. What is this for? To ensure that sublimation is slightly more inhibited than desublimation?
No. To avoid in a smooth manner the deposition going negative by more the 0.1 kg/m^3 (insignificant amount). it's a numerical trick.
 
  • #348
Chestermiller said:
I think our units are moles in each tank. We would multiply both numerator and denominator of their factor (including the 0.1 term) by (1000)ACΔzmolecular weight to get ours.
I guess we would just be multiplying the ##m_i## terms by the above factor to convert from kg/m3 to mol/tank, or else the factor would cancel out?
Chestermiller said:
It doesn't mean this.
casualguitar said:
That is interesting though. I had thought that desublimation was dependent on temperature and pressure only. I did not realize that a sufficiently low yi (and therefore a sufficiently low partial pressure) would mean that sublimation actually occurs
When I said this what I meant was that this equation ##M_i'' = \frac{k_i(Py_i - P(T_I))}{RT}## seems to say that sublimation is a function of mole fraction (in addition to P and T), meaning that even with a temperature and pressure below the sublimation temperature, sublimation may still occur if the mole fraction of the species, ##y_i## is sufficiently low. I think anyway.

Chestermiller said:
I think our units are moles in each tank. We would multiply both numerator and denominator of their factor (including the 0.1 term) by (1000)ACΔzmolecular weight to get ours.
Anyway yes in regards to the factor above - we're solving for ##M_{CO2}## (mass of deposited CO2) at each space/time increment so can I simply add this factor to the sublimation equation?: $$trick factor = \frac{M_{CO2}}{M_{CO2} + 0.1}$$

If so, then here's the output with that factor included:

Screenshot 2022-08-16 at 09.34.09.png

Screenshot 2022-08-16 at 09.34.26.png
Screenshot 2022-08-16 at 09.34.41.png


The molar holdup levels out at a value of 0.006 which is what you previously calculated

And the positional plots have similar peaks to the Tuinier data (the sublimation is still slower than it is in Tuinier et al though):

Screenshot 2022-08-16 at 09.48.22.png

Screenshot 2022-08-16 at 09.49.15.png
 
  • #349
casualguitar said:
I guess we would just be multiplying the ##m_i## terms by the above factor to convert from kg/m3 to mol/tank, or else the factor would cancel out?When I said this what I meant was that this equation ##M_i'' = \frac{k_i(Py_i - P(T_I))}{RT}## seems to say that sublimation is a function of mole fraction (in addition to P and T), meaning that even with a temperature and pressure below the sublimation temperature, sublimation may still occur if the mole fraction of the species, ##y_i## is sufficiently low. I think anyway.
No. This only happens to a tiny extent when we use the fudge factor. The idea is to not let the deposition amount become significantly less than 0 as a result of slight numerical overshoot.
casualguitar said:
Anyway yes in regards to the factor above - we're solving for ##M_{CO2}## (mass of deposited CO2) at each space/time increment so can I simply add this factor to the sublimation equation?: $$trick factor = \frac{M_{CO2}}{M_{CO2} + 0.1}$$
I think you mean moles of deposited CO2 here. In any event, the fudge factor should, as I indicated earlier, be $$trick factor = \frac{M_{CO2}}{M_{CO2} + 0.1\frac{(1000)A_C\Delta z}{(molecular\ weight \ of \ CO2)}}$$A corresponding equation applies to water.

This is what it would take to make your calculations equivalent to theirs, at least with regard to the fudge factor.

casualguitar said:
If so, then here's the output with that factor included:

View attachment 312826
View attachment 312827View attachment 312828
casualguitar said:
The molar holdup levels out at a value of 0.006 which is what you previously calculated

And the positional plots have similar peaks to the Tuinier data (the sublimation is still slower than it is in Tuinier et al though):

View attachment 312829
View attachment 312830
You need to work toward (1) using the correct equivalent fudge factors, (2) increasing to 30 tanks, and (3) using our mass transfer parameterization.
 
  • #350
Chestermiller said:
The idea is to not let the deposition amount become significantly less than 0 as a result of slight numerical overshoot.
Got it
Chestermiller said:
I think you mean moles of deposited CO2 here. In any event, the fudge factor should, as I indicated earlier, be trickfactor=MCO2MCO2+0.1(1000)ACΔz(molecular weight of CO2)A corresponding equation applies to water.

This is what it would take to make your calculations equivalent to theirs, at least with regard to the fudge factor.
Ah yes I meant moles, and now I see what you mean. Got it. So you've multiplied all terms by the ##\frac{(1000)A_C\Delta z}{molecular\ weight}## factor. I'll implement this now

So with the correct equivalent fudge factor, and n=30, the output is below
Chestermiller said:
(3) using our mass transfer parameterization.
Are we not already using our mass transfer parameterisation? Or is there something I have left out?

Here is the output:
Screenshot 2022-08-16 at 14.41.24.png

Screenshot 2022-08-16 at 14.41.33.png

The CO2 solid moles buildup looks pretty close to the Tuinier plot. I have one or two ideas as for why the sublimation is slower. I'll look into this.

But yes, what did you mean by 'our mass transfer parameterization' if not this equation: ##M_i'' = \frac{k_i(Py_i - P(T_I))}{RT}##
 

Similar threads

Replies
2
Views
1K
Replies
6
Views
1K
Replies
0
Views
857
Replies
1
Views
1K
Replies
25
Views
2K
Back
Top