CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

OpenFOAM 14 for WindowstmCygwin

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 18, 2007, 02:56
Default I need a few pointers for a be
  #41
New Member
 
Chaim Luria
Join Date: Mar 2009
Location: Givat Zeev, Israel
Posts: 1
Rep Power: 0
chaimluria is on a distinguished road
I need a few pointers for a beginner in this field. I am interested in simulating wind fields in the proximity of buildings. I would like to use OpenFOAM for windows under Cygwin. Where can I find step by step beginners instructions for the installation of the software. Where can I
find information regarding the use of OpenFOAM in
this type of application?
chaimluria is offline   Reply With Quote

Old   December 18, 2007, 04:22
Default Hi again Takuya, Just tried
  #42
New Member
 
Erez Raviv
Join Date: Mar 2009
Posts: 8
Rep Power: 17
erazz is on a distinguished road
Hi again Takuya,

Just tried using the FoamX binaries from 1.3. Sorry to say that they didn't work. Guess I'm back to trying to compile mico.

How do I upload the log file?

Thanks,
Erez
erazz is offline   Reply With Quote

Old   December 18, 2007, 06:31
Default Hi, Got it to work finally
  #43
New Member
 
Erez Raviv
Join Date: Mar 2009
Posts: 8
Rep Power: 17
erazz is on a distinguished road
Hi,

Got it to work finally

I modified the line that was causing the error:
In OpenFOAM-1.4/src/mico-2.3.12/include/mico/os-misc.h
On line 286
I changed
extern "C" int gettimeofday (struct timeval *, struct timezone *);
to
extern "C" int gettimeofday (struct timeval *, void*);

Rerun ./Allmake and now everything is working great!

Again, thanks for the port... Now onto parallel processing! :D
Erez
erazz is offline   Reply With Quote

Old   December 30, 2007, 08:08
Default Hi Cygwin/Windows users, A
  #44
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
Hi Cygwin/Windows users,

A Windows binary package is prepared for ParaView 3.3-CVS snapshot with the OpenFOAM reader I posted on 23/Oct/2007. You can download from: http://oshima.eng.niigata-u.ac.jp/OpenFOAM/ParaView/

Have a look at the documentation page on the Wiki first, unpack the zip and install into any suitable directory (typically C:\Program Files\ParaView). By adjusting the line 50 of ~/OpenFOAM/OpenFOAM-1.4/.OpenFOAM-1.4/apps/paraview/bashrc in your Cygwin port installation which reads

export ParaView_INST_DIR="/cygdrive/c/Program Files/ParaView 2.6"

to point to the directory where you installed ParaView 3.3, you can load cases into ParaView with paraFoam (since the paraFoam script in Cygwin port is made to use a native reader).

Have nice holidays,
Takuya
7islands is offline   Reply With Quote

Old   January 14, 2008, 05:33
Default All Cygwin users/Takuya, I
  #45
New Member
 
Josef Fulem
Join Date: Mar 2009
Location: Prague, Czech Republic
Posts: 4
Rep Power: 17
josef is on a distinguished road
All Cygwin users/Takuya,

I have big troubles with compiling and running FoamX. Everything looks fine excepting the mico-2.3.12, there is a lot of errors and warnings. Can you help me with this.

Thanks,

Josef
josef is offline   Reply With Quote

Old   January 14, 2008, 06:14
Default Hi Josef, As can be seen from
  #46
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
Hi Josef,
As can be seen from all the posts above, getting FoamX to work seems to require a bit subtle task... I'm not sure if I can be of any help to you since I somehow almost never gone through a trouble, but could you post the error messages first?

Takuya
7islands is offline   Reply With Quote

Old   January 14, 2008, 17:53
Default Hi Takuya, I've attached th
  #47
New Member
 
Josef Fulem
Join Date: Mar 2009
Location: Prague, Czech Republic
Posts: 4
Rep Power: 17
josef is on a distinguished road
Hi Takuya,

I've attached the errors:



Thank you for any comments.

Josef
josef is offline   Reply With Quote

Old   January 14, 2008, 17:55
Default Hi Takuya, I've attached th
  #48
New Member
 
Josef Fulem
Join Date: Mar 2009
Location: Prague, Czech Republic
Posts: 4
Rep Power: 17
josef is on a distinguished road
Hi Takuya,

I've attached the errors:

Josef's build problems

Thank you for any comments.

Josef
josef is offline   Reply With Quote

Old   January 14, 2008, 19:01
Default Hi Josef, Looks like you're h
  #49
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
Hi Josef,
Looks like you're having the same problem Erez Raviv reported by the post above on Tuesday, December 18, 2007. Try the fix he suggested.

Takuya
7islands is offline   Reply With Quote

Old   January 24, 2008, 20:26
Default I have a relatively low end ma
  #50
New Member
 
Florante
Join Date: Mar 2009
Posts: 7
Rep Power: 17
florante is on a distinguished road
I have a relatively low end machine. It has been 24Hrs+ since I started to compile the beast in a XP machine and still compiling and it took a lot of time in libfiniteVolume.dll.

Is it normal?
florante is offline   Reply With Quote

Old   January 27, 2008, 10:09
Default Dear all, I am having troub
  #51
Member
 
Quinn Tian
Join Date: Mar 2009
Posts: 62
Rep Power: 17
qtian is on a distinguished road
Dear all,

I am having trouble to install OpenFoam in cygwin. After run bashrc without any problem, I am keeping geting this error code 127 while running Allwmake. It seems like problem can not find the right file.

I went to back to the wmake folder and can not find /wmake/shScripts folder. There is only folder named bashScripts there. I don't know what causes the problem. Can anyone give me some guidance here. Thanks for your help.
Btw, my computer has Vista OS.


qtian@qtian-PC ~/OpenFOAM/OpenFOAM-1.4
$ ~/OpenFOAM/OpenFOAM-1.4/Allwmake
+ /home/qtian/OpenFOAM/OpenFOAM-1.4/Allwmake
+ cd wmake
+ ./makeWmake
make: Nothing to be done for `all'.
+ cd src
+ ./Allwmake
+ cd /home/qtian/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM
+ wmakeLnInclude .
+ wmake libso zlib-1.2.1
/bin/sh: /home/qtian/OpenFOAM/OpenFOAM-1.4/wmake/shScripts/addCompile: No such f
ile or directory
Making dependency list for source file adler32.c
make: *** [adler32.dep] Error 127
+ wmake libso foamUser
/bin/sh: /home/qtian/OpenFOAM/OpenFOAM-1.4/wmake/shScripts/addCompile: No such f
ile or directory
Making dependency list for source file libfoamUser.C
make: *** [libfoamUser.dep] Error 127
+ '[' cygwin = cygwin ']'
+ '[' cygwin = cygwin ']'
+ '[' LAM = LAM ']'
+ '[' -r /home/qtian/OpenFOAM/OpenFOAM-1.4/src/lam-7.1.3/platforms/cygwinGcc4DPO
pt/lib/libmpi.a ']'
+ cd /home/qtian/OpenFOAM/OpenFOAM-1.4/src/lam-7.1.3
+ make distclean
make: *** No rule to make target `distclean'. Stop.
+ rm -rf /home/qtian/OpenFOAM/OpenFOAM-1.4/src/lam-7.1.3/platforms/cygwinGcc4DPO
pt
+ ./configure --prefix=/home/qtian/OpenFOAM/OpenFOAM-1.4/src/lam-7.1.3/platforms
/cygwinGcc4DPOpt --enable-shared --disable-static --without-romio --without-mpi2
cpp --without-profiling --without-fc
+ make
make: *** No targets specified and no makefile found. Stop.
+ make install
make: Nothing to be done for `install'.
+ make distclean
make: *** No rule to make target `distclean'. Stop.
+ cd /home/qtian/OpenFOAM/OpenFOAM-1.4/src
+ '[' cygwin = cygwin ']'
+ '[' cygwin = cygwin ']'
+ wmake libso OpenFOAM
make: *** [cygwinGcc4DPOpt/sourceFiles] Interrupt
qtian is offline   Reply With Quote

Old   January 27, 2008, 19:08
Default Hi Quinn Tian, I guess you're
  #52
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
Hi Quinn Tian,
I guess you're using /bin/sh as your console shell, or at least somehow the SHELL variable is set to /bin/sh. Use /bin/bash instead, or set the SHELL variable to /bin/bash before sourcing ~/OpenFOAM/OpenFOAM-1.4/.OpenFOAM-1.4/bashrc.

Takuya
7islands is offline   Reply With Quote

Old   January 27, 2008, 21:31
Default Takuya, Thanks for your rep
  #53
Member
 
Quinn Tian
Join Date: Mar 2009
Posts: 62
Rep Power: 17
qtian is on a distinguished road
Takuya,

Thanks for your reply. You suggestion works for me. But now I am having another problem with file cpp.exe and as.exe, after I start Allwmake. Please see the information beblow. Any comments? Thanks again for your help.


checking whether we are using the GNU Fortran 77 compiler... 13 [main] ? (3
700) C:\cygwin\home\qtian\OpenFOAM\cygwin\gcc-4.1.2\bin\cpp.exe: *** fatal error
- cygheap base mismatch detected - 0x17100861/0x611688E0.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
no
checking whether g77 accepts -g... 12 [main] ? (3340) C:\cygwin\bin\as.exe:
*** fatal error - cygheap base mismatch detected - 0x17102061/0x611688E0.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.

QT
qtian is offline   Reply With Quote

Old   February 1, 2008, 20:54
Default Hi Takuya My name is Emilia
  #54
New Member
 
Emiliano Mendoza Alvarez
Join Date: Mar 2009
Location: Queretaro, Queretaro, Mexico
Posts: 6
Rep Power: 17
austricliniano is on a distinguished road
Hi Takuya

My name is Emiliano, I new user in the cygwin environment, I install cygwin and OpenFOAM in my computer. but I have problem to use paraFoam, I donīt understand the procedure to install mico and patch FoamX-cygwin-20070723.diff.gz, I download patch FoamX-cygwin-20070723.diff.gz and unpack on OpenFoam/src

You can send procedure step to step, to install and run mico an patch paraFoam, all the command to use, for execute all installation

My OS is XPhome
austricliniano is offline   Reply With Quote

Old   February 10, 2008, 14:43
Default Hi Lucas or takuya I have t
  #55
New Member
 
Emiliano Mendoza Alvarez
Join Date: Mar 2009
Location: Queretaro, Queretaro, Mexico
Posts: 6
Rep Power: 17
austricliniano is on a distinguished road
Hi Lucas or takuya

I have the same problem taht you my OS this spanish and does not work the FoamX but and donīt understand when you say reconfigured the /etc files by running iu-config, edited the /etc/passwd file and finally re-installed the service following

you can help me
austricliniano is offline   Reply With Quote

Old   February 10, 2008, 15:36
Default Luca or Takuya the problem
  #56
New Member
 
Emiliano Mendoza Alvarez
Join Date: Mar 2009
Location: Queretaro, Queretaro, Mexico
Posts: 6
Rep Power: 17
austricliniano is on a distinguished road
Luca or Takuya

the problem is when I tray to use FoamX, the computer send the next message:
emiliano@CasaDoris ~/OpenFOAM/emiliano1.4/run/tutorials/potentialFOM$ FoamX
Starting NameServer with inet:CasaDoris:1234 ...
/home/emiliano/OpenFOAM/OpenFOAM-1.4/bin/runFoamXHB: line 144: nsd: command not
found

and standby along time, without doing nothing

Any hints on how to solve the problem?
austricliniano is offline   Reply With Quote

Old   February 11, 2008, 19:52
Default Hi Emiliano, One likely caus
  #57
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
Hi Emiliano,
One likely cause is mico wasn't compiled correctly. Check if nsd exists in OpenFOAM-1.4/src/mico-2.3.12/platforms/cygwinGccDPOpt/bin (or somewhere around there) and if it doesn't exist, try the fix in Erez Raviv's post on Tuesday, December 18, 2007.

Takuya
7islands is offline   Reply With Quote

Old   February 11, 2008, 21:01
Default Hi, Not related though to c
  #58
New Member
 
Florante
Join Date: Mar 2009
Posts: 7
Rep Power: 17
florante is on a distinguished road
Hi,

Not related though to cygwin port of OF, but this migth help others who would like to run OF on Windows(TM) OS.
Last week I was able to run OF on andLinux(Ubuntu Gutsy). OF seems to run correctly including FoamX with only problem in some needed library like libXp.so.6, libelf.so, and Xorg + change localhost in /etc/hosts to anything (I use andLinux) and comment the next two lines there.

The speed is good but I can not compare with the cygwin port since I was not able to succeed installing the cygwin port of OF.

Paraview runs rigth out of the box but it is not showing the graphics area. It is just grayed out.

So I installed the windows base of Paraview and use foamToVTK to view result.

Any thoughts on the paraview not showing the graphics area? Do I need more libs?

Thank you
florante is offline   Reply With Quote

Old   March 11, 2008, 06:35
Default Hi, I'm trying to install
  #59
kgs
New Member
 
Kasper Skriver
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 4
Rep Power: 17
kgs is on a distinguished road
Hi,

I'm trying to install the latest cygwin release. However I have some problems.

When executing the bashrc in a cygwin prompt I get the following:

KSK@PC-9862 ~/openfoam/openfoam-1.4/.openfoam-1.4
$ . bashrc
+ . bashrc
++ $'\r'
bash: $'\r': command not found
++ export $'WM_PROJECT=OpenFOAM\r'
++ WM_PROJECT=$'OpenFOAM\r'
++ export $'WM_PROJECT_VERSION=1.4\r'
++ WM_PROJECT_VERSION=$'1.4\r'
++ export $'WM_PROJECT_LANGUAGE=c++\r'
++ WM_PROJECT_LANGUAGE=$'c++\r'
++ $'\r'
bash: $'\r': command not found
bash: bashrc: line 106: syntax error near unexpected token `elif'
'ash: bashrc: line 106: ` elif [ "$processor" = "x86_64" ]; then

KSK@PC-9862 ~/openfoam/openfoam-1.4/.openfoam-1.4


What can cause this line of errors?

I have installed cygwin previous to this with out problems.

Best Regards
Kasper
kgs is offline   Reply With Quote

Old   March 11, 2008, 07:37
Default Sometimes the errors are simpl
  #60
kgs
New Member
 
Kasper Skriver
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 4
Rep Power: 17
kgs is on a distinguished road
Sometimes the errors are simply like this:

KSK@PC-9862 ~/openfoam/openfoam-1.4/.openfoam-1.4
$ . bashrc
bash: $'\r': command not found
bash: $'\r': command not found
bash: bashrc: line 106: syntax error near unexpected token `elif'
'ash: bashrc: line 106: ` elif [ "$processor" = "x86_64" ]; then

KSK@PC-9862 ~/openfoam/openfoam-1.4/.openfoam-1.4
$
kgs is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFoam vs CFX5 mass balance in OpenFoam tangd OpenFOAM Running, Solving & CFD 33 May 23, 2010 16:36
[Other] CAD and openFOAM erik023 OpenFOAM Meshing & Mesh Conversion 2 September 9, 2008 15:27
[blockMesh] CheckMesh error using a tutorial from OpenFOAM 114 with openFOAM 13 martapajon OpenFOAM Meshing & Mesh Conversion 7 January 21, 2008 12:52
OpenFOAM users in Munich OpenFOAM benutzer in M%c3%bcnchen jaswi OpenFOAM 0 August 3, 2007 13:11
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix mbeaudoin OpenFOAM Installation 2 April 28, 2006 08:54


All times are GMT -4. The time now is 18:26.