CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Porting FoamX to cygwin using the latest version of MICO (http://www.cfd-online.com/Forums/openfoam-pre-processing/62014-porting-foamx-cygwin-using-latest-version-mico.html)

7islands October 31, 2006 06:44

Hi all, I am new to OpenFOA
 
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 November 15, 2006 07:48

Now a binary distribution is a
 
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.

waynezw0618 November 17, 2006 04:09

i still can not install the Op
 
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

7islands November 17, 2006 05:36

I saw the JPEG you sent but am
 
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.

rogn November 22, 2006 06:45

Hello Takuya I ported FoamX
 
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

waynezw0618 November 22, 2006 08:41

Hello Takuya 1 i have insta
 
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 November 22, 2006 08:51

by the way when i restarted co
 
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 November 22, 2006 08:57

by the way when i restarted co
 
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

gschaider November 22, 2006 12:41

Hi Rolf! Converning your pr
 
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)

gschaider November 22, 2006 12:52

Hi Rolf! Converning your pr
 
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)

7islands November 22, 2006 18:44

Hi Rolf and Bernhard, I thi
 
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 November 22, 2006 22:09

Hi wayng.zhang, Judging by
 
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.

rogn November 30, 2006 07:21

Hi Takuya and Bernhard Than
 
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

7islands December 1, 2006 08:20

Hi Rolf, thanks for reporting.
 
Hi Rolf, thanks for reporting. It'll be an important fix for non-English users.

7islands December 11, 2006 08:45

Hi Cygwin users, I'm happy
 
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.

alexandrepereira December 29, 2008 16:03

Hi Takuya Can you pls post
 
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

7islands December 30, 2008 00:04

Hi Alex, Although I current
 
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 December 31, 2008 02:27

Addendum: try svn co https://
 
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


All times are GMT -4. The time now is 06:30.