This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

How to create FunctionSpace from a NodalEnrichedElement?

+1 vote

Hi,

I would like to create a function space based on a Nodal Enriched Element. My goal is to work with a nodal basis in an enriched space, what is not guaranteed by a standard approach

V = A + B

where A and B are two predefined spaces.

My attempt so far looks like this

T = UFCTriangle()
e = NodalEnrichedElement(Lagrange(T, 2), Bubble(T, 3))
V = FunctionSpace(mesh, e)

However, this does not work and I get the following error

V = FunctionSpace(mesh, e)
TypeError: __init__() takes at least 4 arguments (3 given)

I will be grateful for any hints how to use NodalEnrichedElement for defining function spaces.

Many thanks in advance!

asked Jan 17, 2017 by pwswierczynski FEniCS Novice (210 points)
...