api.ast.fem#

Functions#

compute_diag_len(p, md, mc)

convert(dtype)

This function returns the index of a Function Space in a 3D DeRham sequence

expand(args)

This function expands vector functions into indexed functions

expand_hdiv_hcurl(args)

This function expands vector functions of type hdiv and hculr into indexed functions

get_degrees(funcs, space)

get_multiplicity(funcs, space)

regroup(tests)

This function regourps the test/trial functions by their Function Space

toInteger(a)

Classes#

Inheritance diagram of psydac.api.ast.fem

AST(expr, terminal_expr, spaces, *, nquads)

The Ast class transforms a terminal expression returned from sympde into a DefNode

DefNode(name, arguments, local_variables, ...)

DefNode represents a function definition where it contains the arguments and the body

Details#

toInteger(a)[source]#
convert(dtype)[source]#

This function returns the index of a Function Space in a 3D DeRham sequence

compute_diag_len(p, md, mc)[source]#
regroup(tests)[source]#

This function regourps the test/trial functions by their Function Space

expand(args)[source]#

This function expands vector functions into indexed functions

class DefNode(name, arguments, local_variables, body, imports, results, kind, domain_dtype='real')[source]#

Bases: Basic

DefNode represents a function definition where it contains the arguments and the body

property name#
property arguments#
property local_variables#
property body#
property imports#
property results#
property kind#
property domain_dtype#

This property is used when we create the type of a constant for pyccel in build_pyccel_types_decorator.

expand_hdiv_hcurl(args)[source]#

This function expands vector functions of type hdiv and hculr into indexed functions

get_multiplicity(funcs, space)[source]#
get_degrees(funcs, space)[source]#
class AST(expr, terminal_expr, spaces, *, nquads, mapping_space=None, tag=None, mapping=None, is_rational_mapping=None, num_threads=1, **kwargs)[source]#

Bases: object

The Ast class transforms a terminal expression returned from sympde into a DefNode

property expr#
property nderiv#
property domain#
property mapping#
property dim#
property num_threads#