Giter Site home page Giter Site logo

lavalamp_simulation's Introduction

lavalamp_simulation

Simulation of the dynamics of a lava lamp

lavalamp_simulation's People

Contributors

mixpap avatar

Watchers

James Cloos avatar  avatar

lavalamp_simulation's Issues

Analytical calculation of the environmental temperature

We suppose the following: (a) The lamp is cylindrical and fully isolated from the environment except the cap and the bottom of the cylinder.
(b) The bubble contains much less energy than its environment.
(c) There is no fluid movement

$$ \frac{\partial u}{\partial t} = a\nabla^2u $$ and due to cylidrical symmetry, we employ cylindrical coordinates $\rho,\theta,z$. If we further suppose that the heat transfer in all other axes different than z is negligible, we have $u(\rho,\theta,z,t) = u(z,t) $. $$ \frac{\partial u}{\partial t} = a\frac{\partial^2 u}{\partial^2 z} $$ Next, we suppose that $u(z,t) = T(t)U(z)$ and thsi results: $$ \frac{dT}{dt}T^{-1} = a\frac{d^2 U}{d^2 z} U^{-1}$$ so $$ฮค = ฮค_0e^{c_1 t} $$ where $c_1$ ๐‘1 is a separation constant and includes a. For the spatial part, we suppose a solution of the form: $$U(z) \sim e^{izc_2} $$ Thus, $$U(z) = c_A e^{izc_2} + c_B e^{-izc_2}$$ Requiring that the phenomenon remains unchangeable over time, we got $c_1 = 0$. $$ u(0,t) = T_0$$ so $$ c_A + c_B = 1$$ Employing the boundary condition $u(h,t) = T_h $, we got $$ u(h,t) = T_0 (-ic_Asin(hc_2) + cos(hc_2))$$ Also, we need to have real solutions, so $c_A = 0$ From the requirement $u(h,t) = T_h$ we obtain $c_2 = 1/hcos^{-1}(T_h/T_0)$ Putting all together, $$ u(z,t) = T_0cos\left(\frac{z}{h} cos^{-1}(T_h/T_0)\right)$$

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.