CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   How to run fluent in LINUX (https://www.cfd-online.com/Forums/fluent/34303-how-run-fluent-linux.html)

Selina July 31, 2004 00:38

How to run fluent in LINUX
 
Hi...

I have recently installed fluent in linux. But I am unable to start it. The error message given is:

"bash: fluent: command not found"

Any help given is greatly appreciated. Thanks

Selina

sri July 31, 2004 03:00

Re: How to run fluent in LINUX
 
Try : in the shell window ;

>module load fluent

>fluent

All the best, Sri.

Rob Hart July 31, 2004 04:45

Re: How to run fluent in LINUX
 
bash uses an "envirnoment variable" called PATH to tell it where to look for programs.

If you type: echo $PATH it will give you a list of directories (seperated by colons) if the list does not include the directory you installed fluent, then you will need to add it, by typing

PATH=/opt/pkg/Fluent.inc/bin:$PATH

(note this is assuming fluent is installed in /opt/pkg/Fluent.inc/ )

This just works for your current terminal, if you want to make it permenant, you will have to add it to a hidden file called .bashrc

Rob


Andrew Garrard August 2, 2004 06:32

Re: How to run fluent in LINUX
 
In the fluent installation guide it says you have to alter the .bash_profile (hidden) file by adding the following lines

PATH=/fluent6/Fluent.Inc/bin:$PATH export PATH

Assuming fluent is installed in dir /fluent6. That works for me and I am running RedHat 9.

ap August 5, 2004 07:24

Re: How to run fluent in LINUX
 
On SuSE Linux 9 and 9.1, you have to add the following lines to the hidden file /home/.bashrc

PATH=<path-to-FLUENT.INC-directory>/Fluent.inc/bin:$PATH export PATH

The same settings works for GAMBIT too.

This makes settings permanent for the user the .bashrc file belongs to.

Hi :)

ap

Rob Hart August 5, 2004 07:35

Re: How to run fluent in LINUX
 
BTW, If you want everybody to be able to use fluent, then it's easier to put it in /etc/profile


ap August 5, 2004 11:39

Re: How to run fluent in LINUX
 
Yes, but in such a case, it is better to use /etc/profile.local instead of changing /etc/profile because there are chances that the changes to /etc/profile will be lost during system upgrades.

Hi :)

ap

Rob Hart August 5, 2004 12:15

Re: How to run fluent in LINUX
 
Real linux distributions don't overwrite configuration files. Besides, I imagine if your system makes use of a /etc/profile.local, there's probably (or should be) a comment at the top of /etc/profile telling you to go change that instead!

Rob


ap August 5, 2004 12:31

Re: How to run fluent in LINUX
 
Yes, there's the comment of course.

My comment is referred to SuSE Linux, which is what I use (and cited in my previous post) and which uses the /etc/profile.local file.

P.S. Real linux distributions? Are there virtual ones? I just know there are usable distributions and unusable ones ;-)

Hi :)

ap

Rob Hart August 5, 2004 13:38

Re: How to run fluent in LINUX
 
lol.

It was just a joke, but maybe quite a cultural one. I know not everybody who reads this is English... sorry

For the record, I use debian.

:)

Rob

ap August 5, 2004 14:52

Re: How to run fluent in LINUX
 
:-D

ap

Selina August 5, 2004 23:01

Re: How to run fluent in LINUX
 
Hi Rob,Sri,Andrew, ap,

Thanks for all the help and suggestions given. I have managed to get Fluent to work in RHL9. Very grateful.

Seriously, you guys are better at providing technical support than FLUENT.

Thanks again!!!! Selina

IvanCFD January 25, 2011 15:36

Hi Rob, I reckon you might be of great help to me.

I am newer at using Fluent on Red Hat.

I have just installed it but don't manage to make it work.

Once I have installed it and am in the folder /home/iroldanb/Fluent.Inc/fluent6.3.26/bin I type fluent 3d and nothing worked, it said:

bash: fluent: command not found

Then I did this in that very folder:

$ FLUENT_ARCH=lnx86
$ export FLUENT_ARCH


and when typing again to run fluent I get the same error.

Then I did what Andrew suggests above here, in the folder /home/iroldanb/Fluent.Inc/bin I type

PATH=/home/iroldanb//Fluent.Inc/bin:$PATH export PATH

and back to the executable fluent is, if I type once more fluent 3d the error I get is:

Error: directory /home/iroldanb/Fluent.Inc/fluent6.3.26/fluent[0-9]* does not contain a valid arch.
Set the environment variable FLUENT_ARCH and try again.


I'm sure I'm doing something silly.

Any help?

Thanks a lot beforehand.

Regards,

Ivan.

Tomasete June 16, 2011 06:37

Hello,

I have a similar problem:

[root@server bin]# uname -a
Linux server 2.6.18-164.10.1.el5 #1 SMP Wed Dec 30 18:35:28 EST 2009 x86_64 x86_64 x86_64 GNU/Linux

[root@server bin]# echo $FLUENT_ARCH
lnamd64

[root@server bin]# ./fluent
Error: directory /ansys_inc/v130/fluent/fluent13.0.0/fluent[0-9]* does not contain a valid arch.
Set the environment variable FLUENT_ARCH and try again.


[root@serv fluent13.0.0]# pwd
/ansys_inc/v130/fluent/fluent13.0.0
[root@serv fluent13.0.0]# ls
addons client cpropep ic3m isat launcher lnamd64 packages src vki
bin cortex gtpower info KINetics lib multiport realgas tgrid wave

Any solution? I don't know what to do :-(

IvanCFD June 20, 2011 05:32

I am afraid to say I gave up on it.

Much appreciate it if someone comes across with a reliable solution.

Cheers,

Ivan.

Tomasete June 20, 2011 07:24

Quote:

Originally Posted by IvanCFD (Post 312696)
I am afraid to say I gave up on it.

Much appreciate it if someone comes across with a reliable solution.

Cheers,

Ivan.

Thanks for answering. I've opened a SR in ANSYS Customer Portal. Let's see if they can help me :)

Tomasete June 21, 2011 07:48

Solution:

[root@server]# cd /ansys_inc/v130/fluent/bin/
[root@server]# ./fluent


That's the proper route, nor the other :D

/ansys_inc/v130/fluent/fluent13.0.0

I hope it works for you

Paola September 5, 2011 03:22

Hi IvanCFD,

Did you solve the problem? The last solution given didn't work for me.

Any help would be really appreciated!

stuart23 September 5, 2011 09:59

Paola,

You need to first know where you have installed Fluent. If you don't know, open a terminal window and type:
Code:

sudo updatedb
locate fluent

This will give you a bunch of files where fluent is installed. Find the one that looks something like: ....../ansys/13.0/v130/fluent/fluent13.0.0/bin/fluent. The last 2 directories "bin/fluent" will be identical. The rest of it may be different depending on your version.

This file bin/fluent is the launcher. The easiest way to launch is by first nothing the path to "bin/fluent", and then typing in the terminal: (substituting your own path for mine)
Code:

cd /apps/ansys/13.0/v130/fluent/fluent13.0.0/bin
./fluent

Stu

Paola September 5, 2011 10:17

Thank you for the quick answer, stuart, I finally solved the problem!

In case it may help other people:

First, my computer has an architecture: x86_64 (you can see it with "uname -m" command). So I had to set the variable FLUENT_ARCH equal to lnx86, the best thing is to add this line to file .bashrc:
FLUENT_ARCH=lnx86 export FLUENT_ARCH

Second thing was that I have to launch ./fluent from this directory: ../Fluent.Inc/bin/
(instead of this ../Fluent.Inc/fluent6.3.26/bin/). I can also be added to .bashrc:

alias fluent='(personal_path)/Fluent.Inc/bin/fluent'

I'm really glad I found this forum. Best!

amirokhovat September 8, 2011 14:13

fluent for linux 64 bit
 
please put fluent link for linux 64 bit thanks very much

villager September 11, 2011 11:39

[QUOTE=Paola;322945First, my computer has an architecture: x86_64 (you can see it with "uname -m" command). So I had to set the variable FLUENT_ARCH equal to lnx86...[/QUOTE]
On my home computer:
Code:

uname -m
x86_64
and it is 64-bit system.
I use FLUENT_ARCH=lnamd64
because of FLUENT_ARCH is FLUENT architecture, not architecture of the system!
And u use FLUENT_ARCH=lnx86 because you have x86 fluent package.

Tuning Ubuntu (64-bit) to run Fluent 6.3.26
link:
http://www.cfd-online.com/Forums/flu...64-bit.html#20

Paola September 12, 2011 04:16

Oh! That was why I was all mess up at the begining :)

Ok, so is it a Fluent with a lnx86 architecture appropiated for my system 64bit?

Thank you, villager!

villager September 13, 2011 14:17

:) I think so)
I run Gambit 2.3 x86 with FLUENT_ARCH=lnx86 and Fluent 6.3 with FLUENT_ARCH=lnamd64 on my amd64. I think,if somebody use Intel x64 processors, he must specify FLUENT_ARCH=lnia64.
You can run x86 programms in 64-bit system, but you cant't run 64-bit programms in 32-bit system.
:) So, when you buying (or downloading) fluent, check its version to be compatible with your computer.

villager April 6, 2012 07:00

In addition...
 
Quote:

Originally Posted by villager (Post 324003)
I think,if somebody use Intel x64 processors, he must specify FLUENT_ARCH=lnia64.

No, lnia64 option is only for Itanium processors, and lnamd64 for both Intel and Amd processors.

FarzinD May 24, 2016 16:47

Quote:

Originally Posted by stuart23 (Post 322944)
Paola,

You need to first know where you have installed Fluent. If you don't know, open a terminal window and type:
Code:

sudo updatedb
locate fluent

This will give you a bunch of files where fluent is installed. Find the one that looks something like: ....../ansys/13.0/v130/fluent/fluent13.0.0/bin/fluent. The last 2 directories "bin/fluent" will be identical. The rest of it may be different depending on your version.

This file bin/fluent is the launcher. The easiest way to launch is by first nothing the path to "bin/fluent", and then typing in the terminal: (substituting your own path for mine)
Code:

cd /apps/ansys/13.0/v130/fluent/fluent13.0.0/bin
./fluent

Stu

Thanks. This was really helpful.

ashi.chauhan@mq.edu.au December 4, 2019 17:25

Hi There I am using Fluent in Linux and am using .jou file with following commands;

file read-case file name.cas
file read-data file name.dat
file auto-save data-frequency 0
solve update-physical-time
file auto-save data-frequency 100
solve dual-time-iterate 500 50
file write-case end-file name-1.cas
file write-data end-file name-1.dat
exit
yes

There is an error in the above mention code because I could save data files at every 100 intervals.

Can anyone help me with this?


All times are GMT -4. The time now is 09:43.