Skip to content

BounceBackVelocity

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6070
    sahilbhapkar30
    Participant

    Hello,

    I was trying to implement the getbouncebackVelocity dynamics function.

    BounceBackVelocity<T,DESCRIPTOR>& getBounceBackVelocity(const double rho, const double u[DESCRIPTOR::d])

    I was not able to understand what value should I put in the velocity (u). As my velocity is defined in the vector form using the analytical functor using

    T maxVelocity = converter.getCharLatticeVelocity()/100;
    AnalyticalConst3D<T,T> uTop(0, 0 ,-maxVelocity);

    As the function of BounceBack Velocity is taking a double value, I am confused about the implementation for the velocity.

    Could you help me?

    Thanking you in anticipation,
    Sahil

    #6072
    Adrian
    Keymaster

    I am not sure what you want to accomplish.

    Is it simply using the existing Bounce Back Velocity boundary in a simulation?
    If so you do not need to implement a getBounceBackVelocity function (?) by yourself, instead call e.g.:

    
    setBounceBackVelocityBoundary(superGeometry, 3, omega, sLattice);
    sLattice.defineU(superGeometry, 3, uTop);
    

    in your boundary setup (replace 3 by the material number of your desired bounce back velocity boundary).

    #6073
    sahilbhapkar30
    Participant

    Hello,

    I tried setting the above Boundary conditions and I received the following error.

    error: ‘setBounceBackVelocityBoundary’ was not declared in this scope.

    What would be the reason?

    Thank you,
    Sahil

    #6100
    Adrian
    Keymaster

    This is most likely the same root cause (some mistake in application / compilation setup) as your other issue with setting up bouzidi boundaries. What happens if your write olb::setBounceBackVelocityBoundary?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.