Skip to content

Help for Add A Cube in Lattice

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics Help for Add A Cube in Lattice

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1806
    josepedro
    Member

    Hi dear community,rnrnI’m a newer in OpenLB and I have a problem by inserting a cube 2D from indicator way.rnWhen I put the command superGeometry.rename(1, 2, cubo) [line 72]; the message of segmentation fault appear.rnrnMy full code is in this link: https://gist.github.com/josepedro/084bf2bbc421e6482c96rnrnThanks very much!

    #2227
    albert.mink
    Moderator

    Hi Jose,rnrnin fact, I get the ‘debug’ message passou aqui from line ~74.rnThe program executes well up to line 220, with the output <starting simulation…>rnrnGuess the seg fault appears because of ill-posed dynamics or lattice coupling.rnrnAlbert

    #2228
    peterwe
    Member

    Hi Jose,rnrnthe reason for the segmentation fault could be that dynamics have not been defined for every material number.rnrnIn your code the “”defineDynamics”” for material number 2 seems to be missing.rnrnSo I hope defining dynamics to all material numbers in your application solves the problem.rnrnPeter

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