{
"metadata": {
"name": "",
"signature": "sha256:77dba8722b5209d78ac71bc409873bbddf89de2ed376587133077d6d8bdc6259"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Valiation Delta Wing NASA experiment for different leading edge radii\n",
"\n",
"#### Delta Wing - VORTEX AND BOUNDAYR LAYER INTERACTION----Investigation also performed within NATO VFE 2 project (DLR)\n",
"![DELTA WING](http://www.dlr.de/as/Portaldata/5/Resources/images/projekte/vfe-2/bildobjekte/Fritz-01_AS_01_400px.jpg)\n",
"![DELTA WING](http://www.dlr.de/as/Portaldata/5/Resources/images/projekte/vfe-2/bildobjekte/Konrth-01_AS_05_400px.jpg)\n",
"\n",
"\n",
"## Parameters\n",
"alpha = 13.3 \n",
"Mach = 0.4\n",
"Re = 6.0e06\n",
"\n",
"## Other parameters may be considered\n",
"\n",
"## References\n",
"\n",
"#### Chu J. and Luckring J. N. (1996). Experimental surface pressure data obtained on 65deg delta wing accorss Reynolds numerb and Mach number ranges. Nasa Technical Memorandum (TM 4645)\n",
"\n",
"## References\n",
"http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19960047655.pdf/
\n",
"http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19960025648.pdf/
\n",
"http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19960020459.pdf/
\n",
"http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19960020435.pdf/
\n",
"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Define case name\n",
"This is the solver case to be analysed"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"case_name = 'delta_sharp'\n"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 1
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Define Data Location\n",
"For remote data the interaction will use ssh to securely interact with the data
\n",
"This uses the reverse connection capability in paraview so that the paraview server can be submitted to a job scheduler
\n",
"Note: The default paraview server connection will use port 11111"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"remote_data = True\n",
"\n",
"data_dir = '/gpfs/cfms/workarea/projects/hyper_flux/delta_wing_high_Re/Delta_Wing_Sharp'\n",
"\n",
"data_host='acimpoeru@vis03'\n",
"\n",
"remote_server_auto = True\n",
"\n",
"paraview_cmd='mpiexec /gpfs/cfms/apps/bin/pvserver'\n",
"if not remote_server_auto:\n",
" paraview_cmd=None\n",
"\n",
"if not remote_data:\n",
" data_host='localhost'\n",
" paraview_cmd=None"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 2
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Initialise Environment"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"%pylab inline\n",
"from paraview.simple import *\n",
"\n",
"paraview.simple._DisableFirstRenderCameraReset()\n",
"import pylab as pl"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Populating the interactive namespace from numpy and matplotlib\n",
"paraview version 4.2.0-75-gff3f889"
]
},
{
"output_type": "stream",
"stream": "stdout",
"text": [
"\n"
]
}
],
"prompt_number": 3
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Data Connection\n",
"This starts paraview server on remote host and connects"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"from zutil.post import pvserver_connect\n",
"from zutil.post import pvserver_process\n",
"if remote_data:\n",
" pvserver_connect(data_host=data_host,data_dir=data_dir,paraview_cmd=paraview_cmd)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"[acimpoeru@vis03] Executing task 'port_test'\n",
"Selected Port: 12000\n",
"[acimpoeru@vis03] Executing task 'pvserver'\n",
"[acimpoeru@vis03] run: /bin/bash -l -c \"cd /gpfs/cfms/workarea/projects/hyper_flux/delta_wing_high_Re/Delta_Wing_Sharp && sleep 2;mpiexec /gpfs/cfms/apps/bin/pvserver -rc --client-host=localhost -sp=12000\"\n",
"[acimpoeru@vis03] out: \n",
"[acimpoeru@vis03] out: \t\t _____ ______ __ __ _____ \n",
"[acimpoeru@vis03] out: \t\t / ____| ____| \\/ |/ ____|\n",
"[acimpoeru@vis03] out: \t\t | | | |__ | \\ / | (___ \n",
"[acimpoeru@vis03] out: \t\t | | | __| | |\\/| |\\___ \\ \n",
"[acimpoeru@vis03] out: \t\t | |____| | | | | |____) |\n",
"[acimpoeru@vis03] out: \t\t \\_____|_| |_| |_|_____/ \n",
"[acimpoeru@vis03] out: \n",
"[acimpoeru@vis03] out: ++++++++++++++++++++++++++++: System Data :++++++++++++++++++++++++++++\n",
"[acimpoeru@vis03] out: + Hostname = vis03\n",
"[acimpoeru@vis03] out: + Kernel = 2.6.32-358.el6.x86_64\n",
"[acimpoeru@vis03] out: + RHEL Release = Red Hat Enterprise Linux Server release 6.4 (Santiago)\n",
"[acimpoeru@vis03] out: + Uptime = 12:31:47 up 21 days, 2:16, 11 users,\n",
"[acimpoeru@vis03] out: ++++++++++++++++++++++++++++: User Data :++++++++++++++++++++++++++++++\n",
"[acimpoeru@vis03] out: + Username = acimpoeru\n",
"[acimpoeru@vis03] out: +++++++++++++++++++++++: Contact Information :+++++++++++++++++++++++++\n",
"[acimpoeru@vis03] out: + in case of any problems, contact: support@cfms.org.uk\n",
"[acimpoeru@vis03] out: + for feedback, contact: feedback@cfms.org.uk \n",
"[acimpoeru@vis03] out: +++++++++++++++++++++: Maintenance Information :+++++++++++++++++++++++\n",
"[acimpoeru@vis03] out: + There is no planned maintenance taking place this week\n",
"[acimpoeru@vis03] out: +++++: Group Home Directory Quota Usage (updated every 10 mins) +++++\n",
"[acimpoeru@vis03] out: + \n",
"[acimpoeru@vis03] out: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n",
"[acimpoeru@vis03] out: Warning: Conflicting CPU frequencies detected, using: 3059.000000.\n",
"[acimpoeru@vis03] out: [acimpoeru@vis03] rtunnel: opened reverse tunnel: (u'127.0.0.1', 40505) -> ('172.20.1.25', 22) -> ('localhost', 11111)\n",
"Connecting to client (reverse connection requested)...\n",
"[acimpoeru@vis03] out: Connection URL: csrc://localhost:12000\n",
"[acimpoeru@vis03] out: Client connected.\n",
"[acimpoeru@vis03] out: "
]
}
],
"prompt_number": 4
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Get control dictionary"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"from zutil.post import get_case_parameters,print_html_parameters\n",
"parameters=get_case_parameters(case_name,data_host=data_host,data_dir=data_dir)"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 5
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Get status file"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"from zutil.post import get_status_dict\n",
"status=get_status_dict(case_name,data_host=data_host,data_dir=data_dir)\n",
"num_procs = str(status['num processor'])"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 6
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Define test conditions"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"alpha = 13.3 # degrees\n",
"reference_area = 594720.0 # inches^2\n",
"reference_length = 275.8 # inches, mean chord. \n",
"reference_span = 1156.75 # inches\n",
"\n",
"from IPython.display import HTML\n",
"HTML(print_html_parameters(parameters))"
],
"language": "python",
"metadata": {},
"outputs": [
{
"html": [
"
pressure | 407552.8904 |
temperature | 322.0389 |
Reynolds No | 6000000.0 |
Ref length | 0.3268 |
Speed | 0.0 |
Mach No | 0.4 |