{ "cells": [ { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "PHiX Plasma Facing Components\n", "===\n", "\n", "\n", "``cherab-phix`` provides Plasma Facing Components (PFC) mesh files.\n", "All components are shown as follows:" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "jupyter": { "source_hidden": true }, "tags": [] }, "outputs": [], "source": [ "from cherab.phix.machine import show_PFCs_3D\n", "\n", "fig = show_PFCs_3D()\n", "fig.show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Importing PHiX PFC meshes\n", "---" ] }, { "cell_type": "raw", "metadata": { "raw_mimetype": "text/restructuredtext" }, "source": [ "When you load PHiX PFC meshes into your scenegraph,\n", "``cherab-phix`` provides you the useful function:\n", ":obj:`.import_phix_mesh`.\n", "Here is an example of the use of that function:" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from raysect.optical import World\n", "\n", "from cherab.phix.machine import import_phix_mesh\n", "\n", "world = World()\n", "meshes = import_phix_mesh(world, reflection=True)" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.9.15 | packaged by conda-forge | (main, Nov 22 2022, 15:55:03) \n[GCC 10.4.0]" }, "vscode": { "interpreter": { "hash": "2725905a4c02db19e04df9b8fdbbe5ec65a73ea52bebaf9474aa1cc98819834c" } }, "widgets": { "application/vnd.jupyter.widget-state+json": { "state": {}, "version_major": 2, "version_minor": 0 } } }, "nbformat": 4, "nbformat_minor": 4 }