Using ADflow Docker =================== For installing docker for ADflow, please visit this site: `this site `_. Initialize a container ---------------------- Navigate to the directory containing the case you would like to run and initialize the Docker image you downloaded into a container, running interactively: .. code-block:: bash docker run -it --name --mount "type=bind,src=,target=" /bin/bash Replace ```` with the name you would like to give the container, set ```` to the absolute path to your case directory (call it ````), and set ```` to ``/home/mdolabuser/mount/``. Then provide the image tag as ````, matching the one downloaded previously: ``mdolab/public:``. Download helper scripts ----------------------- Download the ``dockerUsageExample`` folder from the UniFoil GitHub repository into your ```` directory using `this link `_. This folder contains: - ``run_adflow.py`` - ``aero_run.py`` - ``wing_vol.cgns`` Run the case ------------ From your host machine, start the container and run the helper script. .. code-block:: bash sudo docker start adock Add your user to the docker group (one time) so you can run Docker without sudo, then log out and back in. If that does not work, then restart the computer post command execution: .. code-block:: bash sudo usermod -aG docker $USER Now run the case from the host in the ``dockerUsage`` folder: .. code-block:: bash cd /dockerUsage python run_adflow.py --start Useful options: - ``--np 16`` to control MPI processes - ``--container `` if your container name is not ``adock`` - ``--script aero_run.py`` to select a different script - ``--workdir /home/mdolabuser/mount`` if you changed the mount path