pencil-code / pencil-code

A high-order finite-difference code for compressible hydrodynamic flows with magnetic fields and particles
https://pencil-code.org/download.php
196 stars 98 forks source link

Additional boundary drivers #1

Closed iomsn closed 9 years ago

iomsn commented 9 years ago

Currently we have a few different drivers for the boundaries which prescribe a velocity field, e.g. bc_force_axy_sin_cos in boundcond.f90. I see the need for implementing more complex drivers like footpoint motins. Those would require individual parameters like the strength of the driving. However, all the parameters for boundcond.f90 are given in the &run_pars group name. A neat solution would be to move such boundary drivers into one directory and access them like the initial conditions. That way we could have one new group entry, e.g. &boundary_drivers.

wdobler commented 9 years ago

You are aware of the work of Sven Bingert and Philippe Bourdin? If I recall the details correctly, they use the Pencil code with a horizontal velocity field at the lower boundary that is extracted from observations of the solar photosphere. So we already have some sort of footpoint motion. And, yes, if we get more boundary drivers, it would be good to group them together.

iomsn commented 9 years ago

That sounds like what I need. In which modules was that implemented?

jwarne commented 9 years ago

Hi Simon,

you can find the driver from Sven in special/coronae.f90

Cheers, Jörn

Am 07.05.2015 um 12:56 schrieb Simon Candelaresi notifications@github.com:

That sounds like what I need. In which modules was that implemented?

— Reply to this email directly or view it on GitHub.

iomsn commented 9 years ago

Thanks, Jörn. There is also a velocity driver in special/solar_corona.f90. Both seem to be rather similar at a first glance.