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. Simulations & Solvers
  4. Python API for Debye dispersive model

Python API for Debye dispersive model

Scheduled Pinned Locked Moved Simulations & Solvers
2 Posts 2 Posters 322 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.
  • G Offline
    G Offline
    gbgbha
    wrote on last edited by
    #1

    Hello all,

    I am investigating the effects of blood glucose concentration on bioimpedance spectroscopy. I have a Debye's model with parameters depending on glucose concentration levels. I would like to create and run multiple simulations using the Debye dispersive model, each time with different parameters.

    My question: Is it possible, through the Python API, to incorporate the Debye parameters to my sims?

    Thanks,
    gbh

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Cosimo
      ZMT
      wrote on last edited by
      #2

      Yes,

      You need to import XMaterials and specify the material model to be linear dispersive, as in the following example (which should be easy to extend), where parameters for one Debye pole are assigned.

      import XMaterials as xm
      
      # Adding a new MaterialSettings
      material_settings = emfdtd.MaterialSettings()
      material_settings.ElectricProps.MaterialModel = material_settings.ElectricProps.MaterialModel.enum.LinearDispersive
      
      # Specify settings for dispersive poles
      material_settings.raw.ElectricDispersiveSettings.StartFrequency = 10.e6
      material_settings.raw.ElectricDispersiveSettings.EndFrequency = 100000.e6
      
      material_settings.raw.ElectricDispersiveSettings.Conductivity = 0.
      material_settings.raw.ElectricDispersiveSettings.Permittivity = 11.098
      
      debye_pole_01 = xm.LinearDispersionPole()
      debye_pole_01.Active = True
      
      debye_pole_01.Type = xm.LinearDispersionPole.ePoleType.kDebye
      debye_pole_01[xm.LinearDispersionPole.ePoleProperty.kDebyeAmplitude] = 1.0
      debye_pole_01[xm.LinearDispersionPole.ePoleProperty.kDebyeStaticPermittivity] = 22.67
      debye_pole_01[xm.LinearDispersionPole.ePoleProperty.kDebyeInfinityPermittivity] = 11.098
      debye_pole_01[xm.LinearDispersionPole.ePoleProperty.kDebyeDamping] = 3.234e-11
      
      # Add dispersive poles to the Linear Electric Dispersion Viewer
      material_settings.raw.ElectricDispersiveSettings.Poles = [debye_pole_01]
      
      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