To bring an abstract setting to an implementation, we just need to call
fem module of phyem,
implementation, objects = ph.fem.apply(arg0, arg1)
This function takes two arguments,
the first argument,
arg0, is an indicator implying which implementation we want to use,
the second argument.
arg1, is a dictionary of target objects; if we use
local(), we target at all local variables.
The implemented implementations are
mimetic spectral elements in Python
The outputs are the implementation body, i.e.
implementation, and a dictionary of all instances that have
their counterparts in this implementation, i.e.
objects, whose keys are the abstract variable names and
whose values are the counterparts.
If an abstract instance has no counterpart in the specified implementation, but it is still
apply (for example, through global variable dictionary
local()), it returns
no error (will just be ignored).
↩️ Back to Documentations.