2D visualization software - diyAudio
Go Back   Home > Forums > Loudspeakers > Multi-Way

Multi-Way Conventional loudspeakers with crossovers

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 31st December 2004, 09:45 AM   #1
Onur is offline Onur  Belgium
diyAudio Member
 
Onur's Avatar
 
Join Date: Jul 2003
Location: 9000, Gent
Send a message via ICQ to Onur Send a message via MSN to Onur
Default 2D visualization software

Related with my PhD study I had to generate my own C++ code to solve 2D wave equation with NRBC (Non-Reflecting Boundary Condition). Now I am able to simulate a wide range of geometry inside my simulation area (limited with physical memory, no HDD swap ), thanks to Carnk-Nicolson method. Sources, boundaries and measurement points can be selected arbitrarily, giving a big opportunity to model almost every "symmetric" enclosure. The data can be collected from the simulation field in time domain, and then can be processed with a FFT routine. The code enables the user to observe the radiation pattern of a wave-guide also, but the setback is, the wave-guide must be symmetric, like a cone or cylinder. For non-symmetric wave-guides the simulation must be done in various axis separately.

The code will be presented on my web page, (open source) when I am done with my PhD. Before that, I will be performing some measurements in order to show that the software is generating similar results with the measurements, and can not spend much time on the gui. I will surely appreciate for those who can code me a simple gui for to place the sources, boundaries and measurement points on the 2D simulation field, or a semi-finished open source gui can be useful also. Since the current software is coded using OpenGL routines, I would be looking forward keeping it that way.

-Onur
Attached Images
File Type: jpg wave.jpg (4.2 KB, 241 views)
__________________
Master is the master of his own Happiness
  Reply With Quote
Old 31st December 2004, 03:58 PM   #2
diyAudio Member
 
Join Date: Nov 2003
Location: California
Wow, very cool! This is basically what I use Matlab and the PDE toolbox to do. However, I regularly run out of memory for high frequencies even with 3GB of swap file and 1GB of RAM. I actually find the GUI to be not very useful - I like programming my shapes in the code and just using the GUI to verify that I got things in the right place and the right size. Then I do boolean operations to produce the final geometry. Doing things in the code also allows me to directly program things like tractrix horn flairs, etc., so I can just input a flair frequency and throat diameter, and everything else is automatically calculated in a loop.
  Reply With Quote
Old 31st December 2004, 05:51 PM   #3
Onur is offline Onur  Belgium
diyAudio Member
 
Onur's Avatar
 
Join Date: Jul 2003
Location: 9000, Gent
Send a message via ICQ to Onur Send a message via MSN to Onur
Default MatLab, Brrrrr!

I know MatLab since many of my friends suggested using matlab for to solve pdes. But, learning how to code matlab is far more difficult then finding a way to solve pdes! It is not something useful unless your aim is to learn how to code matlab as your phd thesis I don't even want to talk about the memory leakages, memory management faults, and writing data to FAT as if writing to a swap file.

What I've coded does also need high amounts of physical memory, since I can not code a swap file routine. On the other hand, you can choose any frequency you like, you can add boundaries anywhere you like and yet the boundaries are non-reflecting. You can define sources with any geometry, anywhere you like. All this, open source 3.2 MB Unlike the case with matlab 7.1, which needs 3 CDs.

Numerical Recepies and Maciej Matyka is all you need But the open source he provides is depending on a ready interface, which is hard to get along with. Therefore I am desperate for a gui!

http://panoramix.ift.uni.wroc.pl/~maq/eng/
www.nr.com
__________________
Master is the master of his own Happiness
  Reply With Quote
Old 31st December 2004, 06:04 PM   #4
diyAudio Member
 
Join Date: Jul 2001
Location: The Netherlands
Excuse me...... matlab must be the most simple programming language availeble.. for a Phd student.. such a thing souldn't be the least obstacle....... there's just one drawback : slow execution... but mostly you win that time back with the abality to write your code so much faster in matlab...


BTW

1 cd for the software, 1 cd for the docmentation, 1 cd for the documentation PDFs....... compare that to 3.5Gb of Visual Studio.





Thijs....matlab fan!
  Reply With Quote
Old 31st December 2004, 08:56 PM   #5
Onur is offline Onur  Belgium
diyAudio Member
 
Onur's Avatar
 
Join Date: Jul 2003
Location: 9000, Gent
Send a message via ICQ to Onur Send a message via MSN to Onur
Lets not bring this to a holly war between matlab and C There can be no winners, and my gui goes up in flames in between !

I guess this software may be used by many of us with ease with a proper gui. I have to prepare a txt file for sources, boundaries (enclosure geometry) and measurement points. It is hard when you consider dealing with co-ordinates for each enclosure.

There has been many postings about reflected waves in enclosures and maybe one of us may optimize an enclosure and if that someone doesn't have any commercial concern, he may be willing to share it with us for DIY purposes. That is what I am after. That must be what the one, who will prepare the gui, must be after too

The code will be freeware and a sample exacuteable will be presented on my web page right after I am done with my Phd.

-Onur
__________________
Master is the master of his own Happiness
  Reply With Quote
Old 1st January 2005, 01:30 AM   #6
diyAudio Member
 
Join Date: Nov 2003
Location: California
So as presented, it will be possible to load geometry from the text file? That would still be my preferred scenario, or at least to have that option. Of course I will probably keep going with Matlab since I have so much stuff developed for it already, but it sounds like basically the same thing.
  Reply With Quote
Old 1st January 2005, 02:34 AM   #7
bzdang is offline bzdang  Canada
diyAudio Member
 
bzdang's Avatar
 
Join Date: Apr 2004
Location: Pickering, Ontario
I will risk exposing my ignorance of these matters, but are you asking about a pleasant method to define geometry for use in your simulation code? One can construct geometry in autocad or any other software which is capable of exporting such geometry as a DXF file. Some of these software packages may be free, and possibly open source.
DXF is very well documented, geometry contained within can easily be accessed.
__________________
Benford's law of controversy - Passion is inversely proportional to the amount of real information available.
  Reply With Quote
Old 1st January 2005, 09:48 PM   #8
Onur is offline Onur  Belgium
diyAudio Member
 
Onur's Avatar
 
Join Date: Jul 2003
Location: 9000, Gent
Send a message via ICQ to Onur Send a message via MSN to Onur
importing geometry from such software can be a good idea. I am familiar with DXF file format, but making a stand-alone software can be more attractive, no one has to deal with AutoCad, or a file converter software, just 3 or 5 Megs of download and you can simulate the radiation pattern of your horn.

As I have said before, the purpose of the hobbiest should not be learning the software, but using it for his purpose. As the programmer makes the software easy to use, he helps the user to finish his design in a shorter time.

But, anyway, thank you, you have given me a very good idea I will use DXF for all my data input purposes. On the other hand, I don't think I can publish the code in that fashion, I will surely try to fix a simple editor.

-Onur
__________________
Master is the master of his own Happiness
  Reply With Quote
Old 1st January 2005, 10:08 PM   #9
bzdang is offline bzdang  Canada
diyAudio Member
 
bzdang's Avatar
 
Join Date: Apr 2004
Location: Pickering, Ontario
Two links to check out, may be some useful information.
It is GPL .
Perhaps the user interaction required to define the geometry is not too difficult, and also you might supply a template cad file with standard elements which can be modified by the user.


http://www.ribbonsoft.com/qcad.html

http://www.ribbonsoft.com/dxflib.html
__________________
Benford's law of controversy - Passion is inversely proportional to the amount of real information available.
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Free software including DazyWeb Lab software ashok Everything Else 2 6th November 2005 11:31 AM
My contribution to the community... a lobing error visualization tool RHosch Multi-Way 10 24th February 2004 08:59 AM


New To Site? Need Help?

All times are GMT. The time now is 05:52 AM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2