|
[Sponsors] |
December 18, 2007, 03:56 |
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 |
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? |
|
December 18, 2007, 05:22 |
Hi again Takuya,
Just tried
|
#42 |
New Member
Erez Raviv
Join Date: Mar 2009
Posts: 8
Rep Power: 17 |
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 |
|
December 18, 2007, 07:31 |
Hi,
Got it to work finally
|
#43 |
New Member
Erez Raviv
Join Date: Mar 2009
Posts: 8
Rep Power: 17 |
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 |
|
December 30, 2007, 09:08 |
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 |
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 |
|
January 14, 2008, 06:33 |
All Cygwin users/Takuya,
I
|
#45 |
New Member
Josef Fulem
Join Date: Mar 2009
Location: Prague, Czech Republic
Posts: 4
Rep Power: 17 |
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 |
|
January 14, 2008, 07:14 |
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 |
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 |
|
January 14, 2008, 18:53 |
Hi Takuya,
I've attached th
|
#47 |
New Member
Josef Fulem
Join Date: Mar 2009
Location: Prague, Czech Republic
Posts: 4
Rep Power: 17 |
Hi Takuya,
I've attached the errors: Thank you for any comments. Josef |
|
January 14, 2008, 18:55 |
Hi Takuya,
I've attached th
|
#48 |
New Member
Josef Fulem
Join Date: Mar 2009
Location: Prague, Czech Republic
Posts: 4
Rep Power: 17 |
||
January 14, 2008, 20:01 |
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 |
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 |
|
January 24, 2008, 21:26 |
I have a relatively low end ma
|
#50 |
New Member
Florante
Join Date: Mar 2009
Posts: 7
Rep Power: 17 |
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? |
|
January 27, 2008, 11:09 |
Dear all,
I am having troub
|
#51 |
Member
Quinn Tian
Join Date: Mar 2009
Posts: 62
Rep Power: 17 |
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 |
|
January 27, 2008, 20:08 |
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 |
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 |
|
January 27, 2008, 22:31 |
Takuya,
Thanks for your rep
|
#53 |
Member
Quinn Tian
Join Date: Mar 2009
Posts: 62
Rep Power: 17 |
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 |
|
February 1, 2008, 21:54 |
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 |
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 |
|
February 10, 2008, 15:43 |
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 |
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 |
|
February 10, 2008, 16:36 |
Luca or Takuya
the problem
|
#56 |
New Member
Emiliano Mendoza Alvarez
Join Date: Mar 2009
Location: Queretaro, Queretaro, Mexico
Posts: 6
Rep Power: 17 |
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? |
|
February 11, 2008, 20:52 |
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 |
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 |
|
February 11, 2008, 22:01 |
Hi,
Not related though to c
|
#58 |
New Member
Florante
Join Date: Mar 2009
Posts: 7
Rep Power: 17 |
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 |
|
March 11, 2008, 07:35 |
Hi,
I'm trying to install
|
#59 |
New Member
Kasper Skriver
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 4
Rep Power: 17 |
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 |
|
March 11, 2008, 08:37 |
Sometimes the errors are simpl
|
#60 |
New Member
Kasper Skriver
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 4
Rep Power: 17 |
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 $ |
|
|
|
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 17:36 |
[Other] CAD and openFOAM | erik023 | OpenFOAM Meshing & Mesh Conversion | 2 | September 9, 2008 16:27 |
[blockMesh] CheckMesh error using a tutorial from OpenFOAM 114 with openFOAM 13 | martapajon | OpenFOAM Meshing & Mesh Conversion | 7 | January 21, 2008 13:52 |
OpenFOAM users in Munich OpenFOAM benutzer in M%c3%bcnchen | jaswi | OpenFOAM | 0 | August 3, 2007 14:11 |
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix | mbeaudoin | OpenFOAM Installation | 2 | April 28, 2006 09:54 |