Monthly Archives: April 2013

UserWarning: Module dap was already imported from None …

When importing certain modules from matlibplot such as matplotlib.animation, you may get the following warning message: UserWarning: Module dap was already imported from None, but /usr/lib/python2.7/dist-packages is being added to sys.path __import__(‘pkg_resources’).declare_namespace(__name__) Method to remove the warning: Add dap as … Continue reading

Tagged | Leave a comment

CFX-POST -BATCH

This method is useful when need to process cfx post  in batch. For example,  in transient simulations, you could export information on an user-defined polyline at every timestep to .csv files automatically by using this method. Procedures: 1. Open CFX-POST … Continue reading

Posted in CFX | Leave a comment

linux cinnamon theme change

To install a theme: Download it and decompress it in ~/.themes. To install an applet: Download it and decompress it in ~/.local/share/cinnamon/applets.

Posted in Linux | Leave a comment

Huge icon on the panel when theme is changed

From a post in Linux Mint forums: “I don’t know anything about your monitor problems …. but for the problem of the large icons on the panel: Try going to Menu > Preferences > Cinnamon Settings > Panel Check the … Continue reading

Posted in Linux | Leave a comment

moving EB plotted in python

                  Rotating Gaussian distribution time averaged

Posted in Information | Tagged | Leave a comment

A easy way to clip over the area outside a path in matplotlib

See code in http://codepad.org/3I2wQrGF it’s a copy from internet: http://stackoverflow.com/questions/3320311/fill-outside-of-polygon-mask-array-where-indicies-are-beyond-a-circular-bounda

Posted in Others | Tagged | Leave a comment

gcc fortran error

When using gcc fortran 4.6 to compile a fortran code with sequential reading, the following error occurs: Fortran runtime error: Sequential READ or WRITE not allowed after EOF marker, possibly use REWIND or BACKSPACE Use fort77 command to compile it, … Continue reading

Posted in Linux | Leave a comment

Update jabref from version 2.7 to 2.9

The default version of jabref of Linux Mint and Ubuntu now is 2.7, which can be easily installed from software manager. If want to update to 2.9, a bad method is to download the jabref-2.9.jar and replace the *.jar in … Continue reading

Posted in Linux | Leave a comment