Skip to content
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

ZMT zurich med tech

  1. Home
  2. Sim4Life
  3. Simulations & Solvers
  4. SEFT Tutorial Grid Error

SEFT Tutorial Grid Error

Scheduled Pinned Locked Moved Simulations & Solvers
8 Posts 2 Posters 800 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dbsim4
    wrote on last edited by
    #1

    Hello,

    I'm using Sim4Life (Light) for the first time, and I'm trying to complete the Acoustic Solver SEFT Tutorial: ..../Sim4LifeLight/6.2/Documentation/html/Tutorials/Acoustic/SEFT.html

    I also tried the EM FDTD Dipole tutorial, just to see, and the grid seemed to compute successfully there.

    I've started twice from the beginning, and both times, I get stuck when I try to auto-generate the grid (after adjusting the padding as specified). Both times, I get "Grid (Invalid) (1)" as the name, and "Error: Unable to compute grid." in the console.

    Here is a screenshot:
    5b71cd26-a9e3-4d8e-8d33-d95bc11b68fe-image.png

    (I'm also a little confused with the "Materials" section of the tutorial - which is why all 3 are water right now - the 2nd and 3rd were previously unassigned and I was just trying to see if having them set would fix the grid...)

    Anyway, I'd appreciate any suggestions of where to look, and any other debugging gems like the Log and Console...

    Thank you very much!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      montanaro
      wrote on last edited by
      #2

      Very strange... Can you try to right click on grid and then choose something like 'Reset Grid'?

      As for the materials, if they are all the same material, you can place them all under the same group, no need to create 3 different groups

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dbsim4
        wrote on last edited by
        #3

        Thank you! I tried "Reset Grid" but no luck...
        Another update - I also tried running the python tutorial script tutorial_acoustic_seft.py and got a similar grid/voxel error:

        Screenshot 2022-01-10 145040.png

        I also ran the tutorial_emfdtd_dipole_antenna_broadband.py script just to check, and it seemed to pass the Voxeling step successfully, but then ran into other issues I believe connecting to Ares - could that be part of the problem?

        I am using
        Sim4Life light 6.2.2.5984, Python 3.6.8

        Thank you!

        1 Reply Last reply
        0
        • M Offline
          M Offline
          montanaro
          wrote on last edited by
          #4

          Not sure I can help.. Can you try making a smaller grid (make grid step larger) ... I know S4L Light has a grid / voxel size limitation ... maybe you're hitting that?

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dbsim4
            wrote on last edited by
            #5

            Thank you very much!

            Increasing the grid step to 0.6 mm finally got it working - though I'm not sure how that will affect the accuracy. Maybe I am hitting the limits of the Light version like you suggested?

            The EM FDTD Dipole tutorial works fine with the given settings, just for reference.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              montanaro
              wrote on last edited by
              #6

              Pity if the tutorial can't be run with the Light version.. I'd suggest keeping the automatic grid resolution and then decreasing the Setup frequency (which is the sinusoidal source frequency).

              If I remember correctly, for accuracy you need at least ~10 points per wavelength. minimum_wavelength = minimum_speed_of_sound / source_frequency ... So, minimum_grid_step = minimum_wavelength / 10 ... This is automatically calculated with the default grid settings.

              1 Reply Last reply
              0
              • D Offline
                D Offline
                dbsim4
                wrote on last edited by
                #7

                I've gotten the tutorial working with larger step size (on the Light version), and now I'm trying to define my own geometry, and running into grid errors again.

                Is there any way (ie. using the Python console or Log) to get more specific debugging information about why the grid is failing & how to fix it?

                Is there a back-of-envelope way to calculate the max geometry size for the Light version? I.e. can I have a 150x80 mm cylinder of water at 1MHz or is that too large?

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  montanaro
                  wrote on last edited by
                  #8

                  Typically 1 MHz is way too large

                  wavelength = speed of sound / frequency
                  resolution = wavelength / 10

                  so, if you speed of sound in water is 1500 m/s and you want to run a simulation at 100 kHz, then the wavelength is around 15 mm, and the resolution should be at least 1.5mm

                  From the resolution and your domain size you can calculate the grid size

                  Grid Size: max. 20 Mio cells

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Search