julien.decharentenay wrote:Fer wrote:The problem is that I can't get it running with Khamsin. I first tried to change the Tool location (openFOAM -settings) to:
"C:/Program Files/OpenFOAM/DOS_Mode.bat"
A likely issue is with the setting of the tool location. It should be a batchrc.bat file probably in c:/Program Files/OpenFOAM/OpenFOAM-2.1/etc/batchrc.bat or c:/Program Files/OpenFOAM/etc/batchrc.bat
Let me know how it goes. By the way, I should probably be able to release a SketchUp 2014 version in the near future...
Thank you very much for your response, Julien.
This build of OpenFoam has three .bat files directly under the directory C:/Program Files/OpenFOAM/. They are:
DOS_Mode.bat, gompi.bat and setvars.bat.
I have tried with all three of them, but none of them seem to work with Khamsin. There are no .bat files under the etc directory in this build.
Khamsin is an awesome and really useful tool. A a new Khamsin update that supports Sketchup 2014 would be fantastic!
Thanks!
In case it helps, this is the content of the original bat files (I tried some changes but none of them worked):
DOS_Mode.bat
@echo off
%COMSPEC% /k "%~dp0\setvars.bat" %1 %2 %3 %4 %5 %6 %7 %8 %9
setvars.bat
@echo off
%~d0
cd %~dp0
set HOME=%~dps0
set HOME=%HOME:~0,-1%
rem quick jump if just one available
:ww64
set WM_COMPILER=mingw-w64
set WM_PRECISION_OPTION=DP
set WM_ARCH_OPTION=64
echo "Setting environment for mingw-w64 Double Precision (custom mingw-w64)"
goto cont
:cont
set jumpto=
set countver=
rem BEGGINING of User Modifiables --------------------------------------
set WM_COMPILER=x86_64-w64-mingw32
set WM_MPLIB=OPENMPI
set WM_PRECISION_OPTION=DP
rem END OF USER MODIFIABLES ---------------------------------------------
set USER=ofuser
set USERNAME=ofuser
set WM_PROJECT=OpenFOAM
set WM_PROJECT_VERSION=2.1.x
set FOAM_INST_DIR=%HOME%
rem set FOAM_INST_DIR=%HOME%\%WM_PROJECT%
set WM_PROJECT_INST_DIR=%FOAM_INST_DIR%
set WM_PROJECT_DIR=%FOAM_INST_DIR%\%WM_PROJECT%-%WM_PROJECT_VERSION%
set WM_PROJECT_USER_DIR=%HOME%\%USER%-%WM_PROJECT_VERSION%
set WM_THIRD_PARTY_DIR=%WM_PROJECT_INST_DIR%\ThirdParty-%WM_PROJECT_VERSION%
set WM_OS=MSwindows
set WM_ARCH=linux
set WM_COMPILE_OPTION=Opt
set WM_JAVAC_OPTION=Opt
set FOAM_SIGFPE=""
set WM_COMPILER_ARCH=""
set WM_COMPILER_LIB_ARCH=""
set WM_CC=%WM_COMPILER%-gcc
set WM_CXX=%WM_COMPILER%-g++
set FOAM_JOB_DIR=%FOAM_INST_DIR%\jobControl
set WM_DIR=%WM_PROJECT_DIR%\wmake
set WM_LINK_LANGUAGE=c++
set WM_OPTIONS=%WM_ARCH%%WM_COMPILER%%WM_PRECISION_OPTION%%WM_COMPILE_OPTION%
set FOAM_SRC=%WM_PROJECT_DIR%\src
set FOAM_LIB=%WM_PROJECT_DIR%\lib
set FOAM_LIBBIN=%FOAM_LIB%
set FOAM_APP=%WM_PROJECT_DIR%\applications
set FOAM_APPBIN=%WM_PROJECT_DIR%\bin
set FOAM_TUTORIALS=%WM_PROJECT_DIR%\tutorials
set FOAM_UTILITIES=%FOAM_APP%\utilities
set FOAM_SOLVERS=%FOAM_APP%\solvers
set FOAM_USER_LIBBIN=%WM_PROJECT_USER_DIR%\lib
set FOAM_USER_APPBIN=%WM_PROJECT_USER_DIR%\bin
set FOAM_RUN=%WM_PROJECT_USER_DIR%\run
rem IF "%WM_MPLIB%"=="dummy" set mpi_version=dummy
IF "%WM_MPLIB%"=="OPENMPI" set mpi_version=openmpi
rem set MPI_HOME=%WM_THIRD_PARTY_DIR%\%mpi_version%
rem set MPI_ARCH_PATH=%WM_THIRD_PARTY_DIR%\platforms\%WM_ARCH%%WM_COMPILER%\%mpi_version%
rem set MPICH_ROOT=%MPI_ARCH_PATH%
set FOAM_MPI_LIBBIN=%FOAM_LIBBIN%\%mpi_version%
set MPI_BUFFER_SIZE=20000000
rem set ParaView_VERSION=3.8.0
rem set ParaView_INST_DIR=%WM_THIRD_PARTY_DIR%\paraview-%ParaView_VERSION%
rem set ParaView_DIR=%WM_THIRD_PARTY_DIR%\platforms\%WM_ARCH%%WM_COMPILER%\paraview-%ParaView_VERSION%
set PATH=%PATH%;%FOAM_MPI_LIBBIN%;%FOAM_JOB_DIR%;%WM_PROJECT_USER_DIR%\lib\%WM_OPTIONS%;%WM_PROJECT_USER_DIR%\applications\bin\%WM_OPTIONS%;%FOAM_APPBIN%;%FOAM_LIBBIN%;%WM_DIR%;%WM_PROJECT_DIR%\bin;%ParaView_DIR%\bin
%1 %2 %3 %4 %5 %6 %7 %8 %9
gompi.bat
@echo off
rem ------------------------------------------------------------------------------
rem ========= |
rem \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
rem \\ / O peration |
rem \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
rem \\/ M anipulation |
rem ------------------------------------------------------------------------------
rem License
rem This file is part of blueCAPE's unofficial mingw patches for OpenFOAM.
rem
rem OpenFOAM is free software: you can redistribute it and/or modify it
rem under the terms of the GNU General Public License as published by
rem the Free Software Foundation, either version 3 of the License, or
rem (at your option) any later version.
rem
rem OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
rem ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
rem FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
rem for more details.
rem
rem You should have received a copy of the GNU General Public License
rem along with OpenFOAM. If not, see <
http://www.gnu.org/licenses/>.
rem
rem Script
rem gompi.bat
rem
rem Description
rem This batch file is analogous to foamJob, but for Windows Command Line.
rem
rem ------------------------------------------------------------------------------
@echo on
@set /A x_numprocs=4
@for /D %%a in (processor*) do set /A x_numprocs=x_numprocs+1
mpiexec -n %x_numprocs% -x HOME -x PATH -x USERNAME -x WM_PROJECT_DIR -x WM_PROJECT_INST_DIR -x WM_OPTIONS -x FOAM_LIBBIN -x FOAM_APPBIN -x FOAM_USER_APPBIN -x MPI_BUFFER_SIZE %1 -parallel %2 %3 %4 %5 %6 %7 %8 %9
@set x_numprocs=
Thanks in advance for your help!