Skip to content

Instantly share code, notes, and snippets.

@robinknowles
robinknowles / foamDictionary-cheat-sheet.md
Created February 4, 2022 09:46
A cheat sheet of foamDictionary commands for making quick command-line edits to OpenFOAM dictionaries

foamDictionary Cheat Sheet

Accompanies OnCFD Newsletter #082: Quick edits with foamDictionary

Retrieve entries

# Print the top-level keywords present in this dictionary
foamDictionary system/snappyHexMeshDict -keywords

# Print the addLayersControls sub-dictionary
foamDictionary system/snappyHexMeshDict -entry addLayersControls
@robinknowles
robinknowles / Dockerfile
Created May 9, 2019 13:40
Simple OpenFOAM Dockerfile
# Start from the official Ubuntu Bionic (18.04 LTS) image
FROM ubuntu:bionic
# Install any extra things we might need
RUN apt-get update \
&& apt-get install -y \
vim \
ssh \
sudo \
wget \