Search This Blog

Saturday, October 28, 2017

How to directly generate a STL file from netgen

# This is a Makefile

georoot=hfvmd001
geofile=$(georoot).geo
stlfile=$(georoot)_000.stl


netgenSTL:
netgen -batchmode -geofile=$(geofile)  -meshfile=$(stlfile) -meshfiletype="STL Format"

Thursday, August 17, 2017

How to add and remove path

# in ~/bin/bashfun file
# add the following line in .bashrc
# . ~/bin/bashfun

add-intel ()
{
export PATH=/opt/intel/bin/:/opt/intel/compilers_and_libraries_2017.0.098/linux/mpi/intel64/bin/:$PATH
}

rm-intel ()
{
newpath=`echo $PATH | sed -e "s/\/opt\/intel\/bin\/://" | sed -e 's/\/opt\/intel\/compilers_and_libraries_2017.0.098\/linux\/mpi\/intel64\/bin\/://' `
# echo $newpath
export PATH=$newpath
}

Tuesday, February 7, 2017

How to open google chrome with incognito mode as default



  1. Open /usr/share/applications/google-chrome.desktop 
    • sudo vi  /usr/share/applications/google-chrome.desktop 
  2. Find lines beginning with Exec and change
    • /usr/bin/google-chrome-stable  
    • to
    • /usr/bin/google-chrome-stable  --incognito  

Labels