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. Analysis & Postprocessing
  4. Import modulation file

Import modulation file

Scheduled Pinned Locked Moved Analysis & Postprocessing
10 Posts 2 Posters 1.1k Views 2 Watching
  • 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.
  • R Offline
    R Offline
    Runner
    wrote on last edited by
    #1

    Dear,

    I want to upload pulse train file created in matlab to the acoustic result.
    I was able to import source file to run the simulation, however the result were unreadable.
    Now I tried to import source file to the simulation result from the modulation option, the file seems to uploaded however its not added to the modulation option to view nor to use in further simulation.
    file extensions were .dat and .txt.

    Appreciate any input.

    Sincerely,

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

      Please show me the first few lines of what your file looks like. Do you have time and pressure points as two separate columns?

      R 1 Reply Last reply
      0
      • M montanaro

        Please show me the first few lines of what your file looks like. Do you have time and pressure points as two separate columns?

        R Offline
        R Offline
        Runner
        wrote on last edited by
        #3

        Hello @montanaro,

        The following are the first few lines of the file

        0,0
        1e-08,0.0420849086054388
        2e-08,0.0840952459318637
        3e-08,0.125956572834934
        4e-08,0.167594714205524
        5e-08,0.208935890402412
        6e-08,0.24990684798423
        7e-08,0.290434989509034
        8e-08,0.330448502171479

        The file is in .txt format.

        Sincerely,

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

          I can look into it later, but have you tried placing a point sensor at the source and looking at the resulting waveform after running the simulation? Please check the final resulting time axis in the point sensor as well to make sure there's no problems with the interpolation from the input waveform to the resulting one (the FDTD simulation will use it's own time step dt, if I remember correctly, based on the simulation's frequency in the solver settings using the CFL criterion).

          Though I can't test it now, maybe I'd change 0,0 to 0.0, 0.0 just to make sure there's no strange issue where it gets an int and expects a float (doubt that's the issue though).

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Runner
            wrote on last edited by
            #5

            Thank you for your reply.
            I am trying different file arrangements.
            While I try different simulation. Will the simulation follow the setup frequency and periods input, or the user the input in the sources?

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

              Setup frequency and period input (yes this is annoying and should be more clearly stated somewhere). User input gets interpolated into the FDTD timing scheme (dt and Tmax)

              Thats why I recommend putting a time domain point sensor at any source location to see what it looks like.

              1 Reply Last reply
              0
              • R Offline
                R Offline
                Runner
                wrote on last edited by
                #7

                Hello @montanaro,

                I was able to run the simulation by changing the commas in the file to spaces.
                Is there another recommended method that Sim4lite recommends besides matlab to generate input files?

                Tried to import the same file to the after simulation in the modulation option, however the file seems unrecognizable.
                I am able to search and upload the file, after the uploading is complete, the file is not there.
                Any recommendation?

                Thank you

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

                  Not sure what you mean ... You mean the input source file? Or the actual simulation input file? I'm not aware of matlab integration and I'm not sure what you mean with modulation option.

                  Note: I was a developer for the acoustic solver several years ago, and whenever I can I try to help people out in the forums, but I'm no longer working on Sim4Life so I'm not aware of some of the newer features.

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    Runner
                    wrote on last edited by
                    #9

                    Hello @montanaro

                    Yes the input file had comma to separate the two columns, changed the comma to space, worked the first time, not anymore.
                    After running the simulation, in the result section we can create modulation input from sim4lite but not from user. I am trying to input file which I dont see the option.

                    I re-ran the simulation with the same file, however got the same unreadable results in sim4lite, but was readable in matlab. I added a point sensor as you suggested and there is a plot.
                    Does Sim4lite accepts pulsed signals to run acoustic simulation?

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

                      Really sorry, I honestly don't understand - I don't know what you mean with modulation and I'm not sure what you mean with using matlab and what input file you are exactly referring to. Maybe some screenshots will help, otherwise maybe contact support

                      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