Skip to content

Simulations & Solvers

271 Topics 805 Posts

FDTD, Low-Frequency, Neuron, Mode-Matching, Flow, Acoustics, etc...

Subcategories


  • FDTD, Low-Frequency, Neuron, Mode-Matching, Flow, Acoustics, etc...

    16 40
    16 Topics
    40 Posts
    C
    Hello, To use multiple instances of the same HOC file in a single simulation, the neuron model must be defined as a HOC template (see Manual section 2.13.4.7.2, “HOC Templates”). In a non-templated HOC file, section names are defined globally. Loading the file more than once therefore creates duplicate section names, which NEURON does not permit. A template gives each neuron instance its own namespace, allowing multiple instances to be created and connected without naming conflicts. Please also ensure that the HOC template meets Sim4Life’s compatibility requirements, including matching the file and template names and placing the compiled mechanisms in the same folder as the HOC file.
  • 0 Votes
    3 Posts
    2k Views
    B
    If you click on Network Analysis in your Analysis tree, what is your Reference Impedance? It is set to 50 ohms by default, but you have change it based on the Input Impedance for the coil before plotting the S11 curve. Plot the complex Input Impedance. At resonance, the imaginary part will be zero (the circuit is purely resistive). So at the desired resonant mode / frequency, you should find the corresponding real value, and set this value as the reference impedance to plot |S11|. [image: 1714032407782-a7146e86-302b-43e7-9dd1-9aac7dc76ccb-image.png] [image: 1714032424033-6f536c46-f9f2-4d5a-b787-cfdb97521404-image.png] [image: 1714032432837-5730b440-37ea-4190-824e-1fac4e45155a-image.png]
  • Cannot run tutorial

    Solved simulation
    3
    0 Votes
    3 Posts
    2k Views
    J
    Thank you very much. This fixed the issue. This was related to Ares also.
  • Convergence Level in S4L

    2
    0 Votes
    2 Posts
    1k Views
    B
    A simulation can end in a couple different cases: If the specified level of convergence is reached, or if the specified number of periods are simulated. In the case of that tutorial, the simulation is set to run for 15 periods, and so it ended before a -50 dB convergence was reached. Convergence is a spectrum, and the level of convergence required for a given application is up to the user's discretion.
  • Orientation of antennas affect simulation results

    4
    2
    0 Votes
    4 Posts
    2k Views
    V
    Thanks Ofi. How can I fix this or is this something I need to account for?
  • tutorial not running

    1
    0 Votes
    1 Posts
    749 Views
    No one has replied
  • FDFD solver tutorials

    1
    0 Votes
    1 Posts
    709 Views
    No one has replied
  • Thermal external input file

    1
    0 Votes
    1 Posts
    706 Views
    No one has replied
  • Modeling Ferrite in an FDTD Simulation

    2
    0 Votes
    2 Posts
    1k Views
    ofliO
    Hi @arc Please check "Console" window (open it via menu VIEW | Console if it is not open) to see what kind of error you are getting. The reason for failed simulation might be related to something else. You can easily test with an existing tutorial example. For example, open Dipole Antenna Tutorial, model a rectangular brick next to the dipole, clone one of the existing simulation settings and drag&drop this new brick into the simulation set its material such that rel/ Permeability o 1e4 generate grid, voxel and run to see if it also fails I hope it helps.
  • Python API for Debye dispersive model

    2
    0 Votes
    2 Posts
    1k Views
    C
    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]
  • Ohmic QS simulation with anisotropic material fails

    2
    3
    1 Votes
    2 Posts
    1k Views
    B
    I suspect that this is because the grid from your LF simulation does not match the grid that you use in your isotropic and anisotropic simulations. The isotropic simulation runs fine because it does not use your cache file. The anisotropic simulation has stored those conductivity values expecting a specific grid. Try right clicking on the grid settings folder in the simulation from which you are creating your anisotropy tensor, select "Copy Grid Configuration", then "Paste Grid Configuration" on the anisotropic simulation. If you want to include features in your anisotropic simulation that you don't don't want to have simulated in your initial LF simulation, you can still include include objects in your initial simulation so that they are considered for the gridding without assigning them material properties, using them as a boundary condition or voxeling them. Just drag the object directly into the grid settings folder. That way your grid can always match.
  • FDTD simulation failure in sensor post-processing stage

    2
    0 Votes
    2 Posts
    1k Views
    ofliO
    Hi @yiyang did it happen with one particular simulation project or does it always happen? Please (if you can) share the project with Sim4Life Application team via sending an email to s4-support@zmt.swiss to check. Thanks
  • -1 Votes
    1 Posts
    826 Views
    No one has replied
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • Acoustic simulation

    2
    0 Votes
    2 Posts
    1k Views
    M
    We use standard units in the acoustic solver, which means we're solving the wave equation in pressure which has units of Pa. Note though that the acoustic equation is Linear (careful, this doesn't apply to the nonlinear solver), which means that you can arbitrarily scale the input signal by a scalar and the output (in pressure) will be exactly the same and scaled by that same constant. (You need to be careful when you consider energy related quantitites which are something something pressure squared) Essentially, find the scaling factor between pressure and voltage (assuming linearity), then run your simulation with an arbitritrary amplitude and then scale the pressure output.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Import Voxels - How to Assign Materials?

    Solved
    6
    0 Votes
    6 Posts
    4k Views
    D
    @dbsim4 Answering my own question: In the Modelling tab (not simulation), each imported label/voxel type can be assigned a material in the Controller window. Auto Assign seems to work decently well if the materials in the file are well named. Probably should be done before dragging the model into the Simulation.
  • 0 Votes
    7 Posts
    3k Views
    J
    @montanaro Thank you! The acoustic reflection simulation is now behaving and giving results which map to what you'd expect. Thank you so much for helping! Jean
  • PdhAddCounter for processor total failed

    1
    0 Votes
    1 Posts
    687 Views
    No one has replied
  • Sensors placement

    1
    0 Votes
    1 Posts
    617 Views
    No one has replied
  • Running the simulation causes the software to hang

    1
    0 Votes
    1 Posts
    671 Views
    No one has replied