User:Saheb

From ASCEND
Revision as of 15:31, 29 March 2012 by Saheb (talk | contribs)
Jump to navigation Jump to search

I am an undergraduate student from Dhirubhai Ambani Institute of Information and Communication Technology(DA-IICT),Gandhinagar,Gujarat,India.

Code branch: saheb:

Present Goal

I am currently working on implementing the feature of Adding 'smart' default units of measurement in the PyGTK GUI(bug 429). This bug comes under Student_Projects#GUI improvements.

Idea

Present: If there are no preferred units, what is used is base SI dimensions and my task is to display smart intuitive units in place of SI dimensions( i.e. N in place of kg*m/s^2). I will use the units present after the Default value in Default statements for instance in force DEFAULT defvalue{N}, and so will have to store the braced text while parsing through it. So the hierarchy after the feature gets implemented will be:

1) User Defined Units.

2) Preferred Units if present in ascend.ini.

3) Smart Intuitive Default Units.

4) Base Dimensions.

Tasks

- Understanding the working of various layers involved.

- Modify the C Layer code and modify the typedesc struct to get default unit included in it.

- Write a CUnit Code to test the initial modification of C layer code.

- Understand the C++ wrapping and SWIG tool.

- Write C++ functions to get the default unit and then pass it to the PyGTK layer.

- Modify test.py to test the final feature.

I have completed first three tasks and looking forward to quickly achieve the goal.


Working with ASCEND

Here is the first model which I created using ASCEND modelling environment.


Screen shots of the above model while running it in ascend PyGtk gui.