Alternatively, one can also redirect to /opt/openfoam via a symbolic link, or assign the OpenFOAM installation folder location by defining an environment variable named. For MacOS systems OpenFOAM needs to be compiled from source and installed in the folder /opt/openfoam. The first time, that's done by the install process (which is where I swiped these commands from), but subsequently you may need to do this manually. Note that running OpenFOAM via Docker containers is not supported. Questions)Ī couple of notes about actually running CfdOF: You need to have the disk mounted and OpenFOAM sourced for it to work. There's a bit here about downloading Paraview if you need to do that.
You should be able to run the test case of your choice as soon as it's compiled. It does take 3-4 hours for OpenFOAM to compile though, so plan accordingly. You can just copy/paste the lines into Terminal, and the only thing you have to do is replace with your version of OpenFOAM. The instructions here worked very nicely for me. Instead, I installed it natively (MacOS is unix based, so you can do that without a crazy amount of effort). I didn't use docker–I had OpenFOAM on docker for a while, but I got tired of having to cp files into and out of the container to be able to use them with other things. I made that pull request (and responded over on Gitlab), but I thought I'd respond here too to make everyone's life easier later on.