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

[OpenFOAM.com] 3.0+ for Windows - no shell prompt

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By fisichel
  • 1 Post By fisichel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 12, 2016, 22:22
Default 3.0+ for Windows - no shell prompt
  #1
New Member
 
Chris Fisichella
Join Date: Oct 2012
Posts: 28
Rep Power: 13
fisichel is on a distinguished road
Hi,

I am wondering if anyone has had any success with installing ESI's OpenFOAM for Windows. I got it installed and when I started the OpenFOAM_start program, I got a registry editor error.
Set-ExecutionPolicy : Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\M icrosoft\PowerShell\1\ShellIds\Microsoft.PowerShel l' is denied.

As it turns out, the advice on this
http://answers.microsoft.com/en-us/w...9b31bf5?auth=1

page is good. I just edited the registry and the error went away.

Now, I get a green "Welcome to the OpenFOAM Windows Version (v3.0+)
A bash shell will appear with OpenFOAM environment set.
********************************


I never get a bash shell. Does anyone know how to fix this?

Thanks,
Chris
fisichel is offline   Reply With Quote

Old   February 13, 2016, 21:41
Default
  #2
New Member
 
Chris Fisichella
Join Date: Oct 2012
Posts: 28
Rep Power: 13
fisichel is on a distinguished road
All, there is a PDF in C:\Program Files (x86)\ESI\OpenFOAM\v3.0+\Documents called OF_Windows_Guide.pdf. It provides essential information for installation. For example, I needed to enable hardware virtualization in my BIOS. That, by the way, is found under Security->System for this AMD processor I have.

So far so good. I have a icoFoam -help working. I don't know where the examples are yet, but I have also not finished reading that PDF. At least OpenFOAM is installed.

Thanks for all who viewed.
fisichel is offline   Reply With Quote

Old   June 17, 2016, 10:59
Smile
  #3
New Member
 
Max Ng
Join Date: Jun 2016
Posts: 9
Rep Power: 9
maxkcngcfd is on a distinguished road
Hi Fisichel,

do you mind to share more about how do you edit the register and making the error go away? i tried to read through the link you provide and doesn't get me any where. appreciate your help!

Quote:
Originally Posted by fisichel View Post
Hi,

I am wondering if anyone has had any success with installing ESI's OpenFOAM for Windows. I got it installed and when I started the OpenFOAM_start program, I got a registry editor error.
Set-ExecutionPolicy : Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\M icrosoft\PowerShell\1\ShellIds\Microsoft.PowerShel l' is denied.

As it turns out, the advice on this
http://answers.microsoft.com/en-us/w...9b31bf5?auth=1

page is good. I just edited the registry and the error went away.

Now, I get a green "Welcome to the OpenFOAM Windows Version (v3.0+)
A bash shell will appear with OpenFOAM environment set.
********************************


I never get a bash shell. Does anyone know how to fix this?

Thanks,
Chris
maxkcngcfd is offline   Reply With Quote

Old   June 17, 2016, 11:41
Default regedit
  #4
New Member
 
Chris Fisichella
Join Date: Oct 2012
Posts: 28
Rep Power: 13
fisichel is on a distinguished road
Hi,

Sure, You need to use the program regedit. It's part of windows. In that link, it should provide a directory path to go to. Then they have you loosen the permissions.

Does this help? I'm not quite sure where you are stuck,

Best,
Chris
fisichel is offline   Reply With Quote

Old   June 17, 2016, 12:10
Default
  #5
New Member
 
Max Ng
Join Date: Jun 2016
Posts: 9
Rep Power: 9
maxkcngcfd is on a distinguished road
yes, i managed to get rid of the big red error msg and every thing seem running fine now! thanks Fisichel!

did you go any further from here? i tried to run the tutorial and i manage to get the Icofoam work however i'm having hard time to locate all the boundary condition file, and mesh files etc. the "OF_Windows_Guide.pdf" mentioned that the ‘cd /home/ofuser/workingDir’ is correspond to C:\Users\UserName. but i couldn't find any openfoam related file over there other than bootdocker files and some associated VM files.

without knowing where those case files located i can't change the parameters in the file as well as reading the result with paraview.

Quote:
Originally Posted by fisichel View Post
Hi,

I am wondering if anyone has had any success with installing ESI's OpenFOAM for Windows. I got it installed and when I started the OpenFOAM_start program, I got a registry editor error.
Set-ExecutionPolicy : Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\M icrosoft\PowerShell\1\ShellIds\Microsoft.PowerShel l' is denied.

As it turns out, the advice on this
http://answers.microsoft.com/en-us/w...9b31bf5?auth=1

page is good. I just edited the registry and the error went away.

Now, I get a green "Welcome to the OpenFOAM Windows Version (v3.0+)
A bash shell will appear with OpenFOAM environment set.
********************************


I never get a bash shell. Does anyone know how to fix this?

Thanks,
Chris
Quote:
Originally Posted by fisichel View Post
Hi,

Sure, You need to use the program regedit. It's part of windows. In that link, it should provide a directory path to go to. Then they have you loosen the permissions.

Does this help? I'm not quite sure where you are stuck,

Best,
Chris
maxkcngcfd is offline   Reply With Quote

Old   June 17, 2016, 13:25
Default Working with the OpenFOAM for Windows shells
  #6
New Member
 
Chris Fisichella
Join Date: Oct 2012
Posts: 28
Rep Power: 13
fisichel is on a distinguished road
Hi Max,

If you have the command window, it has the black screen. Then, you should be able to press the enter key and get a prompt:

$

The first thing I do is
$cd workingDir
$ls

that listing should correspond to
c:\users\<your login>

You can copy most of the examples that are located at $FOAM_TUTORIALS to this workingDir, then you can use Notepad++ to edit the case directories.

To execute the Allrun script that is every example, you need to be in the shell. A typical job starts like this for me:

$./Allrun <enter>

Then, I use Notepad++ to look at all the log files that are generated.

confused about ./Allrun? Don't try to use icoFoam directly unless you are working with the cavity example that is part of the OpenFOAM users guide.

Best,
Chris
fisichel is offline   Reply With Quote

Old   June 17, 2016, 13:56
Default
  #7
New Member
 
Max Ng
Join Date: Jun 2016
Posts: 9
Rep Power: 9
maxkcngcfd is on a distinguished road
Hi Chris,

I see! thank you so much! I tried to cp $FOAM_TUTORIALS workingDir. after it throw me some error in the command line, and I saw some files appear in the folder (Finally!!) Do you do it this way too? or what is your recommendation?

did you installed paraview (for window) and get it to work also? yes, i'm trying to going through the cavity tutorial but after i done the icoFoam i do not know what should i do from there inorder to make it display in paraview. sign.

Quote:
Originally Posted by fisichel View Post
Hi Max,

If you have the command window, it has the black screen. Then, you should be able to press the enter key and get a prompt:

$

The first thing I do is
$cd workingDir
$ls

that listing should correspond to
c:\users\<your login>

You can copy most of the examples that are located at $FOAM_TUTORIALS to this workingDir, then you can use Notepad++ to edit the case directories.

To execute the Allrun script that is every example, you need to be in the shell. A typical job starts like this for me:

$./Allrun <enter>

Then, I use Notepad++ to look at all the log files that are generated.

confused about ./Allrun? Don't try to use icoFoam directly unless you are working with the cavity example that is part of the OpenFOAM users guide.

Best,
Chris
maxkcngcfd is offline   Reply With Quote

Old   June 17, 2016, 14:12
Default Getting started
  #8
New Member
 
Chris Fisichella
Join Date: Oct 2012
Posts: 28
Rep Power: 13
fisichel is on a distinguished road
Hi Max

Try:
$ cp -r $FOAM_TUTORIALS/ ~/workingDir/

If that works, try
$ cd workingDir/tutorials
$ cd incompressible
$ cd icoFOAM
$ cd elbow
$./Allrun

You'll see the cavity examples in the icoFOAM directory. I'm suggesting you go to the elblow example, because all you need to type is ./Allrun.

As for Paraview, I do install Paraview for windows, but it does not work all the time. Of the four machines I have tried it on, it only works on two of them. I hope it works for you, since this is your first time.

Best,
Chris
pgh and maxkcngcfd like this.
fisichel is offline   Reply With Quote

Old   June 17, 2016, 14:29
Default
  #9
New Member
 
Max Ng
Join Date: Jun 2016
Posts: 9
Rep Power: 9
maxkcngcfd is on a distinguished road
Thanks Chris,

I follow the step that you gave me it throw me the same error too (see the attached picture)

I look it around and found this commend allow me to "export" the file to .foam file

elbow]$ touch filename.foam.

however, i could only manage to display the mesh (model shape) but couldn't display the P and U value.
Attached Images
File Type: png Untitled.png (57.0 KB, 10 views)
maxkcngcfd is offline   Reply With Quote

Old   June 17, 2016, 14:43
Default
  #10
New Member
 
Chris Fisichella
Join Date: Oct 2012
Posts: 28
Rep Power: 13
fisichel is on a distinguished road
That's what I meant when I wrote most of the tutorial can be run in the workingDir.

The case study that is affected is for heat transfer.

Your elbow case should be unaffected.

Did you run ./Allrun in the elbow directory and wait?
fisichel is offline   Reply With Quote

Old   June 17, 2016, 15:01
Default
  #11
New Member
 
Max Ng
Join Date: Jun 2016
Posts: 9
Rep Power: 9
maxkcngcfd is on a distinguished road
Hi Chris,

yes, i got the elbow case to work also I think i get the paraview to work!!

thanks to Hữu Trọng Lương
https://www.youtube.com/watch?v=LJNyUiDTVjU

so excited now!!
maxkcngcfd is offline   Reply With Quote

Old   June 17, 2016, 15:20
Default
  #12
New Member
 
Chris Fisichella
Join Date: Oct 2012
Posts: 28
Rep Power: 13
fisichel is on a distinguished road
Great! Have fun!
maxkcngcfd likes this.
fisichel 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
[ICEM] .stl file shell to solid part emily.imdieke ANSYS Meshing & Geometry 18 May 25, 2023 02:05
Shell conduction on pipe wall Tal Eluk FLUENT 3 May 31, 2018 06:19
problem in running icoFoam Alucard OpenFOAM 2 March 17, 2012 09:01
shell conduction ezabille FLUENT 2 December 15, 2010 17:42
shell conduction @ thin walls Jiri Beran FLUENT 0 May 18, 2008 14:08


All times are GMT -4. The time now is 15:50.