Skip to content

allow different theta for wall motion and dP/ds, bulk vel #7

@johnfgibson

Description

@johnfgibson

Is your feature request related to a problem? Please describe.
We currently have one angle, theta, for changing the orientation of the wall velocity and imposed pressure gradient or bulk velocity relative to the computational box. However, there's no reason these shouldn't be independent.

Describe the solution you'd like
I propose splitting -theta into -thetaWall and -thetaBulk, and applying them as follows in dnsflags.cpp

    ulowerwall = -Uwall_ * cos(thetaWall_);
    uupperwall = Uwall_ * cos(thetaWall_);
    wlowerwall = -Uwall_ * sin(thetaWall_);
    wupperwall = Uwall_ * sin(thetaWall_);
    Vsuck = Vsuck_;
    rotation = rotation_;
    dPdx = dPds_ * cos(thetaBulk_);
    dPdz = dPds_ * sin(thetaBulk_);
    Ubulk = Ubulk_ * cos(thetaBulk_);
    Wbulk = Ubulk_ * sin(thetaBulk_);

This issue came up as I started documenting the base/fluctuation decomposition in the channelflow-2 paper. I have a feeling that our nomenclature and input parameters have evolved organically from a simple unidirectional beginning, and will end up needing some revisions to really clarfiy the relation of the input parameters to the math.

Perhaps also we could allow for different frames of reference with respect to moving walls. I found myself wanting this for ASBL, to have a lower wall with speed 0 at y=0 and an upper wall with speed 1 at y=H. Granted this is transformation is pretty trivial, but I think it would still be nice for direct comparisons between near-wall dynamics between channel and ASBL.

Comments?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions