Skip to content
  • import element inside a group using python

    Python API
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • 1 Votes
    30 Posts
    343 Views
    L

    @bryn Is the 6.8 displayed on the color bar the actual maximum field strength value? I exported the values and found that the maximum is around 5.9 instead. 42fb974e-d830-42c2-8373-84c85ee63339-image.png

  • 0 Votes
    16 Posts
    23 Views
    L

    @halder This is the max modulation value I extracted, and the vast majority of the values are NaN. However, when I checked the slice viewer, I didn't notice any issues. Are these NaN values treated as 0 in the slice viewer? I extracted this value to create a 3D dataset, so I'm a bit confused about how to handle these NaN values.aaf9e88d-cb7e-4fb4-b7db-530bfcbc1b79-image.png

  • How do we put electrodes on the skin surface?

    Analysis & Postprocessing
    16
    0 Votes
    16 Posts
    112 Views
    G

    @bryn @gc00 @halder
    Thank you so much, You've been very helpful !

  • How to create voxels using a script?

    Python API
    1
    0 Votes
    1 Posts
    16 Views
    No one has replied
  • 0 Votes
    1 Posts
    15 Views
    No one has replied
  • Is it possible to use Python API without opening Sim4Life?

    Python API
    4
    0 Votes
    4 Posts
    394 Views
    brynB

    You can open a smash file using

    import s4l_v1 as s4l s4l.document.Open(smash_file_path)

    You can save it using

    s4l.document.Save(smash_file_path)

    You can find a simulation using (assuming you have unique simulation names

    sim = [sim for sim in s4l.document.AllSimulations if sim.Name == "the name of your simulation"][0]

    If you want to load different models (from .sab file or .smash), but don't need to load e.g. simulations (in .smash file), you can import the file

    entities = s4l.model.Import(file_path)

    if you need to reset the document or model because you are accumulating too many entities and memory use is getting too high, you can use e.g.

    # reset the model sl4.model.Clear() # or keep entities, but discard model history import XCoreModeling as xcm xcm.GetActiveModel().ClearHistory() # or reset entire document (reset model, simulations, analysis) s4l.document.New()
  • How to suppress messages in the Python console?

    Python API
    1
    0 Votes
    1 Posts
    20 Views
    No one has replied
  • Head tissue segmentation

    Anatomical Models
    1
    0 Votes
    1 Posts
    31 Views
    No one has replied
  • Brain atlas

    Anatomical Models
    1
    0 Votes
    1 Posts
    19 Views
    No one has replied
  • Location of Simulation Outputs and Voxel Coordinates?

    Python API
    1
    0 Votes
    1 Posts
    25 Views
    No one has replied
  • Export large files to matlab

    Analysis & Postprocessing
    3
    0 Votes
    3 Posts
    339 Views
    L

    @ofli Can the conductivity map after head segmentation be exported?

  • About TI Simulation

    Python API
    4
    0 Votes
    4 Posts
    42 Views
    L

    I want to see the impact of different grid sizes on the simulation, so I cloned a pair of simulations and modified the maximum step size of the grid. However, I found that if I create a new pair of simulations using the same settings, the grid sizes, simulation durations, and results of the new simulations and the cloned simulations are all different. Why does this happen?

  • Sim4Life update v8.2

    Installation & Licensing
    1
    0 Votes
    1 Posts
    21 Views
    No one has replied
  • Volt and sensitivity of transducer sim4lite

    Sim4Life
    2
    0 Votes
    2 Posts
    48 Views
    M

    Assuming a linear relation between voltage and pressure amplitude, you should be able to map the input voltage to the input pressure (I think its 1 MPa by default), and then use this as a scaling factor, but it's unclear to me what you mean with voltage at the focused area.

    What exactly do you mean by transducer sensitivity? You could run additional simulations where you shift the transducer or slightly change some parameters to get a sense of the sensitivity.

  • Simulation outputs

    Simulations & Solvers
    6
    0 Votes
    6 Posts
    88 Views
    A

    Great! Goit it, thank you so much.
    One last question regarding where the simulation outputs are located and saved. The coordinates of the voxelized entities where can be found?

    Thank you so much for your time 🙂

  • White matter anisotropy

    Simulations & Solvers
    8
    0 Votes
    8 Posts
    251 Views
    G

    @bryn Thanks, I found it!

  • 0 Votes
    2 Posts
    55 Views
    ofliO

    Hi @tayjiekai

    sim4life.lite is the student version of our online simulation platform sim4life.science and comes with certain limitations. As indicated by the error message, it does not support a number of neurons exceeding 10. If the limitations of sim4life.lite are too restrictive for your work, I suggest transitioning to the full Sim4Life web version at sim4life.science.

  • Problems when simulating antenna efficiency

    Analysis & Postprocessing
    2
    0 Votes
    2 Posts
    45 Views
    SylvainS

    Hi, you can get additional information by enabling the "Far Field" sensor and then choosing the "Radiation Report" evaluator (see for example the Phased Array Patch Antenna tutorial).
    It will not solve your problem, but might help you get a clearer picture. From what you describe, it's possible you have a very low mismatch efficiency (most of the energy is reflected).
    This could be addressed by improving the way you are modeling your source, or by just ignoring it if it is not important (i.e. if you are not actually simulating the real feed and are only interested in the antenna itself). You would do that by considering the Radiation Efficiency (ratio of Radiated Power to Accepted Power) instead.

  • IsoSurface mesh

    Analysis & Postprocessing
    3
    0 Votes
    3 Posts
    62 Views
    A

    Hello! Thank you for your quick answer 🙂 I'll do that in the meantime