{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Using Wakeflow with MCFOST" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial demonstrates the use of `wakeflow` models with the radiative transfer code `MCFOST` to create synthetic observations. It is assumed that you have read the _Quickstart Tutorial_." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Prerequisites" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "Firstly, we will need working installations of both [`MCFOST`](https://github.com/cpinte/mcfost) and [`pymcfost`](https://github.com/cpinte/pymcfost). Please see their linked Github pages and documentation for instructions on installing. Also ensure that you read their usage and citation guidelines.\n", "\n", "Let's check that our MCFOST installation is up to date and working by running the following shell command:" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ " You are running MCFOST 3.0.44\n", " Git SHA = 8686df4719b1cadb7b1d82257fc576ec8072e0c0\n", " Binary compiled the Jul 18 2022 at 11:56:15\n", " with INTEL compiler version 2021\n", " \n", " Checking last version ...\n", " MCFOST is up-to-date\n" ] } ], "source": [ "!mcfost -v" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "And checking the `pymcfost` installation by importing it:" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "WARNING: mpl_scatter_density is not present\n", "WARNING: progressbar is not present\n" ] } ], "source": [ "import pymcfost" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Provided both of these installations are working, and `wakeflow` is installed, you should be ready to proceed with the rest of the tutorial." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Required Parameters" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In order for a `wakeflow` model to be compatible with `MCFOST`, it must be run on the correct grid geometry. `wakeflow` achieves this by calling `MCFOST` to generate the geometry. We therefore have to make sure that `wakeflow` is configured correctly so that the resultant model is readable by `MCFOST`." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The _crucial_ parameters that you _must_ specify are:\n", "