Thursday, 10 April 2008
Microwave example with FreeFEM++
One example with microwave is they ex 3.11 of their doc. it is solving Helmholtz equation, or should I say a particular case of the Helmhotz equations.
They also use the program to solve the thermal dissipation inside the box.(quite clever)
Saturday, 23 February 2008
FInite Element Method overview
The FEM can be used to calculate the field inside a space.
but first you need to define:
- the boundary conditions which will helps to resolve the unknown element of the differential solution.
- the mesh structure (or sometimes called triangulation) of studied surface or volume.(Series of triangle for 2D meshing or series of tetrahehra or pyranids for 3D meshing)
To program it you will need to find a proper way to create the mesh...
freeFEM++ or getFEM libs can do most of the work for you, but first we need to understand how they program is working....
Wednesday, 20 February 2008
Open source EM simulator, a difficult task
But the task is not as easy as it seems by just putting available open source libraries to the Qucs platform.
I described below the main directions to start such an project.
1) The core of the EM simulator /the EM engine(s)
The core of EM simulator is separate from the rest of the QUCS program
For more stability one task one program is better.
The core engine should work on the Maxwell's equation using appropriate methods.
The most general methods are FEM and FDTD, then MoMs and TLM ...
And the use of the correct method is depending of the problem to solve.
Here is a list of main methods used for EM simulator and their possible simulators:
- Finite Element Method (FEM):
- Ansoft HFSS
And available source:
- GetFEM lib (LGPL) http://home.gna.org/getfem/getfem_intro.html for FEM also allows Matlab interface
- lib of “fenic project”. http://www.fenics.org/wiki/FEniCS_Project
- Freefem3D (GPL) http://www.freefem.org/
- Salome (LGPL) + code_aster (GPL)http://www.salome-platform.org/home/presentation/overview/ and http://www.code-aster.org
- Openfem (LGPL) http://www-rocq.inria.fr/OpenFEM/Old/index.html
- FELT (GPL) http://felt.sourceforge.net/
- Finite Difference Time Domain (FDTD):
Commercially use by:
- CST Microwave Studio (3D)
And available source:
- MEEP- C++ lib (GPL) of: http://ab-initio.mit.edu/wiki/index.php/Meep A well documented package of MIT with no graphical interface.
Commercially use by:
- Ansoft Designer (2.5D),
- some NEC based programs
- C++ lib (GPL) of: NEC http://www.physics.otago.ac.nz/px/research/electronics/open-source-code/nec2/ note: NEC code does not include planar circuit computation.
- Eigenmode solvers:
Commercially use by:
- CST Microwave Studio
- Ansoft HFSS
Commercially use by:
- MAFIA
- Transmission Line Matrix:
Available source:
- yatpac(open source) C++ lib (GPL) (www.yatpac.org) Good for EM simulation at microstrip line level.
2) Parallel computing or distributed computing.
Available source:
- Mumps package: http://mumps.enseeiht.fr/. public domain. Packaging could be difficult.
other solver
- SUPER LU (BSD) including MPI http://crd.lbl.gov/~xiaoye/SuperLU/
- UMFPACK (mono)http://www.cise.ufl.edu/research/sparse/umfpack/
3) Management tools
“git” may be good but I don't know any repository servers which use it.
so SVN would be a more popular choice (like on sourceforge).
4) Compiler related
For the core autoconf/automake seems to be the way to do it.
Cmake may also be an option.
to be with QT (qt3 or qt4)
Could use the openGL lib of QT or mesa library (http://www.mesa3d.org/ )
Also We could use something like “paraview” http://www.paraview.org/New/index.html for the graphic in 3D, which also has QT support.
6) Conclusion
My first conclusion would be to start on GetFEM or MEEP to understand well their possibilities and limits.
Then as EM simulator are deeply link to space geometry we will need to integrate it with an openGL interface.
I will try to update this link along the way.
Thanks
and long live QUCS...
Monday, 3 December 2007
Qucs and KiCAD, a great combination
This software gives you the base of a circuit simulator, with examples, technical papers and help which can be downloaded from the QUCS site. It 's very easy to learn, and you also have the opportunity to see what is under the engine, giving researcher an tool where they could add up their contribution.
Another open source software for people wanting to build some PCB is KiCAD, this software may need little more time for the user to understand and use but it can do some very nice PCBs.
When using KiCAD you first need to build your schematic and then import it to your layout using netlist. You can also add some new element into the library, and use the 3D option to visualise your design.
Few bugs are there but they do not stop you from doing some nice board.
One of the bug is that you need to create a library for each new element that you want to add, but this would be probably be fixed by the time that you read this article.
Maybe one more thing is needed would be an good open source EM simulator, a bit more complex task to realised, but I believe that one day...
Sunday, 25 November 2007
A great distro for Electronic RF or digital Engineers
Based on the new Fedora 8, with an KDE look we can find packages for:
- Sparameters , AC simulation DC simulation or Digital simulation with QUCS, or gEDA
- PCB software with PCB, KiCAD
- you can also do some digital simulation and IC design and layout with the alliance package.
All of these packages are all under open source. The iso CD image of this distribution can be downloaded through the torrent link . It gives you the image of a live CD which would turn your PC into a live EDA platform.
it includes one of my favorite RF software, QUCS.
This distribution helps us to put together all of these package without having to worry about playing with make and command lines.
A great way to encourage more Engineering people to join the open source projects.
thanks to Chitlesh Goorah
and lets help him to continue the good work.
Saturday, 17 November 2007
Group delay with Quite Universal Circuit Simulator
It also includes harmonic balance (HB) simulation although work is still needed for this HB to work properly.
Furthermore it has the possibility to include VHDL and Verilog file circuit using the FreeHDL and Verilog Icarus engine tools respectively.
I have used it to calculate the group delay of two simple low pass filter
and I obtained great results (see below)
Note that: My group delay calculation are based onGd = - (D(S21)/D(w))
where w = omega in rad/s
You can load the example files at the Qucs web site example
there are examples for AC and Sparameter setup
or directly (right click save as)
Using Sparameter simulation groupdelay_sp.sch
Using AC simulation groupdelay_ac.sch
If you are an RF/Mw geek like me, have a go, you would not regret it.
Thursday, 10 May 2007
Snell's law with MIT
(click here for google video of the lecture) . And you will all understand what's happening to the rainbows... well you first need to know what is Snell's law.
Have fun.
I loved it.
42 degrees is now the angle to remember...
From MIT Physics Lecture: Electricity and Magnetism - 31 - Rainbows
Oct 2007:
Sorry for the broken links on the google video try this one (Search of MIT lecture)
MIT lecture video Electricity and Magnetism
(click here for)Lecture in Google Video Electricity and Magnetism is a good lecture for resonance and electromagnetism in general. Have a look, if you are interested in theory...
This is the Lecture 25: Driven LRC Circuits - Resonance - Metal Detectors From MIT
Thanks MIT
Wednesday, 25 April 2007
Creation of the EMC blog
We will be talking about Electromagnetic and interference of waves...
(well if I get enough free time...)
