Bases: ufl.coefficient.Coefficient, dolfin.cpp.function.Constant
Create constant-valued function with given value.
The data type Constant represents a constant value that is unknown at compile-time. Its values can thus be changed without requiring re-generation and re-compilation of C++ code.
Examples of usage
p = Constant(pi/4) # scalar C = Constant((0.0, -1.0, 0.0)) # constant vector