Sunday, December 10, 2017

Fluent 17.2 C++compiler



For the case if you have troubles with C++ compiler and tools installation and some bugs, the following workaround will help you.

1) Download and install Microsoft Visual studio, say 2015.
2) Browse to C:\Program Files\ANSYS Inc\v172\fluent\ntbin\win64 and backup udf.bat to udf.bat.ORIG
3) Place the following code to udf.bat

@echo off
rem ---
rem MS Visual C++
rem ---
set MSVC=
set MSVC_VERSION=0

set MSVC_VERSION=172
call "c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64

echo Detected MSVC%MSVC_VERSION% under ""
echo path=%path%
echo include=%include%
echo lib=%lib%


4) Make sue that in Fluent launcher on the Environment Tab the the Set up Compilation Environment for UDF checkbox is picked up.

Enjoy...

Also useful information can be found here -   COMPILING AND LOADING USER DEFINED FUNCTIONS USING FLUENT 14.5 OR 15.0


Wednesday, November 1, 2017

mpurun error 19 more processes have sent help message help-mpi-btl-base.txt / btl:no-nics Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages

If you get mpurun error as 

N more processes have sent help message help-mpi-btl-base.txt / btl:no-nics
Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages

the workaround is to add to the command

--mca btl ^openib

to disable the openib btl

Monday, June 26, 2017

Remove Docker Images & Containers


docker stop $(docker ps -a -q)
docker ps -a
docker rm  <CONTAINER ID>
docker images
docker rmi  <IMAGE ID>

Saturday, May 13, 2017

Adobe Acrobat in Ubuntu 16.04

sudo add-apt-repository "deb http://archive.canonical.com/ precise partner"
sudo apt-get update
sudo apt install adobereader-enu
sudo add-apt-repository -r "deb http://archive.canonical.com/ precise partner"

How to Encrypt and Decrypt Files With GPG on Linux

https://www.howtogeek.com/427982/how-to-encrypt-and-decrypt-files-with-gpg-on-linux/