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

paraFoam won't Run. Please Help!

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 23, 2012, 12:49
Unhappy paraFoam won't Run. Please Help!
  #1
New Member
 
Alfredo Gutierrez
Join Date: Sep 2012
Location: Azusa, Ca
Posts: 11
Rep Power: 14
InHisYouth is on a distinguished road
Hi All,

I am a new user to openFOAM and am not sure what to do. I have just installed bluecfd-singlecore (blueCFD-SingleCore 2.1-1 installer) from the following website:

http://code.google.com/p/bluecfd-sin...wiki/UserGuide

I have also download ParaView (v3.14, ParaView Binary Installers for 64-Bit Windows, though the installation guide for what files from the first link above was not as detailed as I would have liked) for post processing from the following webiste:

http://www.paraview.org/paraview/resources/software.php

I am working through the first tutorial, Cavity Flow, and I got blockMesh to run just fine. However, when I try to use paraFoam to view the mesh, I get the follow error:

"Windows cannot find 'paraview.exe'. Make sure you typed the name correctly, and then try again."

I thought I may have not created the correct batch file when installing ParaView manually, as the instructions were most likely written for Linux and had a different version of ParaView.

Can anyone help? Thank you in advance!
InHisYouth is offline   Reply With Quote

Old   September 23, 2012, 13:17
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Alfredo and welcome to the forum!

I'm sorry about the very few instructions that the page provides, but that's all we managed to provide for free online so far.

Anyway, did you follow the instructions from this section: ParaView @ blueCFD-SingleCore UserGuide

Best regards,
Bruno (the guy responsible for blueCFD )
__________________
wyldckat is offline   Reply With Quote

Old   September 23, 2012, 13:24
Default
  #3
New Member
 
Alfredo Gutierrez
Join Date: Sep 2012
Location: Azusa, Ca
Posts: 11
Rep Power: 14
InHisYouth is on a distinguished road
Hi Bruno!

No worries about the instructions, I am just a bit frustrated at how little I know about this software.

I followed the instructions under "ParaView" however, I think my problem lies in the step where I have to create the batch file in \etc\config...

Regards,
Alfredo
InHisYouth is offline   Reply With Quote

Old   September 23, 2012, 13:35
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
OK, it's simple to do, but the instructions assume that Windows doesn't get in the way What I mean is that you probably created a file named "paraview.bat.txt".

Therefore, since Windows doesn't always cooperate, here's what you can do:
  1. Start one of the blueCFD-SingleCore command lines.
  2. Go into the "config.d" directory:
    Code:
    cd "%WM_PROJECT_DIR%"
    cd etc\config.d
  3. Create an empty file:
    Code:
    echo. > ParaView.bat
  4. Edit it:
    Code:
    notepad ParaView.bat
  5. Place the code in it:
    Code:
    set PATH=%PATH%;C:\Program Files\ParaView 3.14.1
  6. Save the file.
  7. Start a new blueCFD-SingleCore command line and you're ready to go!
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 23, 2012, 13:42
Default
  #5
New Member
 
Alfredo Gutierrez
Join Date: Sep 2012
Location: Azusa, Ca
Posts: 11
Rep Power: 14
InHisYouth is on a distinguished road
Let me try the steps you outlined above! Please note the following differences I found thus far in the coding:

1) My config directory is "etc\config" not "etc\config.d". Does this matter?
2) In step 5, "C:\Program Files\ParaView 3.14.1", my computer has C:\Program Files (x86)....so I will replace the code with that. Is that ok?

I will let you know if this fixes the problem.

Thank you!!
InHisYouth is offline   Reply With Quote

Old   September 23, 2012, 14:16
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Alfredo,

You have to create the folder "etc\config.d". It's from there that blueCFD loads up custom environment initializations.
The instructions may be very summarized, but they tell no lies OK, they don't mention that the folder has to be created...


As for ParaView: If you are using ParaView 64bit, then why did it land in the "x86" folder? I don't remember the ParaView 64bit installer messing up something so simple....

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 23, 2012, 14:34
Default
  #7
New Member
 
Alfredo Gutierrez
Join Date: Sep 2012
Location: Azusa, Ca
Posts: 11
Rep Power: 14
InHisYouth is on a distinguished road
Hi Bruno,

Thank you for the clarification! I knew I must have been missing something pretty simple. I have created the new folder at the following location:

C:\Program Files (x86)\blueCFD-SingleCore-2.1\OpenFOAM-2.1\etc\config.d

However, I am still getting the same error However, If I open ParaView I can open the case.foam file and view the mesh that way. I would still like to try and get the command line to open ParaView though.

As far as ParaView, I am not sure why it saved in the "x86" folder. Maybe user error?

Should I uninstall everything and install it in the non "x86" folder?

Regards,
Alfredo
InHisYouth is offline   Reply With Quote

Old   September 23, 2012, 14:39
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Uhm... did you create the folder "config.d" and move the "paraview.bat" file from "config" to that new folder?

After that, you need to start a new blueCFD-SingleCore command line...
__________________
wyldckat is offline   Reply With Quote

Old   September 23, 2012, 14:48
Default
  #9
New Member
 
Alfredo Gutierrez
Join Date: Sep 2012
Location: Azusa, Ca
Posts: 11
Rep Power: 14
InHisYouth is on a distinguished road
I did....I created the new folder (config.d) under etc, so i have the following folders under

C:\Program Files (x86)\blueCFD-SingleCore-2.1\OpenFOAM-2.1\etc

codeTemplates
config
config.d
thermoData

Along with other files.

ParaView.bat is within the config.d folder...

I have started a new blueCFD-SingleCore command line and have gone through the tutorial. I am able to use blockMesh, but have no luck with paraFoam...

Thank you for all your help and I'm sorry for all of the headache...

Regards,
Alfredo
InHisYouth is offline   Reply With Quote

Old   September 23, 2012, 14:52
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
OK, let's see if this magic trick works:
  1. Start a new command line. Any new command line will work, doesn't matter if it's the done from/with blueCFD-SingleCore or not.
  2. Run this command:
    Code:
    dir "C:\Program Files (x86)\blueCFD-SingleCore-2.1\OpenFOAM-2.1\etc\config.d"
  3. There you probably will see a file named "ParaView.bat.txt". Am I correct?
  4. If I'm wrong, then what does the file therein contain?
    Code:
    cd "C:\Program Files (x86)\blueCFD-SingleCore-2.1\OpenFOAM-2.1\etc\config.d"
    type ParaView.bat
__________________
wyldckat is offline   Reply With Quote

Old   September 23, 2012, 15:02
Default
  #11
New Member
 
Alfredo Gutierrez
Join Date: Sep 2012
Location: Azusa, Ca
Posts: 11
Rep Power: 14
InHisYouth is on a distinguished road
I see the following: (thought it would be easier to attach a screenshot)

09/23/2012 10:25 AM <DIR> .
09/23/2012 10:25 AM <DIR> ..
09/23/2012 10:26 AM 51 ParaView.bat
1 File(s) 51 bytes
2 Dir(s) 299,372,552,192 bytes free

When I the second code you gave me, right after I type ParaView.bat, I get a lot of lines of coding (a screenshot would help show this clearly)....
InHisYouth is offline   Reply With Quote

Old   September 23, 2012, 15:09
Default
  #12
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Wait... I think I'm starting to remember what the problem might be... Look into the folder where ParaView is installed. Is the "paraview.exe" executable file inside that folder or is it inside a sub-folder named "bin"?

I'm asking this because I don't have a Windows machine handy right now
__________________
wyldckat is offline   Reply With Quote

Old   September 23, 2012, 15:11
Default
  #13
New Member
 
Alfredo Gutierrez
Join Date: Sep 2012
Location: Azusa, Ca
Posts: 11
Rep Power: 14
InHisYouth is on a distinguished road
The "paraview.exe" executable file is inside the sub-folder named "bin"....
InHisYouth is offline   Reply With Quote

Old   September 23, 2012, 15:19
Default
  #14
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
I suppose you've already guessed it... Add "\bin" to the end of the line in "ParaView.bat" we've been talking about:
Code:
set PATH=%PATH%;C:\Program Files (x86)\ParaView 3.14.1\bin
__________________
wyldckat is offline   Reply With Quote

Old   September 23, 2012, 16:06
Default
  #15
New Member
 
Alfredo Gutierrez
Join Date: Sep 2012
Location: Azusa, Ca
Posts: 11
Rep Power: 14
InHisYouth is on a distinguished road
Bruno!!! You are amazing!! I had guessed it right after you asked about the bin folder, but I finally got paraFoam to work!!

Thank you for all of your help!! I'm sure I will be posting additional questions as I know nothing about openFOAM (thus this simple fix was way over my head )

Regards,
Alfredo
InHisYouth 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
crash:parallel run and writetime? calim_cfd OpenFOAM Bugs 2 March 5, 2012 20:13
First Parallel Run - need some help Gian Maria OpenFOAM 3 June 17, 2011 13:08
[OpenFOAM] ParaFoam reader duartealbuquerque ParaView 21 December 24, 2009 00:29
paraFoam does not run Rainer OpenFOAM Installation 4 September 2, 2009 09:13
Windows 64-bit, Distributed Parallel Run Issues... Erich CFX 3 March 28, 2006 17:36


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