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. UserDefinedFieldNormalizer is marked as DEPRECATED and will be removed in future versions

UserDefinedFieldNormalizer is marked as DEPRECATED and will be removed in future versions

Scheduled Pinned Locked Moved Analysis & Postprocessing
2 Posts 2 Posters 113 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.
  • L Offline
    L Offline
    lucky_lin
    wrote on last edited by
    #1

    UserDefinedFieldNormalizer previously used for normalization is marked as DEPRECATED. Now, I wonder if it's feasible to normalize to 1mA? I noticed that the factor remains 1 across different simulations.

        # Adding a new DataTableHTMLViewer
        output1 = current_extractor1.Outputs["Total Flux(J(x,y,z,f0))"]
        output1.Update()
        comp1 = output1.Data.GetComponent(0)
        flux1 = np.real(comp1)[0]
    
        inputs1 = [em_sensor_extractor1.Outputs["EM E(x,y,z,f0)"]]
        multiplier_filter = analysis.core.Multiplier(inputs=inputs1)
        multiplier_filter.Factor = 1.0 / (flux1 * 1000)  
        multiplier_filter.Name = f"{value1}_{value2}_Normalize"
        multiplier_filter.UpdateAttributes()
        document.AllAlgorithms.Add(multiplier_filter)
        multiplier_filter.Outputs["EM E(x,y,z,f0)"].Update()
    

    b4ff24b6-a7c9-4eb0-a0a9-e1c33d4eb727-image.png

    1 Reply Last reply
    0
    • B Offline
      B Offline
      brown
      ZMT
      wrote last edited by
      #2

      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?

      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