Installation and running <b>gadget</b>-2 «astrobites».

Error in deserializing body of reply message for operation 'Translate'. The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 1, position 8872.
Error in deserializing body of reply message for operation 'Translate'. The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 1, position 8664.

Today’s astrobite will be another in a series on career advice and useful astronomical tools.  So far, it looks like there’s been a dearth of posts on the tools of theoretical astrophysics, so I thought I’d take the opporunity to show how easy it is to run a simulation using Gadget-2, a smoothed particle hydrodynamics (or SPH) code.  Gadget-2 is open source and publically available, so anyone can run simulations with it.  In a future post, I’ll discuss how to set up and run a simple hydrodynamics test problem.

The instructions for installing Gadget-2 will be highly platform dependent.  If you’re running Linux or UNIX, you have all of the tools you will need to compile the codes already. If you’re on a Mac, you’ll need to install and update Xcode, which includes all of the compilers you will need.  On Windows, you’ll probably need to install cygwin which will give your Windows installation full UNIX support.

A simulation of cosmic structure formation run with Gadget-2 (Springel et al. 2005).

Since I have a Mac, I’m going to focus on getting these codes working on OS X Snow Leopard.  If you have a different system, it might not be possible to follow my instructions exactly.  I’ll be doing all of the simulations for this series of posts on my laptop, a Macbook Pro.

First, you will need to download a few software packages.

Gadget 2.0.7.Version 1.9 of the GNU scientific library (GSL).Version 2.1.5 of the FFTW fast Fourier transform library.A Message Passing Interface (MPI) library such as Open-MPI or MPICH

Open-MPI is included with OS X so if you have a Mac, do not install an MPI library. Don’t download version 3.x of the FFTW library since it doesn’t include multiprocessor support.

Once you have all of the software downloaded, you will need to extract the .tar.gz archives and install the software. I’m doing everything in terminal (found in your applications folder under Terminal.app). The installation process goes as follows:

1. Extract the software:

goldbaum@~/Documents/code: tar -xzf fftw-2.1.5.tar.gzgoldbaum@~/Documents/code: tar -xzf gadget-2.0.7.tar.gzgoldbaum@~/Documents/code: tar -xzf gsl-1.9.tar.gz

2. Install GSL:

goldbaum@~/Documents/code: cd gsl-1.9/goldbaum@~/Documents/code/gsl-1.9: ./configuresnip: lots of diagnostic ouputgoldbaum@~/Documents/code/gsl-1.9: makesnip: lots of compilation outputgoldbaum@~/Documents/code/gsl-1.9: sudo make installPassword:snip: lots of diagnostic outputgoldbaum@~/Documents/code/gsl-1.9: cd ..

I’ve gone with the default option of installing GSL to root system directories.  If you don’t have administrator privileges, you can install the software to your user directory by adding “–prefix=/folder/to/install/to” to the configure line. Leave out the quotes and change to your choice of folders when you do this for real.

3. Install FFTW:

goldbaum@~/Documents/code: cd fftw-2.1.5goldbaum@~/Documents/code/fftw-2.1.5: ./configure --enable-mpi --enable-type-prefix --enable-floatsnip: lots of diagnostic outputgoldbaum@~/Documents/code/gsl-1.9: makesnip: lots of compilation outputgoldbaum@~/Documents/code/gsl-1.9: sudo make installPassword:snip: lots of diagnostic outputgoldbaum@~/Documents/code/gsl-1.9: cd ..

4. Edit the Gadget makefile for your system

Gadget has a ton of compile-time parameters, which are extensively described in the User’s Guide. There are several changes to the default makefile that you need to make in order for Gadget to run correctly. Go to the directory you extracted Gadget to, then the Gadget-2 directory inside that folder. Open the makefile in a text editor (e.g. vim, emacs, textedit, notepad), and edit the compile time parameters so the beginning of your makefile looks like the following:

#--------------------------------------- Basic operation mode of code#OPT += -DPERIODICOPT += -DUNEQUALSOFTENINGS#--------------------------------------- Things that are always recommendedOPT += -DPEANOHILBERTOPT += -DWALLCLOCK#--------------------------------------- TreePM Options#OPT += -DPMGRID=128#OPT += -DPLACEHIGHRESREGION=3#OPT += -DENLARGEREGION=1.2#OPT += -DASMTH=1.25#OPT += -DRCUT=4.5#--------------------------------------- Single/Double Precision#OPT += -DDOUBLEPRECISION#OPT += -DDOUBLEPRECISION_FFTW#--------------------------------------- Time integration optionsOPT += -DSYNCHRONIZATION#OPT += -DFLEXSTEPS#OPT += -DPSEUDOSYMMETRIC#OPT += -DNOSTOP_WHEN_BELOW_MINTIMESTEP#OPT += -DNOPMSTEPADJUSTMENT#--------------------------------------- Output#OPT += -DHAVE_HDF5#OPT += -DOUTPUTPOTENTIAL#OPT += -DOUTPUTACCELERATION#OPT += -DOUTPUTCHANGEOFENTROPY#OPT += -DOUTPUTTIMESTEP#--------------------------------------- Things for special behaviour#OPT += -DNOGRAVITY#OPT += -DNOTREERND#OPT += -DNOTYPEPREFIX_FFTW#OPT += -DLONG_X=60#OPT += -DLONG_Y=5#OPT += -DLONG_Z=0.2#OPT += -DTWODIMS#OPT += -DSPH_BND_PARTICLES#OPT += -DNOVISCOSITYLIMITER#OPT += -DCOMPUTE_POTENTIAL_ENERGY#OPT += -DLONGIDS#OPT += -DISOTHERM_EQS#OPT += -DADAPTIVE_GRAVSOFT_FORGAS#OPT += -DSELECTIVE_NO_GRAVITY=2+4+8+16#--------------------------------------- Testing and Debugging options#OPT += -DFORCETEST=0.1#--------------------------------------- Glass making#OPT += -DMAKEGLASS=262144

The most important change is commenting out the HAVE_HDF5 line to avoid a compilation error.

Next, you’ll need to edit the makefile once more to tell it where you’ve installed GSL and FFTW. My makefile looks like this:

#----------------------------------------------------------------------# Here, select compile environment for the target machine. This may need# adjustment, depending on your local system. Follow the examples to add# additional target platforms, and to get things properly compiled.#----------------------------------------------------------------------#--------------------------------------- Select some defaultsCC = mpicc # sets the C-compilerOPTIMIZE = -O2 -Wall -g # sets optimization and warning flagsMPICHLIB = -lmpich#--------------------------------------- Select target computerSYSTYPE="Goldbaum"#--------------------------------------- Adjust settings for target computerifeq ($(SYSTYPE),"Goldbaum")CC = mpiccOPTIMIZE = -03 -WallGSL_INCL = -I/usr/local/includeGSL_LIBS = -L/usr/local/libFFTW_INCL= -I/usr/local/includeFFTW_LIBS= -L/usr/local/libMPICHLIB = -L/usr/libendif

You can define your own SYSTYPE and tell Gadget where you’ve installed GSL and FFTW. By default, they’re in /usr/local/. The MPI library that comes with OS X is in /usr/lib/.

Now you’re almost done! Just save the changes you’ve made, exit out of your editor and run “make” in the Gadget-2 code directory. That should produce an executable called Gadget2 that you can run simulations with.

There are a number of test cases that come with Gadget.  You might try running the galaxy collision test since it makes some nice looking outputs that can be readily visualized using IDL routines included with Gadget.  To run the galaxy collision test, first set up a folder with all of the needed executables and parameter files:

goldbaum@~/Documents/code/Gadget-2.0.7: mkdir galaxygoldbaum@~/Documents/code/Gadget-2.0.7: cp Gadget2/Gadget2 galaxy/goldbaum@~/Documents/code/Gadget-2.0.7: cp Gadget2/parameterfiles/galaxy.param galaxy/goldbaum@~/Documents/code/Gadget-2.0.7: cd galaxy/

Then edit galaxy.param so that the first two lines look like:

% Relevant filesInitCondFile /path/to/Gadget-2.0.7/ICs/galaxy_littleendian.datOutputDir /path/to/Gadget-2.0.7/galaxy/

You should change the path to the initial conditions directory and the output directory to reflect the directory structure on your computer. You’re now ready to run your first simulation! Invoke Gadget with the following command:

mpirun -np 2 ./Gadget2 galaxy.param

The command mpirun initializes an MPI program, in this case Gadget. The paramater -np 2 tells mpirun to run Gadget with two processors.  Gadget in turn looks in galaxy.param for parameters of the simulation. If you have more than two processors, feel free to change the 2 in “-np 2? to the number of processors on your system. You can check how many processors you have by running System Profiler.app which is included with OS X. You might want to try playing with increasing the number of outputs to make a simple movie of the galaxy collision:

Next time, we’ll setup and run a simple hydrodynamics test. Stay tuned!

As you could be next gen iPod nano Camera(s) - have <b>gadget</b> venue

iPod nano camera 300x289 Next Gen iPod Nano Could Get Camera(s)The iPod Nano is currently in the sixth generation. Most of the previous generations have with changes to the construction of the sixth gene shrink unit right below and put a touch screen on the front of seen.

We see today that Apple [AAPL], is working on a new seventh generation model, the the same form factor as the 6th Gen model holds. The main difference is out however, that it looks how it get a camera on the back, and perhaps on the front. The leaked image (larger version below), shows what looks like the sixth gene device but with a camera-hole of the top-right of the unit cut.

The image could be indeed fake, but that site has a good track record of trip Apple products and specifications in the past.

The expected release date of the iPod nano seventh generation is expected to be the first or second week of September as was the case for all previous generations in this time frame to start. Expect to hear more closer to the date.

iPod nano camera Next Gen iPod Nano Could Get Camera(s)

Source code

Cool <b>gadgets</b> around you | New <b>gadget</b> news | New <b>gadget</b> news | New <b>...</b>

text is null
Parameter name: text

Country Strong (2011)

Keyword : Download Country Strong (2011), Movie Country Strong, Subtitle indonesia Country Strong, Free Download Film Country Strong, Download Movie Country Strong, Subtitle Film Country Strong, indowebster, mediafire,  enterupload, 4share, rapidshare, Update Film Terbaru 2011, Download Film Terbaru, Download Film Gratis,

Download Film Country Strong (2011)

English Review
Fate seemed to bring Kelly Canter (Gwyneth Paltrow), Beau Hutton (Garrett Hedlund), and Chiles Stanton (Leighton Meester) in a complicated problem that characterizes the life of three people brought together by this same world. All have the same desire and they also faced more or less the same constraints as well.

Kelly is a country singer who slumped in his life. Since its popularity down, Kelly became emotional and unstable. One time, there is an opportunity for Kelly to restore the mess of his career. At the same time, there is a new comer named Beau Hutton who have career opportunities in the world of country music. Both were then united in a scenario that would benefit both.

By command of Ed (Tim McGraw), the manager as well as Kelly's husband, both then held a series of country music concerts. Unfortunately, on the way, there is a growing sense of love between Kelly and Beau. The scenario was originally turned into a complicated simple. Not to mention the long concert that also involves Chiles Stanton, the ambitious former beauty queen became country music diva.

Sinopsis Indonesia
Takdir seolah mempertemukan Kelly Canter (Gwyneth Paltrow), Beau Hutton (Garrett Hedlund), dan Chiles Stanton (Leighton Meester) dalam satu masalah rumit yang mewarnai jalan hidup tiga orang yang disatukan oleh dunia yang sama ini. Semua memiliki keinginan yang sama dan ketiganya juga dihadapkan pada kendala yang kurang lebih sama juga.

Kelly adalah seorang penyanyi country yang terpuruk dalam hidupnya. Sejak popularitasnya turun, Kelly jadi emosional dan tak stabil. Suatu ketika, ada peluang buat Kelly untuk memulihkan kariernya yang berantakan. Di saat yang sama, ada pendatang baru bernama Beau Hutton yang punya peluang karier di dunia musik country. Keduanya lantas bersatu dalam sebuah skenario yang bakal menguntungkan keduanya.

Dengan komando dari Ed (Tim McGraw), sang manajer sekaligus suami Kelly, keduanya lantas menggelar serangkaian konser musik country. Sayangnya, di tengah perjalanan, ada rasa cinta yang tumbuh di antara Kelly dan Beau. Skenario yang semula sederhana pun berubah jadi rumit. Belum lagi konser panjang itu juga melibatkan Chiles Stanton, mantan ratu kecantikan yang berambisi jadi diva musik country.
__________________________________________________________
INFORMASI :
Date Released : 7 January 2011
Quality : BRRip
Info : www.imdb.com/title/tt1555064
Starring : Garrett Hedlund, Gwyneth Paltrow and Leighton Meester
Genre : Drama | Music
__________________________________________________________
Download Film / Movie Country Strong (2011)
Mediafire :
Download Part 1
Download Part 2

Password : thehack3r.com

Daftar Film Acak

Tanu Weds Manu (2011)

Keyword : Download Tanu Weds Manu (2011), Movie Tanu Weds Manu, Subtitle indonesia Tanu Weds Manu, Free Download Film Tanu Weds Manu, Download Movie Tanu Weds Manu, Subtitle Film Tanu Weds Manu, indowebster, mediafire,  enterupload, 4share, rapidshare, Update Film Terbaru 2011, Download Film Terbaru, Download Film Gratis,

Download Film Tanu Weds Manu (2011)

English Review
This story recounts a journey of love two people from different backgrounds, ie, Tanu and Manu. Manu is the picture so perfect groom who coveted each parent for his daughter. He is a graduate of the London doctor unpretentious, clever, patient, and comes from the illustrious family. The urge families to bring Manu went to Kanpur to meet Tanu, a girl from a small town who studied in Delhi.

Sinopsis Indonesia
Kisah ini menceritakan sebuah perjalanan cinta dua orang dari latar belakang yang berbeda, yakni Tanu dan Manu. Manu adalah adalah gambaran pengantin pria yang begitu sempurna yang diidamkan tiap orangtua bagi puterinya. Ia seorang dokter bersahaja lulusan London, pandai, penyabar, dan berasal dari keluarga terpandang. Desakan keluarga membawa Manu berangkat menuju Kanpur untuk menemui Tanu, seorang gadis asal kota kecil yang belajar di Delhi.
__________________________________________________________
INFORMASI :
Date Released : 25 February 2011
Quality : BRRip
Info : www.imdb.com/title/tt1694542
Starring : Madhavan, Kangana Ranaut and Jimmy Shergill
Genre : Comedy | Drama | Romance
__________________________________________________________
Download Film / Movie Tanu Weds Manu (2011)
Mediafire :
Download Part 1
Download Part 2
Download Part 3

Password : thehack3r.com

Download Film Terbaru 2011

<b>Gadget</b> «Thumbnails for 03-Apr-2011» coolest <b>gadgets</b>

Enter and you subscribe to our free daily summary sorry, I could not read the content of Fromt in this page.

The Warriors Way (2010)

Keyword : Download The Warriors Way (2010), Movie The Warriors Way, Subtitle indonesia The Warriors Way, Free Download Film The Warriors Way, Download Movie The Warriors Way, Subtitle Film The Warriors Way, indowebster, mediafire,  enterupload, 4share, rapidshare, Update Film Terbaru 2011, Download Film Terbaru, Download Film Gratis,

download film The Warriors Way (2010)

Sinopsis Indonesia
Yang (Dong-Kun Jang) adalah pendekar legendaris. Terlahir untuk bertarung dan dilatih untuk menjadi pembunuh terbaik. Tak ada yang bisa mengalahkan Yang dan ini membuat pendekar yang satu ini jadi mimpi buruk paling ditakuti. Membunuh bukanlah hal yang sulit buat Yang, sampai suatu ketika, nuraninya berkata lain. Gagal menjalankan tugas artinya Yang harus benar-benar jadi sebuah legenda. Yang harus mati.

Dalam sekejap mata Yang jadi buronan dan tak ada tempat aman buat pendekar ini. Satu-satunya cara adalah pergi sejauh mungkin dari negeri kelahirannya. Perjalanan kemudian membawa Yang ke daratan Amerika yang masih sangat liar. Di tempat baru ini Yang berkenalan dengan beberapa orang yang terlihat biasa-biasa saja. Di balik apa yang terlihat, orang-orang ini ternyata menyimpan masa lalu yang tak terduga.

Ron (Geoffrey Rush) ternyata adalah mantan petarung sementara Lynne (Kate Bosworth) yang cantik ternyata juga punya bakat khusus yang jarang dimiliki wanita lain. Lynne jago melempar pisau dan ia punya misi pribadi membalaskan dendam masa kecilnya. Kedatangan Yang sendiri ternyata juga mengundang kedatangan beberapa orang dari masa lalu Yang. Yang belum aman. Ia masih jadi buronan dan para pemburunya kini telah datang.
__________________________________________________________
INFORMASI :
Info: http://www.imdb.com/title/tt1032751/
Release Date: 3 December 2010 (USA)
Genre: Action | Fantasy | Western
Cast: Dong-gun Jang, Kate , Geoffrey Rush, Danny Huston
Quality: BDRip 480p
Subtitle: Indonesia, English
__________________________________________________________
Download Film / Movie The Warriors Way (2010)
Mediafire :
DOWNLOAD Part 1
DOWNLOAD Part 2

Download Subtitle : Indonesia, English

Daftar Film Acak