Skip to content
Snippets Groups Projects
postprocess_cascade_case.ipynb 2.21 KiB
Newer Older
many's avatar
many committed
{
 "cells": [
  {
   "cell_type": "markdown",
   "source": [
    "Well use a GenericCascadeCase and we will load the example dataset, generated with OpenFOAM.\n",
    "We don't necessarily need a complete dataset for postprocessing procedures."
   ],
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%% md\n"
    }
   }
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "outputs": [],
   "source": [
    "from ntrfc.cascade_case.solution.generic import GenericCascadeCase\n",
    "\n",
    "inlet_path = \"../data/openfoam_cascade_case/boundary/inlet.vtp\"\n",
    "outlet_path = \"../data/openfoam_cascade_case/boundary/outlet.vtp\"\n",
    "blade_path = \"../data/openfoam_cascade_case/boundary/blade_wall.vtp\"\n",
    "fluid_path = \"../data/openfoam_cascade_case/internal.vtu\"\n",
    "\n",
    "case = GenericCascadeCase()\n",
    "\n",
    "case.read_inlet(inlet_path)\n",
    "case.read_outlet(outlet_path)\n",
    "case.read_fluid(fluid_path)\n"
   ],
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%%\n"
    }
   }
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "outputs": [
    {
     "data": {
      "text/plain": "ViewInteractiveWidget(height=768, layout=Layout(height='auto', width='100%'), width=1024)",
      "application/vnd.jupyter.widget-view+json": {
       "version_major": 2,
       "version_minor": 0,
       "model_id": "0007cf90b2614369bcb98213b3020048"
      }
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [],
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%%\n"
    }
   }
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "outputs": [],
   "source": [],
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%%\n"
    }
   }
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}