|
[Sponsors] |
[OpenFOAM.com] 3.0+ for Windows - no shell prompt |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 12, 2016, 22:22 |
3.0+ for Windows - no shell prompt
|
#1 |
New Member
Chris Fisichella
Join Date: Oct 2012
Posts: 28
Rep Power: 13 |
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 |
|
February 13, 2016, 21:41 |
|
#2 |
New Member
Chris Fisichella
Join Date: Oct 2012
Posts: 28
Rep Power: 13 |
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. |
|
June 17, 2016, 10:59 |
|
#3 | |
New Member
Max Ng
Join Date: Jun 2016
Posts: 9
Rep Power: 9 |
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:
|
||
June 17, 2016, 11:41 |
regedit
|
#4 |
New Member
Chris Fisichella
Join Date: Oct 2012
Posts: 28
Rep Power: 13 |
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 |
|
June 17, 2016, 12:10 |
|
#5 | |
New Member
Max Ng
Join Date: Jun 2016
Posts: 9
Rep Power: 9 |
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:
|
||
June 17, 2016, 13:25 |
Working with the OpenFOAM for Windows shells
|
#6 |
New Member
Chris Fisichella
Join Date: Oct 2012
Posts: 28
Rep Power: 13 |
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 |
|
June 17, 2016, 13:56 |
|
#7 | |
New Member
Max Ng
Join Date: Jun 2016
Posts: 9
Rep Power: 9 |
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:
|
||
June 17, 2016, 14:12 |
Getting started
|
#8 |
New Member
Chris Fisichella
Join Date: Oct 2012
Posts: 28
Rep Power: 13 |
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 |
|
June 17, 2016, 14:29 |
|
#9 |
New Member
Max Ng
Join Date: Jun 2016
Posts: 9
Rep Power: 9 |
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. |
|
June 17, 2016, 14:43 |
|
#10 |
New Member
Chris Fisichella
Join Date: Oct 2012
Posts: 28
Rep Power: 13 |
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? |
|
June 17, 2016, 15:01 |
|
#11 |
New Member
Max Ng
Join Date: Jun 2016
Posts: 9
Rep Power: 9 |
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!! |
|
June 17, 2016, 15:20 |
|
#12 |
New Member
Chris Fisichella
Join Date: Oct 2012
Posts: 28
Rep Power: 13 |
Great! Have fun!
|
|
|
|
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 |