Technically OpenFOAM should just work if has been installed in the default locations and can be found. As stated in the documentation
https://www.featool.com/doc/openfoam.html#install_of_winThe OpenCFD ESI distribution should be installed in the
%USERPROFILE%\AppData\Roaming\ESI-OpenCFD\OpenFOAM
directory with a subfolder like "v2012" containing a file named something like "setEnvVariables-v2012.bat", please first confirm that this really is the case. If you run the following code in Matlab and it finds OpenFOAM it should be ok, if not you have to install it in the correct location indicated by the "searchdir" path.
userhome = getenv('USERPROFILE')
searchdir = fullfile(userhome,'AppData','Roaming','ESI-OpenCFD','OpenFOAM')
esi_openfoam_found = false;
if( exist(searchdir)==7 )
d = dir(searchdir);
for i=3:length(d)
d_i = dir(fullfile(searchdir,d(i).name));
if( any(~cellfun( @isempty, regexp( {d_i.name}, 'setEnvVariables.*\.bat' ) )) )
foamdir = fullfile(searchdir,d(i).name)
esi_openfoam_found = true;
break;
end
end
end
esi_openfoam_found
If the ESI distribution still does not work then please try the blueCFD Core OpenFOAM distribution as they are for all intents and purposes equivalent.
https://bluecfd.github.io/Core/Downloads/#bluecfd-core-2017-2