In [1]:
case_name = 'mycase'
In [2]:
remote_data = True
data_dir='mydir'
data_host='jappa@login02'
remote_server_auto = True
paraview_cmd='mpiexec ~/apps/Paraview/bin/pvserver -rc --client-host=localhost -sp=11113'
if not remote_server_auto:
paraview_cmd=None
if not remote_data:
data_host='localhost'
paraview_cmd=None
In [3]:
%pylab inline
from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()
import pylab as pl
import math
#import numpy as np
In [4]:
from zutil.post import pvserver_connect
if remote_data:
pvserver_connect(data_host,data_dir,paraview_cmd)
Get control dictionary
In [5]:
from zutil.post import get_case_parameters,print_html_parameters
parameters=get_case_parameters(data_host,data_dir,case_name)
Get status file
In [6]:
from zutil.post import get_status_dict
status=get_status_dict(data_host,data_dir,case_name)
num_procs = str(status['num processor'])
In [7]:
from IPython.display import HTML
HTML(print_html_parameters(parameters))
Out[7]:
In [14]:
from zutil.post import residual_plot, get_case_report
residual_plot(get_case_report(case_name))
show()
In [15]:
if remote_data:
#print 'Disconnecting from remote paraview server connection'
Disconnect()
In [15]: