Skip to content

Sim4Life

669 Topics 2.2k Posts

Subcategories


  • Installing Sim4Life and configuring licenses

    34 120
    34 Topics
    120 Posts
    G
    Did you do one of the following: • Define the FlexNet environment variable FLEXID_LIBRARY_PATH to point to the location of the dongle shared object, libhasp_linux_x86_64.so. • Define the system environment variable LD_LIBRARY_PATH to point to the location of the dongle shared object libhasp_linux_x86_64.so. ? Could you try to send us the output of lmhostid -flexid? that command should return the dongle id. You can also access the dongle firmware - if it is correctly installed - via the loopback address. On a browser, go to http://localhost:1947/ you should see the characteristics of the dongle. Let us know if it works.
  • Working with CAD models

    58 197
    58 Topics
    197 Posts
    V
    @brown Thank you for the suggestion. I can surface project object now.
  • Working with models from the Virtual Population

    56 265
    56 Topics
    265 Posts
    brynB
    What does it mean "causing trouble"? Do you get an error message, or it generates unexpected results? You probably already know, but you can generate a script by setting up the simulation in the GUI, selecting it and running "To Python" in the context menu. Your script is incorrect. You use only one material settings for all tissues in Duke. However, different tissues (fat, muscle, bone, blood, lung, etc.) have very different properties. To replicate what the GUI does, you probably would want to group all entities with the same material tag (entity.MaterialName), get the material from the database, and create linked material settings: material_settings = emfdtd.MaterialSettings() components = [e for e in xcm.CollectEntities(duke_group.Entities) if e.MaterialName == "Muscle"] mat = database["IT'IS 4.2"]["Muscle"] simulation.LinkMaterialWithDatabase(material_settings, mat) simulation.Add(material_settings, components) Your script may also be wrong, because duke_group.Entities contains a sub-group "Bones". To recursively collect all entities in duke use CollectEntities: import XCoreModeling as xcm duke_all_entities = xcm.CollectEntities(duke_group.Entities) You also want to create ManualGridSettings (with specified grid spacing), or AutomaticGridSettings, and assign the entities. You can then run UpdateGrid simulation.UpdateAllMaterials() simulation.UpdateGrid() simulation.CreateVoxels()
  • FDTD, Low-Frequency, Neuron, Mode-Matching, Flow, Acoustics, etc...

    243 728
    243 Topics
    728 Posts
    A
    Dear ZMT Team, I am currently studying the Temporal Interference tutorial with the SAM Head model, as provided in the Sim4Life documentation (Tutorials/EMLF/LF_Multiport.html#temporal-interference-with-sam-head). I have followed the steps carefully up to the solver stage. However, during the simulation run, I encountered the following warning: Solid X_Electrode (Selected_Electrode): PEC - no edges associated with this material and thus it is disregarded. Also, I’m not sure if the simulation problem affects the analysis. The E-field distribution doesn’t show up, but the tutorial shows it in the figure at the bottom. Could you kindly advise if this warning affects the simulation output, and how I might resolve the issue or verify my results? Thank you very much for your time and support. [image: 1749129382269-c7cdb453-8be8-45f7-b162-a58fdb9c2df0-092feff5f73e01f28fb8dda1e836baef_720.png] [image: 1749129391541-d69cf584-fa96-42a7-95ab-d3e2e9bf7ee9-38acb77f82170de35e115f91dae39ebd_720.png] [image: 1749129421971-4b0d1cc0-444e-4e57-8c07-fff11beb99b0-image.png]
  • Postprocessing results

    109 320
    109 Topics
    320 Posts
    I
    Hello, What voltage values should I input as the amplitudes under Analysis->Simulation Combiner->Channel Parameters if I want to visualize the E-field for a simulation with boundary settings set to a constant flux? Here are the pertinent details and what I've already tried. I am performing an LF-electro ohmic quasi-static simulation with the rhesus macaque (Miss Able) model. I created two electrodes with cylinders to resemble the screw electrodes that we use for epidural ACS in my lab. Under the Simulation->Boundary Conditions->Boundary Settings for the two electrodes, I set the Boundary Type to Flux, with a constant flux of 2.47 mA. Then, I checked the Treat as Port box. I understand that the voltages for the amplitudes under Analysis->Simulation Combiner->Channel Parameters applies to the analysis, so it did not change the constant flux value that I input for the simulation stage. However, I don't know what voltages I should input to reflect the true E-field value for the 2.47 mA. I tried acquiring the appropriate voltages for the simulation combiner amplitudes by outputting the EM potential for each of the electrodes. This yielded a max of 0.707 V. Then, I input that value into the simulation combiner amplitudes field, setting amplitude 1 to 0.707 V and amplitude 2 to -0.707 V. Next, I clicked on EM Sensor Combiner for the overall field, EM E, and Slice Viewer. However, when I tried following these same steps for a constant flux of 1.98 mA, it also exhibited 0.707 V. So, either I'm doing something wrong or I do not understand the parameters that I am using to visualize the E-field properly. I was also wondering if perhaps the electric field was normalized for the simulation combiner, so it is not giving me the true E-field value for a given constant flux. Could you please help me output the accurate E-field value for ACS, given a constant flux of some value (in milliamps)? Thanks, Ian [image: 1749064870293-0314f288-b1f6-42c7-83a9-3f18d86d9fec-image.png] [image: 1749064913368-7f42c3ec-1900-4fe8-a967-8b1491c45760-image.png]
  • Scripting interface for Sim4Life

    134 420
    134 Topics
    420 Posts
    A
    Thank you for your help. I will run it in a previous version.
  • Running Sim4Life over a network

    4 7
    4 Topics
    7 Posts
    ofliO
    Hi, Please allow me to share here the response we sent you via the Sim4Life support email so that other users can benefit from your questions. The default machine provides 500GB of storage, and you are running out of space for this project. If your results require more than 500GB, consider upgrading to a higher-tier machine with greater storage capacity. Alternatively, you could reduce the size of your simulation project by splitting it into multiple smaller simulations. This would allow you to continue using the default tier. Additionally, you might optimize your sensor settings, such as by creating smaller sensors and recording data for specific volumes of interest, rather than using an Overall Field sensor.
  • Why does TRP exceed input power(Antenna)?

    2
    0 Votes
    2 Posts
    664 Views
    SylvainS
    The TRP is computed in a different way than the input power. Both ways are mathematically correct and would both be "exact" if there were no numerical errors. In any FDTD simulation, however, there are spatial (finite grid) or temporal (finite time step) discretization error. What you are seeing in this half-wave dipole example, is that those discretization errors are larger than the precision you would require to distinguish TRP from input power (because the radiation efficiency is very high in this case, there is almost no difference between TRP and input power). To solve this "problem", either you accept that the simulation results are accurate enough for your needs (the warning is a simple consistency check) or you increase the precision of the simulation. You can do so by increasing the grid resolution, the overall convergence level and the resolution of the far-field sensor. This will be computationally expensive, though. To help you understand, you could try to add some lossy media in your (coarse) simulation (e.g. place the dipole next to a phantom or any other dielectric). The simulation will not be more precise, but the numerical errors will be less "obvious" because they will be dwarfed by the losses occurring in the dielectric. The TRP will be lower than the input power and the warning will not be triggered. I hope this helps.
  • The effect of electromagnetic field on the temperature of human tissues

    1
    0 Votes
    1 Posts
    418 Views
    No one has replied
  • S4L is unable to read and load my project

    18
    0 Votes
    18 Posts
    4k Views
    ali.oezenA
    THank you very much for the hints.
  • How to export images from Sim4Life Analysis Results

    image export png jpeg
    5
    0 Votes
    5 Posts
    2k Views
    M
    That works! If it's for a 2D plot, you can always right click and export the data to an excel or csv file and then work with that if you'd prefer
  • Optimal performance

    3
    0 Votes
    3 Posts
    706 Views
    SylvainS
    The full version has the same performance as the Light version: it can just deal with bigger problems. Note that the low-frequency solvers are not GPU-accelerated, so if you are using that the GPU is anyway not used. If you are using the FDTD solver instead, it is accelerated by the GPU but its performance might be severely affected by the frequency of your simulation (the lower the frequency, the more iteration the FDTD method has to do in order to reach convergence). If you are in a regime where the quasi-static approximations hold, I would strongly advise you to use the LF solvers.
  • Editing the excitation signal

    2
    0 Votes
    2 Posts
    546 Views
    SylvainS
    I think your signal was fine, but your settings for the Field Sensor need to be changed.
  • Invalid Bounding Box Error

    2
    0 Votes
    2 Posts
    528 Views
    SylvainS
    2kHz will probably not be feasible in most propagating media, because the wavelength will simply be too large compared to the grid resolution your geometry requires (leading to unreasonably large time steps). You might want to check for e.g. what your grid look like, especially the padding at the boundaries of your computational domain.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • CEM43 / Arrhenius Thermal Damage

    1
    0 Votes
    1 Posts
    327 Views
    No one has replied
  • how to model a bent wire with a fixed length?

    10
    1 Votes
    10 Posts
    2k Views
    S
    Thanks for the code. Actually I need to model some wires with the fixed length, with one part in the brain in different spots and the remaining out of the brain, It takes a long time to model each one and I'm looking for a way to make them in a shorter time. Thanks.
  • grid resolution of wire and insulation

    3
    0 Votes
    3 Posts
    828 Views
    S
    Thanks for your reply.