|
[Sponsors] |
[Other] Hint: double-click for lazy Win users |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 6, 2014, 11:05 |
Hint: double-click for lazy Win users
|
#1 |
New Member
Frank
Join Date: Oct 2013
Location: Germany
Posts: 2
Rep Power: 0 |
Hi there,
how about running OpenFoam cases under Windows using a compiled OF just by a double-click? I am a happy user of blueCFD-Core, but this should also work for similar compiled OF versions. (1) In the attachment you find two identical files named "Allclean.bat" and "Allrun.bat". Each dos batch file looks for a unix batch file with the same file name in the same directory and starts it. The files can just be renamed and will then look for any new file name. The files can also be copied into any new directory and will keep working. Initially, you might need to adjust the path to your OF installation (see comments). Code:
@echo off cls set PATH=%WINDIR%;%WINDIR%\SYSTEM32 rem get dos path set S_DIR=%~dp0 rem get file name (without extension) set S_FILE=%~n0 rem merge dos path and file name set S_MSYS=%S_DIR:~0,-1%\%S_FILE% rem exchange dos path "\" to unix path "/" set S_MSYS=%S_MSYS:\=/% set S_MSYS=%S_MSYS:Program Files=PROGRA~1% echo *** MSYS will start %S_MSYS% *** rem start shell (if required, please change path to msys) C:\PROGRA~1\blueCFD-Core-2.3\msys\bin\sh.exe --login -i -c %S_MSYS% set /p DUMMY=Hit ENTER to continue... Hope this might be helpful and doesn't keep you too far away from unix! Last edited by FrankFlow; November 7, 2014 at 10:58. |
|
Tags |
batch runs, tutorial, unix, windows |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[TUTORIAL] Run fluent on distributed memory with 2 windows 7 64 bit machines | ghost82 | FLUENT | 54 | February 9, 2022 04:32 |
Parallel User Defined Real Gas Model | aeroman | FLUENT | 4 | July 1, 2015 07:09 |
Error in run Batch file | saba1366 | CFX | 4 | February 10, 2013 02:15 |
How to show the transient case? | H.P.LIU | Phoenics | 7 | July 13, 2010 05:31 |
Fluent 5.5. What the differences with fluent 5.3?? | confused | FLUENT | 2 | July 29, 2001 22:58 |