I'm working on a simple calculation-model for a hot-water-storage. At the moment I'm stuck on implementing natural convection.
To calculate the temperature I've implemented a simple 1D-model in python. My tank consists of vertically stacked volumes/cells. If the temperature of one cell is higher than that of the cell above, as shown for cell 5 with a temperature of 50°C, I want to calculate the resulting massflow.
So far I tried to implement the buoyancy-model used in modelica (which is calculating a heat-flow instead of a massflow. That's quite ok...). But I can't get it to work properly. The resulting increase in temperature is just massive (and the units don't fit)... The code for the model can be found here: Modelica buoyancy model
A short example for my calculations (default values are for the mean temperature of T4 and T5: 40°C): τ=60s, V=0.1m3, T4=30∘C, T5=50∘C, ρdef=992.21kgm3, cpdef=4178.63JkgK
k=Vρdefcpdefτ=6910WK
Qflow=˙Q=k∗ΔT2=2.7641e6JKs
Q=Qflow∗τ=1.6584e8JK
δT=QcpdefVρdef=400K2
sqrt(δT)=20K=ΔT
So basically the result is my input... Is there a mistake in translating the modelica-code to equations? Or how does modelica get useful results out of this?
My second approach to solve the buoyancy-problem is the use of equations for thermals as in this link at page 171: Plumes and Thermals
But here I'm stuck at calculating the correct buoyancy of cell 5. (I know this sounds simple, but after about 4 days of trying to solve this problem I guess my brain just turned to butter).
When calculation the buoyancy like shown in this image:
And transferring this to my storage-model with cells:
How do I calculate the forces on cell 5? Do I have to consider the density of cells 1 to 3 to calculate the force on the top of cell 5 and cell 6 for the force on the bottom of cell 5?
Or if working with displaced fluid and using the buoyancy forumla B=ρ∞−ρCell5ρ∞gV: Which density should I use for the surrounding fluid? Am I calculating the density by 50% density of cell 4 and 50% density of cell 6?
Thanks so far! And if anyone got a better idea on how to work on the buoyancy calculation: I'm grateful for your advices!
No comments:
Post a Comment