Author Archives: eric

ImportError: cannot import name Publisher When Using py2exe

1. change from wx.lib.pubsub import Publisher to from wx.lib.pubsub import setuparg1 #must be setuparg1! not setupv1. otherwise cause problem: sendMessage() takes exactly 2 arguments (3 given) py2exe from wx.lib.pubsub import pub Publisher = pub.Publisher() 2. put this in the setup.py: … Continue reading

Posted in Others | Leave a comment

eps or pdf to svg

When use inkscape to open an ps file exported from icemcfd, the mesh is missing. Solution: open the ps file in evince and print it to svg. Then the svg file can be edit in inkscape without missing anything. And … Continue reading

Posted in CFX, ICEM CFD | Leave a comment

add auto-complete to emacs

Installing auto-complete to emacs. It’s not loaded. Solution: add the following text to ~/.emacs ;; auto-complete (add-to-list ‘load-path “~/.emacs.d/”) (require ‘auto-complete-config) (add-to-list ‘ac-dictionary-directories “~/.emacs.d//ac-dict”) (ac-config-default)-c

Posted in Linux | Leave a comment

Density and Specific Heat Dependencies

Be aware of the density and specific heat dependencies. For a pure substance, the flow solver allows only density and specific heat capacity to be functions of temperature or pressure. When you select the Value option for density or specific … Continue reading

Posted in CFD, CFX | Leave a comment

Install adobe pdf read on Linux

It would be better to install adobe pdf reader on linux, though envince is more preferred to me. But for some certain functions, it has to be used, playing animation for example. Method to install adobe pdf reader on linux … Continue reading

Posted in Linux | Leave a comment

#!/usr/bin/env

The shebang line (from “sharp bang”, i.e. #!) is processed by the kernel. The kernel doesn’t want to know about environment variables such as PATH. So the name on the shebang line must be an absolute path to an executable. … Continue reading

Posted in Linux | Tagged | Leave a comment

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