QuickField

A new approach to field modelling

Main >> Applications >> Sample problems >> Capacitor discharge to RL-circuit

Capacitor discharge through coil (RL-circuit). Co-simulation with Ngspice

capacitor discharge through the coil simulation, RLC circuit simulation, SPICE with finite element analysis co-simulation

Charged capacitor is connected to the coil. Coil is represented by inductor L1 connected in series with resistor R1.

Problem Type
Axisymmetric problem of DC magnetics

Geometry
Capacitor discharge through coil Coil is represented by inductor L1 connected in series with resistor R1. D8 d4 10 mm

Electric circuit schematics:

capacitor discharge circuit

Given
Capacitor value C1 = 100 uF
Coil number of turns n = 500
Coil resistance value R1 = 4.5 Ohm
Core permeability μ - B(H) curve.

Task
Calculate transient current in the electric circuit.

Solution
VBA program (Microsoft Excel macros) generates a series of short time steps, with calls to QuickField and Ngspice at each step.
For given current value QuickField analyses the field distribution and the core saturation, and calculates the corresponding coil inductance value (L1). Circuit parameters are then written to a text file. Then Ngspice analyses the discharge process at this time step according to the circuit parameters read from the file (and taking into account the L1 value obtained in QuickField). The current value calculated in Ngspice at the end of the current time step is then submitted to QuickField for the next time step simulation.
Duration and number of the time steps are defined in the VBA program user interface arranged as an Excel table.

Result
Capacitor voltage and current

Coil inductance as a function of current

New version QuickField 6.6

Product
Order
Evaluation request
Editions
Version history
Packages
Components
Programming
Consulting
Applications
Industrial
Educational
Scientific
Sample problems
Success stories
Customers
Support
Online courses
Customer login
Glossary
QuickField help
FAQ
Video
Webinars
Virtual Classroom
Tutorials
All videos
Downloads
QuickField Student Edition
User manual
Data Libraries
Free tools
News
Product News
Events
Publications
Subscription
Contacts
Tera Analysis info
Resellers
Contact us
Online chat
About us