CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   ANSYS Workbench on "Uncertified" Linux Distros (https://www.cfd-online.com/Forums/cfx/25236-ansys-workbench-uncertified-linux-distros.html)

derz June 1, 2010 04:28

damn this ubuntu stuff is confusing.

I believe I've finally installed workbench 12.1 on my ubuntu.

now how do I actually run the program?

carstentm June 1, 2010 08:27

Hi (irw in particular, hope you're still following this thread),

Since I'm having some issues (they seem memory related) with running v12.1 in Windows (Vista) I've been running some simulations on a system with Ubuntu 9.04 installed (64 bits version, AMD Phenom 64 processor). So far, so good.
However, I'd prefer to run the whole procedure in the same OS, so I'm looking to get Design Modeler and meshing to run in Ubuntu as well.

Unsurprisingly, that runs into some problems.

First thing I did was add the rpm script as per yankee's (post #3) instruction.
Reduced the number of errors, but no successful install all the same.

So I tried to follow the instructions in post #15;

The third code block fails with a;
Code:

sed: -e expression #1, char 11: unterminated `s' command
I tried the next step (since the complaint about arch was the first visible complaint in the installation)
and then tried to install the whole Ansys package again.. Now I'm running into the following problem:
Code:

/home/carsten/CFX121_install/anssh.ini: 2080: uname: Permission denied

 ANSYS is not supported on this system.  Contact your ANSYS
 sales representative for a list of supported hardware platforms.

So rather than going forward, I seem to have managed to succeed in getting it to do LESS than before...

I am by no means an expert in Linux, so it's most likely a beginner's mistake, but any help is appreciated.

Yankee June 1, 2010 09:15

to carstentm :
as indicated by the error message, your syntax for "sed" was not good : please do copy exactly both quotes (in order) at the end of the line taken from post #15 :
echo `uname2 -m | sed -e 's/i686/i386'`

then, the "permission denied" problem for uname is certainly due do the lack of "execute" permission for the script uname you just created...

Yankee June 1, 2010 09:18

to derz :
To run workbench on a linux system, you have to type the command "runwb2" in a terminal, after being sure that your locale is en_US (see preceding posts)
NB runwb2 will only work if it is correctly inserted in your path (see the installation manual, post-intallation instructions)

carstentm June 1, 2010 09:49

Quote:

Originally Posted by Yankee (Post 261176)
to carstentm :
as indicated by the error message, your syntax for "sed" was not good : please do copy exactly both quotes (in order) at the end of the line taken from post #15 :
echo `uname2 -m | sed -e 's/i686/i386'`

I tried both typing it myself and doing a copy-paste. Sadly, they both lead to the same error. I'd imagine not, but could this be a keyboard/language-setting related issue?

Yankee June 1, 2010 10:24

I can't understand your error, maybe it's related to the shell you are using. The third block in post #15 was just there to rename /bin/uname to /bin/uname2 , and then create a new executable script /bin/uname , containing :

Quote:

#!/bin/bash
if [ "$1" ="-i" ]; then
echo `uname2 -m | sed -e 's/i686/i386'`
else
uname2 $@
fi
You can do all that with other methods... The only thing is that after modification the command
Quote:

uname -i
should return i386 on a 32-bit PC, and the same as
Quote:

uname -m
on a 64 bit PC

derz June 2, 2010 00:04

thanks for the help.

i can now run workbench on ubuntu 10.04.

each application seems to load fine. however...within modeler the graphic window on the right (where you usually try and draw things) is all blank white. when i try draw something in there, it won't do anything.

when i load CFX-Pre, or CFX-Post however, then the graphic window seems to be operating normally (that nice gradient shaded blue background and i can see the x, y, z axes thing).

so something is going wrong with design modeler here...are you guys having that same problem?

Yankee June 2, 2010 04:12

Quote:

Originally Posted by derz (Post 261285)
each application seems to load fine. however...within modeler the graphic window on the right (where you usually try and draw things) is all blank white. when i try draw something in there, it won't do anything.

I have this symptom also with Design Modeller called from workbench 12.1.1 , in a Ubuntu 10.04 64bit system running inside virtualbox. I have the following message (a lot of times) in the shell from which workbench2 was run :
Unable to resolve function glXMakeCurrent
My application code (for me it's Fluent, not CFX) runs correctly, including graphics, when using X11 as "graphic driver" (which seems the default in my case), but hangs when started with the option "-driver openGL"

So it seems we have a problem with openGL, and unfortunately DesignModeller seems to need it.

On my Ubuntu10.04 32bit system (native, not in virtualbox) I don't have the problem, design modeller works fine.

derz June 2, 2010 04:15

haha...i thought about it long and hard whether to install 32-bit or 64-bit ubuntu 10.04 last night. my research told me may as well go with 64-bit as there had been only a few issues with it.

now it seems i should have gone 32-bit if i want design modeler to work!

well i'll download the 32-bit ubuntu and give it a try...

carstentm June 2, 2010 04:44

Quote:

Originally Posted by Yankee (Post 261197)
I can't understand your error, maybe it's related to the shell you are using. The third block in post #15 was just there to rename /bin/uname to /bin/uname2 , and then create a new executable script /bin/uname , containing :



You can do all that with other methods... The only thing is that after modification the command
should return i386 on a 32-bit PC, and the same as

on a 64 bit PC

Thanks for the help; sadly, it seems that there is some difference between my system and the expected behaviour.
I tried "manually" (using gedit) editing the uname file with that code, here's the result;

Code:

carsten@PC:~/CFX121_install$ uname
/bin/uname: line 2: [: : unary operator expected
Linux
carsten@PC:~/CFX121_install$ uname -i
/bin/uname: line 2: [: -i: unary operator expected
unknown
carsten@PC:~/CFX121_install$ uname -m
/bin/uname: line 2: [: -m: unary operator expected
x86_64

I've been trying to find hints in both "help if" and "help sed" (since that's what the error points to if I try the scripted method to editing the file) to see if I can find a syntax difference, but no such luck.

Yankee June 2, 2010 16:52

Quote:

Originally Posted by derz (Post 261318)
now it seems i should have gone 32-bit if i want design modeler to work!
well i'll download the 32-bit ubuntu and give it a try...

Be careful, on my 32 bit Ubuntu DM works, but not Ansys Meshing !

Others (see messages above in this post) have a complete running ansys on ubuntu 64 bits. That's why I tried to install a 64 bit distro on virtualbox. Maybe the problem is related to virtualbox (which passes graphic directives from the virtual machine to the graphics driver, in my case nvidia-current) ; or to graphic libraries...

Yankee June 2, 2010 16:57

Quote:

Originally Posted by carstentm (Post 261325)
Thanks for the help; sadly, it seems that there is some difference between my system and the expected behaviour.
I've been trying to find hints in both "help if" and "help sed" (since that's what the error points to if I try the scripted method to editing the file) to see if I can find a syntax difference, but no such luck.

It's a shell related issue, not the subject of this post. Try to see if /bin/bash is correctly installed (that's the shell that should read the script, as indicated in the first line), and for help look at "man bash" or "info bash" or shell-related web ressources (for the bourne shell family, to which bash belongs).

carstentm June 3, 2010 04:29

alright, finally managed to get the script to work without any errors; just in case it's any use to others:
Code:

#!/bin/bash
if [ "$1" = '-i' ]; then
echo ` uname2 -m | sed -e '/i686/s//i386/' `
else
uname2 $@
fi


only errors remaining are

Code:

[: 335: /ansys_inc/v121/aisol/dll/linx64/libans.common.clrhostmonou.so: unexpect
ed operator
[: 335: /ansys_inc/v121/aisol/dll/linx64/libans.common.controlsu.so: unexpected operator
[: 335: /ansys_inc/v121/aisol/dll/linx64/libans.graphics.controlsu.so: unexpected operator
[: 335: /ansys_inc/v121/aisol/dll/linx64/libans.graphics.graphutilityu.so: unexpected operator

(the last one repeated a few times)

Something that needs to be installed, or? If so, any idea what?

Design Modeler still doesn't work, although no errors are generated that I can find.

Yankee June 4, 2010 13:13

Quote:

Originally Posted by carstentm (Post 261495)
only errors remaining are

Code:

[: 335: /ansys_inc/v121/aisol/dll/linx64/libans.common.clrhostmonou.so: unexpect
ed operator
[: 335: /ansys_inc/v121/aisol/dll/linx64/libans.common.controlsu.so: unexpected operator
[: 335: /ansys_inc/v121/aisol/dll/linx64/libans.graphics.controlsu.so: unexpected operator
[: 335: /ansys_inc/v121/aisol/dll/linx64/libans.graphics.graphutilityu.so: unexpected operator

(the last one repeated a few times)

Something that needs to be installed, or? If so, any idea what?

I've the same errors in ansys_inc/install.err , it seems that there is a small problem in an installation script. On my 32 bit ubuntu this does not prevent Design Modeller to work (but, as said before, Meshing does not).

Quote:

Design Modeler still doesn't work, although no errors are generated that I can find.
For the "blank graphics screen" problem in Design Modeller on my 64 bit distro, I found a workaround : add the following two directories in LD_LIBRARY_PATH before calling runwb2:
ansys_inc/v121/Framework/bin/Mesa
ansys_inc/v121/Framework/bin
In fact the "mono" executable called by runwb2 (an horrible windows-like programming environment, but freeware, so don't shout at it !), should pre-load openGL libraries (more exactly their "mesa" variant) because of an environment variable LD_PRELOAD set by runwb2. Seems that it doesn't work... Maybe it's not transmitted to windows executables running DM or Meshing? But with LD_LIBRARY_PATH, for me it works.

I use the following script called wb2, placed in /usr/local/bin (which is in my path), to run ansys, in place of runwb2:

Code:

#!/bin/bash
RUNWB2CMD=`which runwb2`
RUNWB2DIR=`dirname $RUNWB2CMD`
if test -z "$LD_LIBRARY_PATH"; then
    LD_LIBRARY_PATH=$RUNWB2DIR/Mesa:$RUNWB2DIR
else
  LD_LIBRARY_PATH=$RUNWB2DIR/Mesa:$RUNWB2DIR:$LD_LIBRARY_PATH
fi
export LD_LIBRARY_PATH
export LANG=en_US.UTF8
runwb2 $@

Then, just type wb2 in place of runwb2, and for me it works!

strider June 5, 2010 15:56

Ubuntu 10.04
 
I have updated my Ubuntu to version 10.04 and suddenly I run into problems with CFX-Pre. I get the error:
p, li { white-space: pre-wrap; } ERROR
CCL validation failed with message:
Warning: Can't check parameter Message Type (/PHYSICS MESSAGES/PHYSICS MESSAGE:msg0000/Message Type): Can't find rule.
Warning: Can't check parameter Severity (/PHYSICS MESSAGES/PHYSICS MESSAGE:msg0000/Severity): Can't find rule.
Warning: Can't check parameter Message (/PHYSICS MESSAGES/PHYSICS MESSAGE:msg0000/Message): Can't find rule.
Warning: Can't check parameter Suppressed (/PHYSICS MESSAGES/PHYSICS MESSAGE:msg0000/Suppressed): Can't find rule.

Design modeler and mesher are working (thanks to irw).

Any idea?

wootletootle June 12, 2010 04:32

Ansys 12.1 under Slackware 13.1
 
The installation for a 32 bit Linux OS generated errors as
mentioned by others above. However the installation could be
completed by using using information given by Yankee & Mhsr,
specifically

(1) make changes to the workbench script (/usr/ansys_inc/v121/aisol/workbench)
as suggested by Mhsr.

(2) Include some additional Ansys libs in LD_LIBRARY_PATH
LD_LIBRARY_PATH="/usr/ansys_inc/v121/aisol/mw/lib-linux_optimized:/usr/ansys_inc/v121/aisol/lib/linia32::$LD_LIBRARY_PATH"

(3) Register the libraries mentioned in the error log (ansys_inc/install.err) by running
the installation sequence (after each ERROR: line) from the command line

After this I am able to execute /usr/ansys_inc/v121/aisol/workbench
and /usr/ansys_inc/v121/Framework/bin/Linux32/runwb2

However there are still some unresolved issues:

(a) Running "workbench" only Design Modeler is started, and the
project gui cannot be reached. The console has the message
"Workbench error: error connecting to Albion"

(b) Running "runwb2" the project gui is started, but apparently in
a truncated form, e.g. only CFX and FLUENT appear under the
Analysis Systems tab.

Can anybody comment on these points?

EDIT: Yes, and the meshing doesn't work, either, as noted above:
"Unable to create object WBScript.WBWshShell.121"

megamin June 15, 2010 05:01

WB 12.1 on Ubuntu 10.04 64-bit
 
Hi all,

finally I got WB 12.1 running on Ubuntu 10.04 64-bit with Nvidia-Driver 195.36.15 by the following steps:

(1) installing packages 'rpm' and 'mesa-utils'

(2) starting WB by wrapper script setting the PATH-Variable according to the Installation-Manual. Setting the LD_LIBRARY_PATH-Variable to

/usr/lib/nvidia-current

Everything works including CFX and Fluent. The only thing left is messages in install.err about "unexpected operator"

elbasharat June 23, 2010 01:23

can anyone give me Ansys customer portal login ID and password please.?

irw June 23, 2010 08:24

OpenGL problems
 
For those of you reporting problems with the Meshing tool and OpenGL/NVidia graphics, have you tried starting workbench with:

Code:

runwb2 -oglmesa
This will force workbench to use software graphics acceleration rather than the problematic hardware glx driver. This works for me on a clean Ubuntu 9.10 64-bit install following the instructions I gave previously.

Following the instructions I provided earlier gives a fully functional ANSYS Fluent, Design Modeller, Meshing and CFX-post on three different Ubuntu 9.10 64-bit installations (one with ATI graphics card and two with NVIDIA cards).

Yankee June 23, 2010 11:48

Quote:

Originally Posted by irw (Post 264187)
For those of you reporting problems with the Meshing tool and OpenGL/NVidia graphics, have you tried starting workbench with:
Code:

runwb2 -oglmesa

On ubuntu 10.04 64 bits, yes I tried, and no it didn't work, because the mesa libes were not available to the products started by workbench. I described a workaround in post #54, wiyh tha all works fine as for you.


All times are GMT -4. The time now is 14:52.