Skip to content

Reply To: Extract force values from Lattice(Poiseuille 2D example)

Due to recent bot attacks we have changed the sign-up process. If you want to participate in our forum please send a message via our contact form.

Forums OpenLB General Topics Extract force values from Lattice(Poiseuille 2D example) Reply To: Extract force values from Lattice(Poiseuille 2D example)

#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 4 years, 6 months ago by Adrian.