ExtremeFLOW / neko

/ᐠ. 。.ᐟ\ᵐᵉᵒʷˎˊ˗
https://neko.cfd/
Other
166 stars 30 forks source link

Adds a Boussinesq source term for boyancy #1154

Closed timofeymukha closed 6 months ago

timofeymukha commented 7 months ago

Formulated as $\beta (T - T{ref}) g$, where $\beta$ defaults to $1/T{ref}$. Reads the following entries:

I modify the RBC example to use the source term. In the example, the forcing is just equal to $T$ in the $z$ direction, which is achieved by manipulating the constants in the source term. Also, it seems possible to increase the timestep by a factor of 100, @adperezm can you confirm?

MartinKarp commented 7 months ago

Have you run the full RBC e.g. to T=250? The time step can be really large in the beginning as you don't have any convection, but will explode after if its not low. I think the transition to turbulence is around T=30 in this case.

timofeymukha commented 7 months ago

Have you run the full RBC e.g. to T=250? The time step can be really large in the beginning as you don't have any convection, but will explode after if its not low. I think the transition to turbulence is around T=30 in this case.

I think I did, but I will double check.

timofeymukha commented 7 months ago

I can run up to 250, but I guess it does not look very turbulent. This is the velocity in y at t=250

image
timofeymukha commented 7 months ago

I seem to get the same on develop though. @adperezm could you comment on how the solution should look :-)?

MartinKarp commented 7 months ago

It should undergo a transition at t=30, at least that was the case when I set it up orignally ;) For me that still happens though, here is the velocity mag for me when I run on develop: Screenshot from 2024-03-06 16-05-08

timofeymukha commented 7 months ago

@MartinKarp @adperezm So, it turns out RBC is tricky, with a big time step it just doesn't transition, and you seem to need 2e-3 to keep it alive once it does. So,, I removed the dt change for the case. It takes at least an hour to run the whole case, so I ran for 10s with develop and the new source term and the solution is identical. So I think we are good

MartinKarp commented 7 months ago

I guess, if the time step is too big the initial disturbances are probably just smoothed out rather quickly. Of course, one can increase the noise in the ic, but yeah there is a trade-off to be made.

timofeymukha commented 6 months ago

@MartinKarp Can we merge?

MartinKarp commented 6 months ago

Yeah, go for it

timofeymukha commented 6 months ago

Yeah, go for it

You need to approve :)

njansson commented 6 months ago

Yeah, go for it

You need to approve :)

@MartinKarp, go, no-go?