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   July 17, 2008, 23:40
Default Can you try the modified ParaV
  #101
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
Can you try the modified ParaView 3.2.1 downloadable from http://oshima.eng.niigata-u.ac.jp/Op...iew/index.html ?

T
7islands is offline   Reply With Quote

Old   July 18, 2008, 09:42
Default Thanks, Laurence. After I c
  #102
New Member
 
Paul Chang
Join Date: Mar 2009
Posts: 11
Rep Power: 17
paulchang is on a distinguished road
Thanks, Laurence.

After I created the softlink "ln -s flex flex++", the errors are significantly less. The installation, however, is still unsuccessful. The following is a copy of the error messages:


make: *** [/home/paul/OpenFOAM/OpenFOAM-1.4/lib/cygwinGcc4DPOpt/libtriSurface.dll] Error 1
.
.
make: *** [/home/paul/OpenFOAM/OpenFOAM-1.4/lib/cygwinGcc4DPOpt/libcombustionThermophysica lModels.dll] Error 1
.
.
make[3]: *** [/home/paul/OpenFOAM/OpenFOAM-1.4/applications/bin/cygwinGcc4DPOpt/ansysToFoam] Error 1
make[3]: Leaving directory `/home/paul/OpenFOAM/OpenFOAM-1.4/applications/utilities/mesh/conversion/ansysTo Foam'
make[2]: *** [ansysToFoam] Error 2
make[2]: Leaving directory `/home/paul/OpenFOAM/OpenFOAM-1.4/applications/utilities/mesh/conversion'
make[1]: *** [conversion] Error 2
make[1]: Leaving directory `/home/paul/OpenFOAM/OpenFOAM-1.4/applications/utilities/mesh'
make: *** [mesh] Error 2
+ '[' 0 = 1 -a '' = doc ']'
paulchang is offline   Reply With Quote

Old   July 18, 2008, 10:36
Default Are you getting the error u
  #103
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23
l_r_mcglashan will become famous soon enough
Are you getting the error

undefined reference to yyFlexLexer::yywrap()

associated with any of those error messages? If so, I think that particular problem has a workaround on these forums, albeit not a nice one.
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote

Old   July 18, 2008, 10:57
Default Hello all, Has anybody trie
  #104
New Member
 
Yi Wang
Join Date: Mar 2009
Posts: 17
Rep Power: 17
jason_wy is on a distinguished road
Hello all,

Has anybody tried the ParaView that Takuya posted with OpenFOAM 1.5 release? It seems they are not compatible.

I got the following error message, when I start to load the data:

ERROR: In \cygwin\home\kankyo\install\ParaView3\3.2\ParaView 3.2.1\VTK\IO\vtkOpenFOAMReader .cxx, line 3851
vtkOpenFOAMReader (05B2BC78): Numbers of faces in owner and neighbor don't match


ERROR: In \cygwin\home\kankyo\install\ParaView3\3.2\ParaView 3.2.1\VTK\Filtering\vtkExecuti ve.cxx, line 757
vtkCompositeDataPipeline (05B45240): Algorithm vtkOpenFOAMReader(05B2BC78) returned failure for request: vtkInformation (05E2ED30)
Debug: Off
Modified Time: 88040
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA
ALGORITHM_AFTER_FORWARD: 1
KEYS_TO_COPY: UPDATE_BLOCKS
FROM_OUTPUT_PORT: 0
FORWARD_DIRECTION: 0


Is it easy to fix it?

Thanks,

Yi
jason_wy is offline   Reply With Quote

Old   July 18, 2008, 11:29
Default Yi, This is easy to fix. "N
  #105
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Yi,

This is easy to fix. "Numbers of faces in owner and neighbor don't match" is an incorrect check. Since the boundary faces don't have neighbours, the list of neighbours will be shorter than the list of owners. In some OpenFOAM versions, these virtual neighbours were tagged with '-1' and both lists had the same length. A shorter neighbour list is fine though, so you can remove the check or use this:

if(nNeigh > nFaces)
{
vtkErrorMacro(<<"More neighbours than faces");
return false;
}
olesen is offline   Reply With Quote

Old   July 18, 2008, 11:39
Default As Mark says it's expected. Th
  #106
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
As Mark says it's expected. The reader is already working with 1.5 in my (and Mark's I hope) hands thanks to Mark's suggestions, but I still have to do several fine adjustments before release. Hopefully I can post a new version soon.

T
7islands is offline   Reply With Quote

Old   July 18, 2008, 14:19
Default Laurence, thank you for the he
  #107
New Member
 
Paul Chang
Join Date: Mar 2009
Posts: 11
Rep Power: 17
paulchang is on a distinguished road
Laurence, thank you for the help.

The error did relate to yyFlexLexer::yywrap(), and I modified those files mentioned in this post:

http://www.cfd-online.com/cgi-bin/Op...2652#POST22652

One more compilation, however, just generated more errors. The following is part of those errors (please note: this time, the errors relate to more programs)

Creating library file: /home/paul/OpenFOAM/OpenFOAM-1.4/lib/cygwinGcc4DPOpt/libcombustionThermophysical Models.achemkinReader.o:chemkinReader.C.rdata$_ZTVN4Foam13chemkinReaderE[vtable for Foam::chemkinReader]+0x48): undefined reference to `yyFlexLexer::yywrap()'
chemkinLexer.o:chemkinLexer.C.rdata$_ZTV11yyFlexLexer[vtable for yyFlexLexer]+0x28): undefined reference to `yyFlexLexer::yywrap()'
collect2: ld returned 1 exit status

make: *** [/home/paul/OpenFOAM/OpenFOAM-1.4/lib/cygwinGcc4DPOpt/libcombustionThermophysica lModels.dll] Error 1
.
.
/home/paul/OpenFOAM/OpenFOAM-1.4/src/mico-2.3.12/platforms/cygwinGcc4DPOpt/inclu de/string.h:49: error: expected ';' before 'operator'
.
/home/paul/OpenFOAM/cygwin/gcc-4.1.2/bin/../lib/gcc/i686-pc-cygwin/4.1.2/include /c++/cstring:81: error: '::memmove' has not been declared
.
/home/paul/OpenFOAM/cygwin/gcc-4.1.2/bin/../lib/gcc/i686-pc-cygwin/4.1.2/include /c++/bits/char_traits.h:253: error: 'memcmp' was not declared in this scope
.
/home/paul/OpenFOAM/cygwin/gcc-4.1.2/bin/../lib/gcc/i686-pc-cygwin/4.1.2/include /c++/bits/locale_facets.h:1152: error: 'memcpy' was not declared in this scope.
.
/home/paul/OpenFOAM/OpenFOAM-1.4/src/mico-2.3.12/platforms/cygwinGcc4DPOpt/inclu de/mico/throw.h:111: error: 'strcmp' was not declared in this scope
.
PatchTool.C:883: warning: use of old-style cast
.
PatchTool.C:5694: error: 'strcmp' was not declared in this scope
.
.
.
paulchang is offline   Reply With Quote

Old   July 18, 2008, 14:47
Default Thanks Mark and Takuya! Do
  #108
New Member
 
Yi Wang
Join Date: Mar 2009
Posts: 17
Rep Power: 17
jason_wy is on a distinguished road
Thanks Mark and Takuya!

Does this mean I need to make the change you suggested in OpenFoam reader and recompile it with ParaView? If so, I will probably wait for Takuya's version.

Yi
jason_wy is offline   Reply With Quote

Old   July 18, 2008, 18:04
Default Hi Paul, I can sympathise w
  #109
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23
l_r_mcglashan will become famous soon enough
Hi Paul,

I can sympathise with you as it took me the best part of 2 days to get the Cygwin port running on both my laptop and my desktop.
To be honest, if you really want to use OpenFOAM, run it on Linux, where the installation is generally rather trivial. I only use the Cygwin port to run the odd bits and bobs from home.
I too still had some errors in the compilation but I only use the main solvers and libraries, which compiled fine. Have you tried running the solvers you are interested in? I just don't have the time to be rigorous about this unfortunately.
The best I can do for you is to send you a document that I wrote whilst installing both Cygwin and OF. My e-mail is lrm29@cam.ac.uk_delete_this_bit if you're interested.
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote

Old   July 21, 2008, 13:13
Default Thanks, Laurence. I really app
  #110
New Member
 
Paul Chang
Join Date: Mar 2009
Posts: 11
Rep Power: 17
paulchang is on a distinguished road
Thanks, Laurence. I really appreciate your kind offer. Could you send the document to paulchang6@yahoo.com?
paulchang is offline   Reply With Quote

Old   July 28, 2008, 17:37
Default Hello all, I've been trying t
  #111
New Member
 
Pablo Grazziotin
Join Date: Mar 2009
Posts: 6
Rep Power: 17
pablocg is on a distinguished road
Hello all,
I've been trying to get OF to run on windows for quite a few days already. Thanks Laurence for the assistance through emails. I'm having a problem now with FoamX. I managed to get it to run, used for a bit, then closed it and could never get it to work again. This is the error im getting:

$ FoamX
Starting NameServer with inet:PEVPG1:1234 ...
uncaught MICO exception: IDL:omg.org/CORBA/INITIALIZE:1.0 (0, not-completed)
3 [sig] nsd 1456 _cygtls::handle_exceptions: Error while dumping state (pr
obably corrupted stack)
/home/evxpg1/OpenFOAM/OpenFOAM-1.4/bin/runFoamXHB: line 149: 1456 Segmentation
fault (core dumped) nsd -ORBIIOPAddr $myIOP --ior $FOAMX_CONFIG/ns.ref < /d
ev/null

Any suggestions appreciated.
Thanks,
-Pablo
pablocg is offline   Reply With Quote

Old   July 31, 2008, 18:11
Default When try to compile the solver
  #112
eno
New Member
 
Sean Bian
Join Date: Mar 2009
Posts: 19
Rep Power: 17
eno is on a distinguished road
When try to compile the solver turbFoam i had the following error:

wmake
/bin/sh: C:\cygwin\OpenFOAM\OpenFOAM-1.4\applications\wmake/bashScripts/addCompile: /bin/bash: bad interpreter: Permission denied
Making dependency list for source file turbFoam.C
make: *** [turbFoam.dep] Error 126
eno is offline   Reply With Quote

Old   August 4, 2008, 16:51
Default What's your login shell? Could
  #113
Member
 
Ola Widlund
Join Date: Mar 2009
Location: Sweden
Posts: 87
Rep Power: 17
olwi is on a distinguished road
What's your login shell? Could it be that it's not bash? Type "echo $SHELL", or check the last column of your user id:s line in /etc/passwd. It should read /bin/bash. I cannot reproduce your error, but I have a vague memory of something similar a year ago, on another PC, before I cleaned up the cygwin installation...

/Ola
olwi is offline   Reply With Quote

Old   August 4, 2008, 17:40
Default Thanks for respond, now the er
  #114
eno
New Member
 
Sean Bian
Join Date: Mar 2009
Posts: 19
Rep Power: 17
eno is on a distinguished road
Thanks for respond, now the error is like:
wmake
Dropping import dependency files
/OpenFOAM/OpenFOAM-1.4/wmake/bashScripts
/OpenFOAM/OpenFOAM-1.4/applications/bin/cygwinGcc4DPOpt/turbFoam
make: execvp: /OpenFOAM/OpenFOAM-1.4/wmake/bashScripts/mkObjectDir: Permission denied
make: *** [/OpenFOAM/OpenFOAM-1.4/applications/bin/cygwinGcc4DPOpt/turbFoam] Error 127
eno is offline   Reply With Quote

Old   August 5, 2008, 08:14
Default Hi Sean, The error message
  #115
Member
 
Ola Widlund
Join Date: Mar 2009
Location: Sweden
Posts: 87
Rep Power: 17
olwi is on a distinguished road
Hi Sean,

The error message suggests that the script mkObjectDir does not have permission for whatever action it attempts. Either you're having problems with permissions (are you running under a uid other than the uid used for unpacking the OF tarballs?), or you're doing something strange...

In what directory are you typing "wmake"? Why are you trying to recompile only turbFoam, inside the original OF tree? Have you already compiled the whole library yourself, without error, or are you using the precompiled binaries?

I get the feeling you are doing something strange, possibly new to cygwin and/or linux.

/Ola
olwi is offline   Reply With Quote

Old   August 5, 2008, 11:20
Default Thanks Ola, I am trying to co
  #116
eno
New Member
 
Sean Bian
Join Date: Mar 2009
Posts: 19
Rep Power: 17
eno is on a distinguished road
Thanks Ola,
I am trying to compile 1.4 but with too many errors so I test compiling turbFoam. eventually i hope to be able to run some custom make solvers/BCs.(my 1.3 binary installation is working)
I run wmake in:
C:\cygwin\OpenFOAM\OpenFOAM-1.4\applications\solvers\incompressible\turbFoam

There are only a few lines in mkObjectDir:
if [ $# = 1 ]
then
if [ ! -d ${1%/*} -a $1 != ${1%/*} ]
then
mkdir -p ${1%/*}
fi
fi

I should be able to mkdir in c:\cygwin...

Appreciate your advice
eno is offline   Reply With Quote

Old   August 7, 2008, 16:03
Default Laurence, With more tries,
  #117
New Member
 
Paul Chang
Join Date: Mar 2009
Posts: 11
Rep Power: 17
paulchang is on a distinguished road
Laurence,

With more tries, my installation is still not successful. I'll just use it in Linux. Anyway, thank you for the kind help.
paulchang is offline   Reply With Quote

Old   August 9, 2008, 06:54
Default Hi Sean, Well, can _you_ mk
  #118
Member
 
Ola Widlund
Join Date: Mar 2009
Location: Sweden
Posts: 87
Rep Power: 17
olwi is on a distinguished road
Hi Sean,

Well, can _you_ mkdir in c:\cygwin... ??? Try it by hand.

You say you tried compiling the whole 1.4, but got too many errors. The errors do tell you something... Something is obviously not well. I would try to look at the first error and figure out what happens.

Possibly you should re-unpack the whole tar pack and try from scratch... I followed the README of the cygwin pack to the last dot, and I had no problems. Maybe you shouldn't recompile everything? Just make a copy of turbFoam (myTurbFoam, for example), and see if it compiles?

Bon courage, as the French say...

/Ola
olwi 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 14:15.