Skip to content

Simulations & Solvers

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

244 Topics 734 Posts

Subcategories


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

    11 28
    11 Topics
    28 Posts
    AntoninoMCA
    @KK The titration procedure provides a scaling factor that must be applied to the stimulation source (incident E-field, input current, or voltage applied at electrode pairs) in order to initiate an action potential in a fiber or neuron. Here are some examples depending on the stimulation source: Source: Incident E-field (e.g., induced by TMS) Assume the incident electric field is 1 V/m, and the titration procedure yields a titration factor, tf. The threshold E-field is therefore tf [V/m]. If this 1 V/m field results from a coil current rate of change dI/dt = A [A/s], then the threshold dI/dt required is A × tf [A/s]. Source: Applied voltage Let the applied voltage across an electrode pair be V = V₀. This value is also used as the Dirichlet boundary condition in low-frequency (LF) simulations. If the titration factor is tf, the threshold voltage becomes V₀ × tf [V]. Source: Applied current Let the applied current to an electrode pair be I = I₀, typically derived from LF simulations via a current flux integrator. With a titration factor tf, the threshold current is I₀ × tf [A]. The titration factor tf is a dimensionless number that gains physical meaning when applied to the relevant stimulation quantity (electric field, voltage, or current). @LJ was suggesting the correct course of action. I hope this clarification is helpful!
  • How to get isometric or uniform grid?

    Unsolved grid isometric uniform emfdtd
    1
    0 Votes
    1 Posts
    573 Views
    No one has replied
  • Current field simulation

    4
    0 Votes
    4 Posts
    747 Views
    M
    Dear Liu, Yes, in order to see any losses, you need to set at least a conductivity different to 0. I would advice you to check if you set correct electric properties in the material settings. Best
  • CEM43 license

    1
    0 Votes
    1 Posts
    358 Views
    No one has replied
  • Frequency sweep using LF model

    1
    0 Votes
    1 Posts
    261 Views
    No one has replied
  • Loss tangent setting for user defined material

    1
    0 Votes
    1 Posts
    275 Views
    No one has replied
  • Analysis - Empty Coil - Grid Fail

    2
    0 Votes
    2 Posts
    371 Views
    M
    Hello, Do you have any error message appearing in the console? If a grid cannot be created, you have to carefully check the grid settings, and ensure that the number of cells is not the big (if so, you can reduce it by adjusting the padding, for example).
  • Pop-up Alert Stops Stimulation

    3
    0 Votes
    3 Posts
    529 Views
    G
    Dear @habib, Just to inform you that has been solved the bug which was causing this pop-up window to appear, and which stopped the script from continuing until the "Ok" button was pressed: [image: 1649688752403-bug.jpg] However, this bug was caused by the code line, which appears in the image: "analysis.RefreshViewers()" With the new S4L v7.0, this line caused this bug for some reason. After removing it, it was possible to avoid that pop-up window. Just to highlight that finding this bug costed 10+ hours, due to the new update. Best, Guillem
  • LF EQS solver diverged/failed

    divergence low-frequency
    1
    0 Votes
    1 Posts
    500 Views
    No one has replied
  • I'm modeling TEM cell, which is device for generating a electric field

    3
    0 Votes
    3 Posts
    513 Views
    R
    @ofli Thank you for texting. Yes. I set up the similar one. I adjusted the size to the edge of the TEMcell tho.
  • Can Acoustic solver works with Flow solver?

    2
    0 Votes
    2 Posts
    343 Views
    brynB
    I am not aware of any coupling implemented for this combination.
  • Programmatically set source settings (neuro)

    1
    1 Votes
    1 Posts
    225 Views
    No one has replied
  • How to use a script to automatically open an already run simulation

    3
    0 Votes
    3 Posts
    528 Views
    S
    @pyf Hi, This is what I found in the tutorial scripts for thermal simulations. Check the RunTutorial function. It may help. Best. def CreateModel(): ... def CreateEmFdtdSimulation(): ... return em_sim def CreateThermalSimulation(em_sim): ... return thermal_sim def AnalyzeEmAndThermalSimulation(em_sim,thermal_sim): # Create extractor for the two simulation output files em_results = em_sim.Results() thermal_results = thermal_sim.Results() # overall field sensors em_overall_field_sensor = em_results[ 'Overall Field' ] em_overall_field_sensor.Normalization.Normalize = True thermal_overall_field_sensor = thermal_results[ 'Overall Field' ] # Create a slice viewer for the SAR slice_field_viewer_sar = analysis.viewers.SliceFieldViewer() slice_field_viewer_sar.Visualization.Smooth = True slice_field_viewer_sar.Inputs[0].Connect( em_overall_field_sensor['SAR(x,y,z,f0)'] ) slice_field_viewer_sar.Update(0) slice_field_viewer_sar.GotoMaxSlice() document.AllAlgorithms.Add( slice_field_viewer_sar ) #THERMAL slice_field_viewer_t = analysis.viewers.SliceFieldViewer() slice_field_viewer_t.Visualization.Smooth = True slice_field_viewer_t.Inputs[0].Connect( thermal_overall_field_sensor['T(x,y,z,t)'] ) slice_field_viewer_t.Update(0) document.AllAlgorithms.Add( slice_field_viewer_t ) def RunTutorial( path ): document.New() CreateModel() em_sim = CreateEmFdtdSimulation() document.AllSimulations.Add(em_sim) em_sim.UpdateGrid() em_sim.CreateVoxels(path) thermal_sim = CreateThermalSimulation(em_sim) document.AllSimulations.Add(thermal_sim) thermal_sim.UpdateGrid() thermal_sim.CreateVoxels(path) em_sim.RunSimulation(wait=True) thermal_sim.RunSimulation(wait=True) AnalyzeEmAndThermalSimulation(em_sim,thermal_sim) if name == 'main': RunTutorial( project_path )
  • 0 Votes
    2 Posts
    370 Views
    S
    @mingjuan Hi, I recommend updating your driver (https://developer.nvidia.com/opengl-driver).
  • EM LF electro simulation

    1
    0 Votes
    1 Posts
    301 Views
    No one has replied
  • Subgrid for Acoustic Simulation, to limit grid size?

    2
    0 Votes
    2 Posts
    400 Views
    M
    There's no subgridding just a rectilinear / adaptive grid (you can create new grid settings and drag and drop solids or wireframes to these) What you can do (at your own 'risk') is manually set the grid to the resolution you want and not use the automatic grid settings. Typically you want at least 10 points per wavelength (more is better) and the wavelength in air (343 / freq) and water (1500 / freq) are quite different.
  • adding inductive decoupling circuits into the model

    1
    0 Votes
    1 Posts
    483 Views
    No one has replied
  • Pulse-Echo Ultrasound Acoustic Simulation Time Domain

    5
    0 Votes
    5 Posts
    871 Views
    M
    Don't worry about the time step, just make sure it's fine enough, Sim4Life will then interpolate your function into it's own timestep as needed (so, you just need to be careful that your timestep is not too coarse such that Sim4Life won't be able to linearly (I think) interpolate it Essentially, the answer is yes, its sufficient
  • SEFT Tutorial Grid Error

    8
    0 Votes
    8 Posts
    1k Views
    M
    Typically 1 MHz is way too large wavelength = speed of sound / frequency resolution = wavelength / 10 so, if you speed of sound in water is 1500 m/s and you want to run a simulation at 100 kHz, then the wavelength is around 15 mm, and the resolution should be at least 1.5mm From the resolution and your domain size you can calculate the grid size Grid Size: max. 20 Mio cells
  • Time domain acoustic simulation- problem with the number of periods

    5
    0 Votes
    5 Posts
    935 Views
    A
    @montanaro That would be of great help. Thank you so much Annalisa
  • SEFT simulation - problems with parameters

    10
    0 Votes
    10 Posts
    2k Views
    M
    I don't remember so well, but I'm pretty sure it's 1/timestep used to discretize / sample the signal. (Note that this is used to create a list of time points and pressure signals, but the acoustic solver then again reinterpolates this signal to it's own time step that is calculated from the Setup Frequency) Setup Frequency is mostly ignored now that you have user defined source, it was mostly used as a frequency of the sources and for the final FFT analysis. However, if I remember correctly it is used to calculate the time step used in the solver, so make sure it is set to the highest frequency available in your sources That expression was just a random signal to give the user an idea of how to input expressions. It seems in your case you want Element 5 to be sin(2 * pi * 0.5E9 *_t) and Element 6 to be sin(2 * pi * 0.75E9 *_t) if you want to excite one transducer at 500 KHz and the other at 750 KHz User defined sources sets an equation which is then sampled / interpolated at that sampling frequency (fs = 1/dt)