Skip to content

scheduleBackgroundOutputVTK for 2D case

Due to recent bot attacks we have changed the sign-up process. If you want to participate in our forum, first register on this website and then send a message via our contact form.

Forums OpenLB General Topics scheduleBackgroundOutputVTK for 2D case

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10763
    mwkim
    Participant

    Dear OpenLB user and developers:

    I am trying to obtain averaged velocity flow fields in a 2D case.
    Following “channel 3D” example case, I modified my simulation code to get averaged velocity fields.

    However, it seems scheduleBackgroundOutputVTK does not properly work for 2D.
    The code gives below error.

    src/core/superLattice.hh(787): error: class "olb::SuperVTMwriter2D<T, float, T>" has no member "writePVD"
          writer.writePVD(iT);

    Do I miss anything? or scheduleBackgroundOutputVTK is not designed for 2D?

    #10764
    Adrian
    Keymaster

    Yes, currently this only works for 3D cases (which is what we do most of the time). For historical reasons the VTK writer is separate between 3D and 2D which is why this has to be adapted separately (preferably be de-dimensionalizing the VTK writer, which is why it not done yet).

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