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

Porting FoamX to cygwin using the latest version of MICO

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2006, 06:44
Default Hi all, I am new to OpenFOA
  #1
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 all,

I am new to OpenFOAM and wanted to learn OpenFOAM along the Users Guide (which makes extensive use of FoamX) on cygwin platform, because my pc is somewhat old and have no room to run Linux.

So I did a little porting work over the Unofficial OpenFOAM Cygwin Port (http://dpdx.net/openfoam-cygwin/) and managed to run FoamX on cygwin platform using the latest version of MICO (version 2.3.12) instead of problematic 2.3.11 included in the OpenFOAM distribution. The work (porting instructions and a source patch, not the final binaries) is uploaded to the following URL, just hoping to share the work with someone who also wants to use FoamX on Cygwin/Windows platforms.

http://www002.upp.so-net.ne.jp/ohshima/OpenFOAM/FoamX-cygwin/README-20061031.htm l
7islands is offline   Reply With Quote

Old   November 15, 2006, 07:48
Default Now a binary distribution is a
  #2
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
Now a binary distribution is available from the URL above. The distribution includes minimal set of binaries and patched files to run FoamX on Cygwin/Windows.

Currently known restrictions:
1) Browsing remote hosts (described in Chapter 5 of the User Guide) seems not working but I could not figure out if this depends on porting work (or mere firewall problems etc.)
2) Csh scripts haven't ported yet; only sh (bash) scripts work.

Comments are welcome.
7islands is offline   Reply With Quote

Old   November 17, 2006, 04:09
Default i still can not install the Op
  #3
Senior Member
 
wayne.zhang
Join Date: Mar 2009
Location: Shanghai, Shanghai, P.R.China
Posts: 309
Rep Power: 18
waynezw0618 is on a distinguished road
Send a message via MSN to waynezw0618 Send a message via Skype™ to waynezw0618
i still can not install the OpenFOAM following with you,the error has been sent to your email (a jpg file),could you please help me to install it ?
i use Cygwin 1.5.1
thanks
waynezw0618 is offline   Reply With Quote

Old   November 17, 2006, 05:36
Default I saw the JPEG you sent but am
  #4
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
I saw the JPEG you sent but am not good at reading Chinese; I suppose it reads something like "entry point _impure_ptr missing in cygwin1.dll."
How about replacing Cygwin to the current version? I'm using 1.5.21-2.
7islands is offline   Reply With Quote

Old   November 22, 2006, 06:45
Default Hello Takuya I ported FoamX
  #5
New Member
 
Rolf Hansen
Join Date: Mar 2009
Posts: 10
Rep Power: 17
rogn is on a distinguished road
Hello Takuya

I ported FoamX using both methods you suggested. FoamX works, but every time I put in numbers into the boxes in FoamX i get an error message "Number not of correct type". I tried to set the language (export LANG=en_EN) in the FoamX run script in the OpenFOAM-1.3/bin dir as suggested by Bernhard Gschnaider elsewhere in this forum, but it did'nt work: http://www.cfd-online.com/OpenFOAM_Discus/messages/1/99.html?1162237335 l

Do you have a suggestion, on how to fix this?

Best Regards
Rolf Hansen
rogn is offline   Reply With Quote

Old   November 22, 2006, 08:41
Default Hello Takuya 1 i have insta
  #6
Senior Member
 
wayne.zhang
Join Date: Mar 2009
Location: Shanghai, Shanghai, P.R.China
Posts: 309
Rep Power: 18
waynezw0618 is on a distinguished road
Send a message via MSN to waynezw0618 Send a message via Skype™ to waynezw0618
Hello Takuya
1 i have installed the cygwin1.5.21-2today,and when i do the "source ~/OpenFOAM/.OpenFOAM-1.3/bashrc",restarted the cygwin there is too many ":command not found" finally it shows "Excuting:/home/Administrator/O.."and so on.
2 when i do"~/OpenFOAM/OpenFOAM-1.3/postinstall.sh
" the error says "postinstall.sh: line 16: syntax error : unexpected end of file"
3 when i run FoamX in the bash the GUI was show,but can not connect to the service
could you please help me?
waynezw0618 is offline   Reply With Quote

Old   November 22, 2006, 08:51
Default by the way when i restarted co
  #7
Senior Member
 
wayne.zhang
Join Date: Mar 2009
Location: Shanghai, Shanghai, P.R.China
Posts: 309
Rep Power: 18
waynezw0618 is on a distinguished road
Send a message via MSN to waynezw0618 Send a message via Skype™ to waynezw0618
by the way when i restarted computer and do the FoamX in cygwin,and GUI was run,but no files under the tree of my computer
waynezw0618 is offline   Reply With Quote

Old   November 22, 2006, 08:57
Default by the way when i restarted co
  #8
Senior Member
 
wayne.zhang
Join Date: Mar 2009
Location: Shanghai, Shanghai, P.R.China
Posts: 309
Rep Power: 18
waynezw0618 is on a distinguished road
Send a message via MSN to waynezw0618 Send a message via Skype™ to waynezw0618
by the way when i restarted computer and do the FoamX in cygwin,and GUI was run,but no files under the tree of my computer,the the messagebox says casebrowser can not be connected
waynezw0618 is offline   Reply With Quote

Old   November 22, 2006, 12:41
Default Hi Rolf! Converning your pr
  #9
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Rolf!

Converning your problem with the numbers in FoamX: I don't have a Cygwin-OpenFOAM available, so I can only do a guess: the Java that is used for running is the usual "Java as provided by Sun for Windows" (check with "which java")? If that is the case it doesn't "see" the environment-variables that are manipulated in cygwin (because it's a Windows-app and not aware of Cygwin). If you are lucky a similar (to LANG in Linux) environment variable exists for Windows (and can be manipulated either with DOS-set or a utility provided by Cygwin)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   November 22, 2006, 12:52
Default Hi Rolf! Converning your pr
  #10
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Rolf!

Converning your problem with the numbers in FoamX: I don't have a Cygwin-OpenFOAM available, so I can only do a guess: the Java that is used for running is the usual "Java as provided by Sun for Windows" (check with "which java")? If that is the case it doesn't "see" the environment-variables that are manipulated in cygwin (because it's a Windows-app and not aware of Cygwin). If you are lucky a similar (to LANG in Linux) environment variable exists for Windows (and can be manipulated either with DOS-set or a utility provided by Cygwin)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   November 22, 2006, 18:44
Default Hi Rolf and Bernhard, I thi
  #11
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 Rolf and Bernhard,

I think the same way as Bernhard; the Sun Java VM on Windows probably does not see the LANG environment variable. Could you try appending a line
<pre>
-Duser.language=en \
</pre>
in the last part of the FoamX script which invokes the Java VM as follows?
<pre>
"$jdkhome/bin/java" \
-cp "$jars" \
-DFoamX.SystemPath="$WM_PROJECT_DIR" \
-DFoamX.SystemConfigPath="$FOAMX_CONFIG" \
-DFoamX.UserConfigPath="$FOAMX_CONFIG" \
-Duser.language=en \
FoamX.App $orbArgs $args
</pre>
7islands is offline   Reply With Quote

Old   November 22, 2006, 22:09
Default Hi wayng.zhang, Judging by
  #12
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 wayng.zhang,

Judging by also considering your other posts in the Installation board, I have a feeling that there might be something wrong in your cygwin installation, rather than OpenFOAM or FoamX. I can't say for sure but especially suspicious are environment-variable settings and well-known newline code conversion problem (binmode/textmode; see http://cygwin.com/cygwin-ug-net/using-textbinary.html). You wouldn't be able to run the case browser anyway unless the environment variables are correctly set and nsd is run properly.
7islands is offline   Reply With Quote

Old   November 30, 2006, 07:21
Default Hi Takuya and Bernhard Than
  #13
New Member
 
Rolf Hansen
Join Date: Mar 2009
Posts: 10
Rep Power: 17
rogn is on a distinguished road
Hi Takuya and Bernhard

Thank you for your suggestions. It works now, as I have appended the line:

-Duser.language=en \

in the FoamX script proposed by Takuya.

Best Regards
Rolf Hansen
rogn is offline   Reply With Quote

Old   December 1, 2006, 08:20
Default Hi Rolf, thanks for reporting.
  #14
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 Rolf, thanks for reporting. It'll be an important fix for non-English users.
7islands is offline   Reply With Quote

Old   December 11, 2006, 08:45
Default Hi Cygwin users, I'm happy
  #15
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 users,

I'm happy to announce availability of the second version of FoamX-cygwin, FoamX-cygwin-20061212. Both source and binary distributions are available. Also, an update patch from the previous version, FoamX-cygwin-20061031, is available as there's no change in binary executables (just applying the patch will do). See the "Updating from the previous version" section in the following URL to update. I'd like to thank those who reported problems and gave suggestions as to the previous version.

The URL:
http://www002.upp.so-net.ne.jp/ohshima/OpenFOAM/FoamX-cygwin/README-20061212.htm l

What's new in FoamX-cygwin-20061212:
* Fix: FoamX doesn't allow to enter numbers in a non-English environment.
* Fix: Some tutorial cases refuse to open saying ``FoamXIOError "Non-optional dictionary entry '****' not found in dictionary ****::default"''.
* New: Now you can run FoamX in a csh (or tcsh) environment.
* New: Now you have the foamToVTK menu item in the FoamX right-click menu (Foam Utilities -> postProcessing -> dataConversion -> foamToVTK).
* Change: The binary distribution now includes iordump and nsadmin so that you can do some troubleshooting and administrative works (which is described in the section 5.1.1 of the User Guide).
* Change: The version of JDK which JAVA_HOME variable points to is updated to jdk1.5.0_10 from jdk1.5.0_09. If you'd like to continue to use jdk1.5.0_09, rewrite the JAVA_HOME line in $WM_PROJECT_DIR/.bashrc or .cshrc accordingly.
7islands is offline   Reply With Quote

Old   December 29, 2008, 16:03
Default Hi Takuya Can you pls post
  #16
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 17
alexandrepereira is on a distinguished road
Hi Takuya

Can you pls post an english version of the tutorial of your utility gmshFoam in http://openfoamwiki.net/index.php/Contrib_gmshFoam...?

I am a Portuguese user of OpenFOAM, recently installed the utility, and will try to make a win32 port of it... I really would like to read your tutorial... :-)

Best regards

Alex
alexandrepereira is offline   Reply With Quote

Old   December 30, 2008, 00:04
Default Hi Alex, Although I current
  #17
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 Alex,

Although I currently have no plan to translate it in English, the usage should be quite straightforward (you will simply have options to import from / export to OpenFOAM mesh format). The tutorial is a material I've been using in my lecture course, so if I were to have a course in English I would be happy to translate it :-)

Takuya
7islands is offline   Reply With Quote

Old   December 31, 2008, 02:27
Default Addendum: try svn co https://
  #18
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
Addendum: try
svn co https://of-interfaces.svn.sourceforg...trunk/gmshFoam
if you intend to use the utilities in conjunction with 1.5-series (but the gmsh patch still is not ported to 1.5, only the standalone utilities should work).

T
7islands is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
FoamX MICO exception critter OpenFOAM Pre-Processing 1 February 8, 2008 05:23
FoamX CygWin port problem Boundary conds cannot be altered kranenborg OpenFOAM Pre-Processing 0 July 18, 2007 22:01
FoamX problem with Brooksb Cygwin port irc OpenFOAM Installation 3 February 20, 2007 19:46
The latest version Ivan Siemens 1 August 29, 2006 10:28
latest version of fluent masood yooceframandi FLUENT 10 January 22, 2005 19:21


All times are GMT -4. The time now is 04:34.