Skip to content

How to import a 2D model

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8452
    jerry
    Participant

    Dear OpenLB Team,

    Through the user guide document, I learned that 3D models can be read through stlreader, but how can I import complex 2D models into Openlb for calculation? For example, when I obtained a 2D porous media model using Matlab, how should I read it? If possible, I would appreciate a detailed description.

    #8453
    Adrian
    Keymaster

    This depends on what you mean by “obtained a 2D porous media model using Matlab”. i.e. this geometry will be described by some kind of data structure in matlab that you need to output in some format that you can then read into OpenLB. e.g. one possibility would be to export it as a 2D VTI image.

    Another question is what LB model you want to use to represent this geometry in the simulation.

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