Skip to content
  • 0 Votes
    2 Posts
    132 Views
    AntoninoMCA
    Hi @fangohr, this is a very important question, especially considering the strong electrical anisotropy of muscle tissue. Unfortunately, the whole-body anatomical models provided with Sim4Life do not include DTI information that could be used to assign anisotropic properties. Therefore, if you want to model tissue anisotropy, alternative approaches are required. Some of these may be reasonable when the stimulation is regional, i.e. limited to a small number of muscles. In principle, Sim4Life allows you to model heterogeneous tissue anisotropy in two main ways. 1) Using subject-specific DTI data If you are working with a personalized model (e.g. a head model) and have subject-specific DWI data, you can proceed as follows: a. Reconstruct the DTI data from the DWI, bvec, and bval files (all standard outputs of MRI DTI). b. Convert the DTI into a conductivity tensor field using the Tuch model [1] Both steps are fully implemented in Sim4Life. Step (1) is performed via the Python API (please refer to the “Anisotropic Conductivity Tutorial” in the Examples section), while step (2) can be executed either through the Python API or directly in the GUI. The attached animation shows how processed DTI data can be converted into tissue anisotropy data structure using the Tuch approach, and assigned to WM conductivity. 2) Without DTI data (assumption-based approach) - Using an E-field distribution & Cylindrical Tensor Model If DTI data are not available, an alternative approach is possible, but its validity is entirely your responsibility. Sim4Life allows you to create a conductivity tensor field from a 3D vector field by assuming cylindrical symmetry of the conductivity tensor. In this case, the principal tensor direction is assigned according to the local direction of the vector field, and only the longitudinal (parallel to the fibers) and radial (perpendicular to the fibers) conductivities need to be specified (you can find these values in the IT'IS LF Database (https://itis.swiss/virtual-population/tissue-properties/database/low-frequency-conductivity/) The input vector field can be, for example, an E-field computed with any EM solver in Sim4Life, or a vector field generated via the Python API. One possible strategy would be to create an E-field aligned with the muscle fibers. This requires assumptions about muscle fiber organization — for instance, that fibers follow a diffusion-like process and extend from tendon to tendon. Under such assumptions, fiber directions could be approximated using an E-field computed with the QS-Ohmic Current solver, where the muscle is modeled as a homogeneous tissue and the tendons at the extremities act as Dirichlet boundary conditions. Please note that this is not a ready-to-use recipe. This approach may be reasonable for certain muscles and unsuitable for others, and it represents a strong simplification of the underlying physiology. You will need to define a plausible fiber model and then use Sim4Life to test and validate your assumptions. I hope this helps. If you need further or more specific assistance, please feel free to write again or contact the Sim4Life support team directly. All the best, Antonino [1] Tuch, D. S., et al. Conductivity tensor mapping of the human brain using diffusion tensor MRI. Proceedings of the National Academy of Sciences, 98(20), 11697–11701 (2001). [image: 1769594990533-anisotropy_from_dti_4.gif]
  • Importing Billie_V2_skin_functionalized.sab in sim4life.lite

    T-Neuro
    1
    0 Votes
    1 Posts
    30 Views
    No one has replied
  • 0 Votes
    4 Posts
    2k Views
    T
    hi,bryn. Upon discovering your post, I downloaded the latest software version—9.2.1.19976. However, I was unable to locate the H. Personalised Transcutaneous Spinal Cord Stimulator. Might you kindly advise where I might find this?@bryn
  • Using multiple sources in Neuron Simulation

    Unsolved Simulations & Solvers
    2
    0 Votes
    2 Posts
    214 Views
    C
    When you provide multiple EM-LF simulations as sources to the Neuron solver, the neuron effectively receives the sum of the extracellular fields/potentials generated by the individual simulations (assuming the same modulation pulse is used). This is expected behavior because EM-LF simulations are linear, and therefore their solutions can be superimposed. To verify this behavior, you can use the Field Combiner tool in Sim4Life: First, combine the EM-LF results using the Field Combiner, which applies linear superposition of the fields. Then, use the combined field as a single source for the Neuron simulation. If you compare this setup to a Neuron simulation where the individual EM-LF results are used as separate sources (with the same modulation pulse), the neuron response will be identical. This confirms that, internally, the Neuron solver is operating on the sum of the fields from the different EM-LF simulations. If additional verification is desired, the EM-LF fields can also be interpolated along the neuron spline (for each simulation individually and for the Field Combiner result) to explicitly confirm that the combined field corresponds to the pointwise sum of the individual fields. Note: the field combiner expects the fields to be at the same frequency. If you would like more information about a specific application, or if you would like to share your project with us to receive more targeted feedback, please do not hesitate to contact us at s4l-support@zmt.swiss.
  • 0 Votes
    3 Posts
    190 Views
    S
    Thanks for the suggestion. I will contact the licensing team at s4l-license@zmt.swiss with the relevant details and will update this thread once I receive their guidance.
  • Electro Ohmic Quasi-Stat Normalization

    Sim4Life
    2
    0 Votes
    2 Posts
    175 Views
    C
    When you use the normalization option, Sim4Life: Computes the current flux through an automatically generated iso-potential surface Scales all output quantities so that the resulting current matches the value specified in the Normalize Frequency-Domain Results field The current value you enter represents the phasor amplitude, i.e. the baseline-to-peak current. For more information, please refer to the Sim4Life Manual Section 2.13.7.3.3 Normalization -- Normalization to Current.
  • 0 Votes
    2 Posts
    191 Views
    B
    Hi, there aren't any known issues with the Multiplier tool that would prevent you from scaling your field by any arbitrary value. Is it possible that in your script, you are using the same variable 'output1' for each case and as such are calculating the same value each time? If you are still having issues, could you share your project and script with the support team via s4l-support@zmt.swiss?
  • Sim4Life V9.2 Release

    Announcements
    1
    2 Votes
    1 Posts
    181 Views
    No one has replied
  • 0 Votes
    5 Posts
    450 Views
    S
    @halder Thanks do much, the call was really very useful.
  • 2 Votes
    2 Posts
    444 Views
    brynB
    This is nice. Thanks @Robin-Wydaeghe
  • Importing NEURON .hoc files in Sim4Life

    T-Neuro
    2
    0 Votes
    2 Posts
    322 Views
    G
    Dear Geremia, Here is the procedure I use for S4L: Prerequisites: The Yale Neuron compiler 8.2.6 for Windows https://github.com/neuronsimulator/nrn/releases/tag/8.2.6 You can use newer versions, but this one works best with S4L. Create a directory for a particular neuron structure, at root level: hoc files, asc, etc. a subdirectory called 'mechanisms': all your mod files. From a console, run the Yale Compiler on your 'mechanisms' directory: > nrnivmodl if it succeeds, it will create a nrnmech.dll file. move the nrnmech.dll file to root level (where your hoc files are) and clean the 'mechanisms' directory - all the .c and .o files. Compress into a zip file the main directory (that contains the hoc files, nrnmech.dll and 'mechanisms' dir). Change the extension to .hocz Now, in S4L use the import button to import your new neuron model, your newly created hocz file. Regards, Guillermo
  • 0 Votes
    7 Posts
    1k Views
    T
    @halder I hope this message finds you well. I am currently conducting a temporal interference (TI) simulation using the LF Electro Ohmic Quasi-Static solver in Sim4Life, and I have encountered an issue regarding the electric field distribution at the electrode–skin interface. Here are the specific settings I used: There are four electrodes in total. For the first pair of stimulating electrodes, I assigned PEC material type to the other two electrodes (which are not used for stimulation). The stimulating electrodes were not assigned a material type; instead, I only applied Dirichlet boundary conditions to them. In the voxel settings, the four electrodes were set with priority = 1, and the Duke model with priority = 0. For the second pair of electrodes, I applied the same procedure accordingly. However, during post-processing, I noticed that the region where the electrodes overlap with the skin shows no electric field distribution, which seems physically unreasonable. Could you please advise if there might be an issue with my setup or if there are additional steps required to properly model the electrode–skin contact in TI simulations? Thank you very much for your time and support. I truly appreciate your help.
  • 1 Votes
    3 Posts
    512 Views
    2
    Thank you for your response. Additionally, I would appreciate it if you could tell me how to output the temperatures from the thermal simulation results to text files, spreadsheets, Excel, etc. Ideally, I would like to be able to extract the temperatures at specified coordinates or average values for each model (Lung, Spleen, etc.). If specifying the model is difficult, it would also be acceptable to obtain the post-simulation temperature at specified coordinates.
  • Multiport Simulations Export Huygens Source

    Analysis & Postprocessing
    11
    0 Votes
    11 Posts
    2k Views
    L
    Hi Sylvain, thanks again for your detailed answer. I also talked with Arjama; I guess the best solution is to import both Huygens sources (Even if this means loosing the information about the input power) and to simulate the exposure field not with the BC coil, but with the two imported sources. Then, the other simulations (as in the youtube tutorial) can be linked to the field sensor used when simulating the two Huygens-imported sources.
  • 0 Votes
    2 Posts
    406 Views
    H
    Hi @Kihyun, To create an acoustic simulation, click on “Sources”, then change the excitation signal from “Sinusoidal” to “User Defined.” This will provide an “Expression” field that you can edit as needed. I also recommend checking the Acoustic Tutorial in Section 3.7 of the Sim4Life Manual, which you can access from the top ribbon under “Help.” [image: 1761036820889-sim4life_jvkul06rui.png] [image: 1761036826795-sim4life_q3dc6omg4u.png]
  • Export Huygens Source

    Sim4Life
    2
    0 Votes
    2 Posts
    391 Views
    H
    Hi @MB, The solution would be to export a separate Huygens source for each port individually (i.e., without using the Simulation Combiner). You can then set the amplitudes and phases of each Huygens source when you use them. This approach is quite powerful if you need to simulate multiple amplitude/phase configurations. However, we understand this might be a concern if you have a large number of ports involved. That said, we’re aware of this limitation and are working on adding this feature in an upcoming release.
  • 0 Votes
    5 Posts
    684 Views
    G
    @bryn Thank you very much for your reply. Both the visualization of the electric field in the nerve region and the extraction of the field data as a .mat file have been successfully resolved. I really appreciate your kind support and clear explanations.
  • How to sense values on head.

    Simulations & Solvers
    3
    1 Votes
    3 Posts
    471 Views
    R
    Solved it - Model the electrode as PEC and use the voltage reader
  • 0 Votes
    9 Posts
    4k Views
    M
    Hi everyone, I'm using Sim4Life and currently working with the Optimizer tool. I would like to run the optimization algorithm on a network server using ARES instead of executing it on my local machine. However, I can't seem to find an option in the simulation settings that allows me to select the server as the execution target — the optimizer always defaults to running locally. Is it now possible to run parameter sweeps and optimization tasks on a remote machine in the network (without using a remote desktop session)? If so, how can I configure this in Sim4Life? Thanks in advance!
  • 0 Votes
    3 Posts
    1k Views
    brynB
    Btw, this topic is quite similar https://forum.zmt.swiss/topic/735/the-shape-of-the-t1-image-and-the-shape-of-the-electric-field-are-different