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 object, which it stores into the attribute expr.

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#

Default kind for all SymPy object. If the kind is not defined for the object, or if the object cannot infer the kind from its arguments, this will be returned.

Examples

>>> from sympy import Expr
>>> Expr().kind
UndefinedKind
property domain_dtype#

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

default_assumptions = {}#
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 object, which it stores into the attribute expr.

A DefNode represents a function definition, and it contains the full PSYDAC abstract syntax tree for the assembly function of a BilinearForm, LinearForm, or Functional.

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