|
[Sponsors] |
March 17, 2017, 05:39 |
Running OpenFoam on Windows from cmd
|
#1 |
New Member
Mhamad Mahdi Alloush
Join Date: Sep 2015
Location: Beirut, Lebanon
Posts: 11
Rep Power: 11 |
Hi everyone,
I have so far read a lot of things about docker, machines, containers .. but still I cant run openfoam commands on the windows cmd. I need to run the commands from the typical cmd terminal of windows. Thanks |
|
March 17, 2017, 06:55 |
|
#2 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
You may install the windows port from cfd support
http://www.cfdsupport.com/de/openfoam-for-windows.html The standard is running the program from a windows version of bash. It is possible however, to use the cmd console. You have to set the execution path to all libraries the program requires, that's all.
__________________
Uwe Pilz -- Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950) |
|
March 17, 2017, 07:04 |
|
#3 |
New Member
Mhamad Mahdi Alloush
Join Date: Sep 2015
Location: Beirut, Lebanon
Posts: 11
Rep Power: 11 |
Thanks. The thing is that I wan to make a batch file which includes a set of commands:
1) start openfoam container 2) go to directory of openfoam case 3) run openfoam solver So, is it possibe? |
|
March 17, 2017, 13:03 |
|
#4 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
For that, you don't need to use the command shell. The bash will do this as well and without problems with search paths. Simply write a shell script, which is very similar to a batch file of cmd.
__________________
Uwe Pilz -- Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting Started with OpenFOAM | wyldckat | OpenFOAM | 26 | June 21, 2024 07:54 |
[Other] How to install OpenFOAM under Windows? | lzgwhy | OpenFOAM Installation | 19 | October 7, 2023 05:27 |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 07:55 |
OpenFOAM (Linux) in a MS-HPC-Cloud | fossy | OpenFOAM | 6 | September 23, 2010 12:48 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 07:25 |