pyccel / sympde

Symbolic calculus for partial differential equations (and variational forms)
http://sympde.readthedocs.io/
MIT License
20 stars 4 forks source link

Expressions as Functions API #148

Open ratnania opened 8 months ago

ratnania commented 8 months ago

Up to now, we were allowing expression (using the coordinates) to be passed directly in the weak formulation. We encountered two major problems with this approach

This issue aims at allowing the definition of a Function, as a container, for two major uses;

yguclu commented 8 months ago

Do we want a Function to be only scalar valued, or also vector and matrix valued?

yguclu commented 8 months ago

Given that we already have the classes ScalarFunction and VectorFunction, which must belong to a ScalarFunctionSpace or VectorFunctionSpace, I suggest that we use the name UserFunction for this class.

ratnania commented 8 months ago

I agree that we need to think about the API. We have different ways of doing it;