Skip to content

Extract force values from Lattice(Poiseuille 2D example)

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics Extract force values from Lattice(Poiseuille 2D example)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5838
    achodankar
    Participant

    Hello Developers,
    How do I extract the force values stored in the lattice for the Poiseuille2d case example?

    Thank you.

    Yours sincerely,

    Abhijeet

    #5851
    Adrian
    Keymaster

    You can get the external force vector for a given spatial cell location e.g. via

    
    Cell<T,DESCRIPTOR> cell = superLattice.getBlockLattice(iC).get(iX,iY,iZ);
    Vector<T,3> force = cell.template getField<descriptors::FORCE>();
    
    • This reply was modified 2 years, 8 months ago by Adrian.
    #5853
    achodankar
    Participant

    Hello Adrian,
    This worked perfect.

    Thank you very much!!!

    Yours sincerely,

    Abhijeet

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