Skip to content
  • Announcements regarding our community

    14 14
    14 Topics
    14 Posts
    ofliO
    We are excited to announce the release of Sim4Life V8.2, designed to enhance your simulation experience. Our latest release is focused on enhanced usability and performance, making advanced simulations more accessible than ever before. Please find more details on the new features of Sim4Life V8.2 here. [image: 1731662563758-s4l_v8-2_news_item.gif] Access it via sim4life.io, sim4life-lite.io, or sim4life.science, or download the latest desktop version from our website. A comprehensive list of Sim4Life V8.2’s new features, improvements, and fixes (web and desktop versions) is provided in our Release Notes. Please send your feedback and suggestions to s4l-support@zmt.swiss.
  • 9 Topics
    15 Posts
    C
    When the stop button is pushed in the task manager, while a simulation is running, it will generate an event that is equivalent to "enforcing" a "convergence reached" state from the solver perspective. That's why the following log will appear inside the Solver-Log tab WARNING: [...] Simulation end request received. The solvers starts to consider this. Steady state detected at iteration x, remaining time steps are y. Simulation performed z iterations. Elapsed time for 'Time Update' was xx:xx:xx wall clock time.
  • 677 Topics
    2k Posts
    brynB
    A user recently asked me: I have a field distribution from an EM solver in the brain. I would like to mask the field in the left amygdala, but I my model does not separate the left/right amygdala. How can this be done? There are different approaches, but here are some suggestions: Split the amygdala in the model BEFORE running the simulation. You can select the amygdala and use the Mesh Tools -> Separate Meshes. Assign the same material property to both (left/right) solid regions and then AFTER running the simulation mask e.g. just the left amygdala. You already have run the simulation. Mask the field to remove everything outside the amygdala, Create a sphere around the left amygdala (e.g. called "Sphere Amygdala_left" Mask the masked field with only the sphere region (by dragging it onto the masking list). This will remove everything outside the sphere, i.e., the field in the right amygdala. Here is the second option in code: simulation_extractor = simulation.Results() # Add a EmSensorExtractor em_sensor_extractor = simulation_extractor["Overall Field"] em_sensor_extractor.FrequencySettings.ExtractedFrequency = u"All" document.AllAlgorithms.Add(em_sensor_extractor) # Add a FieldMaskingFilter inputs = [em_sensor_extractor.Outputs["EM E(x,y,z,f0)"]] field_masking_filter = analysis.core.FieldMaskingFilter(inputs=inputs) field_masking_filter.UpdateAttributes() for id, name in zip(field_masking_filter.MaterialIds(), field_masking_filter.MaterialNames()): field_masking_filter.SetMaterial(id, name == "Amygdala") field_masking_filter.UpdateAttributes() document.AllAlgorithms.Add(field_masking_filter) # Add a second FieldMaskingFilter inputs = [field_masking_filter.Outputs["EM E(x,y,z,f0)"]] field_masking_filter_2 = analysis.core.FieldMaskingFilter(inputs=inputs) field_masking_filter_2.UpdateAttributes() for mat in field_masking_filter_2.MaterialIds(): field_masking_filter_2.SetMaterial(mat, False) field_masking_filter_2.SetEntities([model.AllEntities()["Sphere Amygdala_left"]]) field_masking_filter_2.UpdateAttributes() document.AllAlgorithms.Add(field_masking_filter_2) # Add a SliceFieldViewer inputs = [field_masking_filter_2.Outputs["EM E(x,y,z,f0)"]] slice_field_viewer = analysis.viewers.SliceFieldViewer(inputs=inputs) slice_field_viewer.Data.Mode = slice_field_viewer.Data.Mode.enum.QuantityComplexModulus slice_field_viewer.Data.Component = slice_field_viewer.Data.Component.enum.ComponentsAll slice_field_viewer.Slice.Index = 23 slice_field_viewer.Update() document.AllAlgorithms.Add(slice_field_viewer) https://youtu.be/J2dERMnzNoA
  • 0 Topics
    0 Posts
    No new posts.
  • Got a question? Ask away!

    13 27
    13 Topics
    27 Posts
    No new posts.