Sunday, 24 June 2012

A Rememberable Trip

We had a wonderful trip under the provision of our Respected Sir H.S.Rai at Rajgarh in Himachal Pardesh. I got a chance to see the nature <3  having peace , clam, beautiful surrounding and peach valley. Something was different and more than our expectations. Their was a lot of fun on the way. Firstly we visited Pinjore Garden and captured those moments as well as gorgeous scenes of that lovely :) place into our cameras. After that we started toward our destination and got camping site few away from Rajgarh. It was mind blowing place and did trekking over there. Everyone was looking happy, spend some time together and enjoyed with songs. Second place that i oftentimes see through Internet was Baru sahib Gurudwara and Akal Academy of the world. I was thinking "kaash! Rabb G meri schooling v iss academy di hundi ". It seems that  they struggled and worked hard a lot to establish entire campus. These places give us relief from crowded world.I feel, if u get a chance to see such places never miss that and look the nature from closest I am sure you will be feel the original fragrance of the God gifted nature. At last i want to say thanks Sir, for giving us these remember-able moments :).

Wednesday, 6 June 2012

Pyrheology Web-Application

It is a  django-application is and can be used to perform various user-definable simulations of one-dimensional rheological rheological (viscoelastic) constitutive models.
Using this django application you will be able to compute the response of one-dimensional viscoelastic materials for which the constitutive (rate-dependent) relationship can be expressed in terms of a first order ordinary differential equation of the following form:                  
 A(θ) ε  + B(θ) ε'  = C(θ) σ    + D(θ) σ' + α θ'

1. A,B,C and D are user definable prefactors.
2. ε ,σ and θ are strain,stress and temperature.
3. Super imposed dot denotes the time-derivative.

Installation of Application:
It requires the Django which one can install using above given procedure. We also need the following python-libraries in your python path:

Functions of Libraries                                               Library Name
Plotting                                                                     python_matplotlib
Parsing Strings into callable Functions                    python-scitools
Algebraic Tools                                                        python-numpy
Optimization Tools                                                   python-scipy
and of course                                                           python-django

Now. install these libraries using below command:

sudo apt-get install python-django python-scitools python-numpy python-matplotlib python-scipy

Before proceeding, We should check the working installation. Type the following commands into a command line interpreter and see if they invoke errors.
python
>>>import django
>>>import matplotlib
>>>import numpy
>>>import scipy 
>>>import scitools.StringFunction
>>>print matplotlib.__version__
If no errors are invoked, you are good to perform the next step

Download the source code from here:

If downloaded code is a zip-file, extract it. Change to the newly created directory with an arbitary command line interpreter and type 

python manage.py syncdb

In order to synchronize our database.This command will create a couple of new tables in sqlite3 database.
Furthermore, it will ask to create superuser.Do that.

In the same directory type
python manage.py runserver

in order to start the localhost server. In most cases, the default IP and port will be 127.0.0.1:8000. In this case point your browser to 127.0.0.1:8000/admin to start working with the application. Otherwise customize the ip as promted in the shell
Now. We are able to log-in with the super-user that we defined and see the admin-frontend:




Django Installation

Django is high-level Python Web Framework encourages rapid development and clean pragmatic design.

Installation of Django:
One can download the django versions from the official website of django

https://www.djangoproject.com/ .
Now, following steps to insatll:

step 1: tar xzvf Django-1.4.tar.gz      
        
step2: cd Django-1.4

step3: sudo python setup.py insatll

Verification of Django installation:
To verify that the django can be seen by python. Type python from the terminal. Then at the python prompt, try to import the Django

>>> import django
>>> print django.get_version()
1.4