Neko 1.99.11
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
pyneko.intf Namespace Reference

Classes

class  neko_dofmap_t
class  neko_space_t
class  neko_field_t
class  neko_coef_t

Functions

 init ()
 finalize ()
 device_init ()
 device_finalize ()
 job_info ()
 registry_init ()
 registry_free ()
 case_init (case_json, cb_initial_condition=initial_condition(0), cb_preprocess=preprocess(0), cb_compute=compute(0), cb_dirichlet_condition=dirichlet_condition(0), cb_material_properties=material_properties(0), cb_source_term=source_term(0))
 case_free (case_descr)
 time (case_descr)
 end_time (case_descr)
 tstep (case_descr)
 is_done (case_descr)
 solve (case_descr)
 step (case_descr)
 field (name)
 field_order (name)
 field_nelements (name)
 field_size (name)
 field_dofmap (name)
 case_fluid_dofmap (case_descr)
 wrap_dofmap (dof_ptr, x_ptr, y_ptr, z_ptr, size)
 field_space (name)
 case_fluid_space (case_descr)
 wrap_space (lx, zg, dr_inv, ds_inv, dt_inv, wx, wy, wz, dx, dy, dz)
 case_fluid_coef (case_descr)
 user_setup (case_descr, cb_initial_condition, cb_preprocess, cb_compute, cb_dirichlet_condition, cb_material_properties, cb_source_term)
 output (case_descr, force=False)
 callback_field (name)
 callback_field_name (index, name)
 bc_mask (msk, msk_size)
 python_str_to_fortran (s)
 python_dict_to_fortran (d)

Variables

 initial_condition = CFUNCTYPE(None, POINTER(c_char_p), c_int)
 preprocess = CFUNCTYPE(None, c_double, c_int)
 compute = CFUNCTYPE(None, c_double, c_int)
 dirichlet_condition = CFUNCTYPE(None, POINTER(c_int), c_int, c_double, c_int)
 material_properties = CFUNCTYPE(None, POINTER(c_char_p), c_int, c_double, c_int)
 source_term = CFUNCTYPE(None, POINTER(c_char_p), c_int, c_double, c_int)
 libneko = CDLL(util.find_library("neko"))
 resType
 restype
 argtypes

Function Documentation

◆ bc_mask()

pyneko.intf.bc_mask ( msk,
msk_size )

Definition at line 652 of file intf.py.

◆ callback_field()

pyneko.intf.callback_field ( name)
Retrive a callback's Neko field as a `neko_field_t`. 

Definition at line 634 of file intf.py.

Here is the call graph for this function:

◆ callback_field_name()

pyneko.intf.callback_field_name ( index,
name )
Check the name of a field at a certain index in the callback's field list. 

Definition at line 646 of file intf.py.

◆ case_fluid_coef()

pyneko.intf.case_fluid_coef ( case_descr)
Retrive coefficients of a Neko case's fluid solver as a `neko_coef_t`. 

Definition at line 484 of file intf.py.

Here is the call graph for this function:

◆ case_fluid_dofmap()

pyneko.intf.case_fluid_dofmap ( case_descr)
Retrive a dofmap of a Neko case's fluid solver as a `neko_dofmap_t`. 

Definition at line 380 of file intf.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ case_fluid_space()

pyneko.intf.case_fluid_space ( case_descr)
Retrive a space of a Neko case's fluid solver as a `neko_space_t`. 

Definition at line 433 of file intf.py.

Here is the call graph for this function:

◆ case_free()

pyneko.intf.case_free ( case_descr)
Destroy a Neko case. 

Definition at line 307 of file intf.py.

◆ case_init()

pyneko.intf.case_init ( case_json,
cb_initial_condition = initial_condition(0),
cb_preprocess = preprocess(0),
cb_compute = compute(0),
cb_dirichlet_condition = dirichlet_condition(0),
cb_material_properties = material_properties(0),
cb_source_term = source_term(0) )
Initialise a Neko case

A case is created based on a JSON file and a couple of (optional)
callback functions.

Definition at line 275 of file intf.py.

Here is the call graph for this function:

◆ device_finalize()

pyneko.intf.device_finalize ( )
Finalize Neko device lyaer. 

Definition at line 259 of file intf.py.

◆ device_init()

pyneko.intf.device_init ( )
Initialise Neko device layer. 

Definition at line 255 of file intf.py.

◆ end_time()

pyneko.intf.end_time ( case_descr)
Retrive the end time of a case. 

Definition at line 316 of file intf.py.

◆ field()

pyneko.intf.field ( name)
Retrive a Neko field as a `neko_field_t`. 

Definition at line 339 of file intf.py.

Here is the call graph for this function:

◆ field_dofmap()

pyneko.intf.field_dofmap ( name)
Retrive a dofmap of a Neko field as a `neko_dofmap_t`. 

Definition at line 366 of file intf.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ field_nelements()

pyneko.intf.field_nelements ( name)
Retrive the number of elements in a Neko field. 

Definition at line 356 of file intf.py.

◆ field_order()

pyneko.intf.field_order ( name)
Retrive the order of a Neko field. 

Definition at line 351 of file intf.py.

◆ field_size()

pyneko.intf.field_size ( name)
Retrive the total number of degrees of freedom of a Neko field. 

Definition at line 361 of file intf.py.

◆ field_space()

pyneko.intf.field_space ( name)
Retrive a space of a Neko field as a `neko_space_t`. 

Definition at line 409 of file intf.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ finalize()

pyneko.intf.finalize ( )
Finalize Neko. 

Definition at line 251 of file intf.py.

◆ init()

pyneko.intf.init ( )
Initialise Neko. 

Definition at line 247 of file intf.py.

◆ is_done()

pyneko.intf.is_done ( case_descr)
Check if a case has reached its end time. 

Definition at line 326 of file intf.py.

◆ job_info()

pyneko.intf.job_info ( )
Display job information. 

Definition at line 263 of file intf.py.

◆ output()

pyneko.intf.output ( case_descr,
force = False )

Definition at line 631 of file intf.py.

◆ python_dict_to_fortran()

pyneko.intf.python_dict_to_fortran ( d)

Definition at line 664 of file intf.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ python_str_to_fortran()

pyneko.intf.python_str_to_fortran ( s)

Definition at line 661 of file intf.py.

Here is the caller graph for this function:

◆ registry_free()

pyneko.intf.registry_free ( )
Destroy a neko registry. 

Definition at line 271 of file intf.py.

◆ registry_init()

pyneko.intf.registry_init ( )
Initialise a neko registry. 

Definition at line 267 of file intf.py.

◆ solve()

pyneko.intf.solve ( case_descr)
Solve a Neko case. 

Definition at line 331 of file intf.py.

◆ step()

pyneko.intf.step ( case_descr)
Compute a time-step for a Neko case. 

Definition at line 335 of file intf.py.

◆ time()

pyneko.intf.time ( case_descr)
Retrive the current time of a case. 

Definition at line 311 of file intf.py.

◆ tstep()

pyneko.intf.tstep ( case_descr)
Retrive the current  time-step of a case. 

Definition at line 321 of file intf.py.

◆ user_setup()

pyneko.intf.user_setup ( case_descr,
cb_initial_condition,
cb_preprocess,
cb_compute,
cb_dirichlet_condition,
cb_material_properties,
cb_source_term )
Setup user-provided callbacks. 

Definition at line 620 of file intf.py.

Here is the caller graph for this function:

◆ wrap_dofmap()

pyneko.intf.wrap_dofmap ( dof_ptr,
x_ptr,
y_ptr,
z_ptr,
size )

Definition at line 395 of file intf.py.

Here is the caller graph for this function:

◆ wrap_space()

pyneko.intf.wrap_space ( lx,
zg,
dr_inv,
ds_inv,
dt_inv,
wx,
wy,
wz,
dx,
dy,
dz )

Definition at line 457 of file intf.py.

Here is the caller graph for this function:

Variable Documentation

◆ argtypes

pyneko.intf.argtypes

Definition at line 46 of file intf.py.

◆ compute

pyneko.intf.compute = CFUNCTYPE(None, c_double, c_int)

Definition at line 25 of file intf.py.

◆ dirichlet_condition

pyneko.intf.dirichlet_condition = CFUNCTYPE(None, POINTER(c_int), c_int, c_double, c_int)

Definition at line 27 of file intf.py.

◆ initial_condition

pyneko.intf.initial_condition = CFUNCTYPE(None, POINTER(c_char_p), c_int)

Definition at line 21 of file intf.py.

◆ libneko

pyneko.intf.libneko = CDLL(util.find_library("neko"))

Definition at line 33 of file intf.py.

◆ material_properties

pyneko.intf.material_properties = CFUNCTYPE(None, POINTER(c_char_p), c_int, c_double, c_int)

Definition at line 29 of file intf.py.

◆ preprocess

pyneko.intf.preprocess = CFUNCTYPE(None, c_double, c_int)

Definition at line 23 of file intf.py.

◆ resType

pyneko.intf.resType

Definition at line 35 of file intf.py.

◆ restype

pyneko.intf.restype

Definition at line 39 of file intf.py.

◆ source_term

pyneko.intf.source_term = CFUNCTYPE(None, POINTER(c_char_p), c_int, c_double, c_int)

Definition at line 31 of file intf.py.