spectralDNS / shenfun

High performance computational platform in Python for the spectral Galerkin method

Home Page:http://shenfun.readthedocs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Time dependent boundary conditions in segments for Rayleigh-Benard 2D

VikasChidananda opened this issue · comments

commented

Hello,

Is there a way to control the boundary conditions in several segments and varying in time, especially for the case of RayleighBenard2D?
I would like to achieve something that's been done as in here.

image

In essence having ,

bcT[1] = (0.2, 0.3, 0.4, 0.5, 0.1)

where the lower Temperature is divided into 5 segments / or any arbitrary segments ?

Hei
Yes, this has been done here. You can use some sympy function that approximates a hat function, and then simply use it as here.

commented

Thank you!