Corfield
 All Classes Namespaces Files Functions Variables Pages
Variables
f2py_example Namespace Reference

An example to run Corfield through its Python wrapper. More...

Variables

int nphi = 5
 
int nthe = 2
 
 npoint = nphi*nthe
 
list phi_list = [0]
 
list the_list = [0]
 
 ipoint = i*nthe+j
 
string magmap_src = 'WSO'
 
int magmap_carr = 2164
 
tuple magmap_date = datetime.datetime(2000,1,1)
 
tuple magmap_path = os.path.join(os.getcwd(),'dir.input','wso2164.txt')
 
string magmap_type = 'CRMAP'
 

Detailed Description

An example to run Corfield through its Python wrapper.

Select the Corfield model you want to use (see module_corona.path_corfield_pfss). Default is this one (.).
Requirements:
Python3 + numpy
Inputs:
Use magnetogram in dir.input folder (see magmap_path variable).
Use a template config file in dir.python (see model_corfield_pfss.template_relative_path).
Outputs:
Launch a Corfield simulation in dir.tmp folder (see model_corfield_pfss.db_connect_tool_path).
Fieldlines: List of module_fieldline.Fieldline() objects.

Variable Documentation

f2py_example.ipoint = i*nthe+j
int f2py_example.magmap_carr = 2164
tuple f2py_example.magmap_date = datetime.datetime(2000,1,1)
tuple f2py_example.magmap_path = os.path.join(os.getcwd(),'dir.input','wso2164.txt')
string f2py_example.magmap_src = 'WSO'
string f2py_example.magmap_type = 'CRMAP'
int f2py_example.nphi = 5
f2py_example.npoint = nphi*nthe
int f2py_example.nthe = 2
list f2py_example.phi_list = [0]
list f2py_example.the_list = [0]