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

constrained domain in MixedFunctionSpace

0 votes

Will the constrained_domain property be inherited when I merge the function together?

and is it possible to use MixedFunctionSpace only on one Function?

I am trying to run multi field problem, and I make each subfunction on a constrianed domain, i.e. periodic domain.

The first thing I have done is normal solution with one field. And I impose the periodicity on my Function.

Then I try to generalize it to adapt to the multi field layout.

# w is my function
FS_li = [wi.function_space() for wi in w]
MFS = MixedFunctionSpace(FS_li)
w_merge = Function(MFS)

but the result is different from the following code below.

FS = w.function_space()
w_merge = Function(FS)

so my question is: should I make a specific case when I only have one field and avoid MixedFunctionSpace on only one Function list?

Another question is: can the mixed function recognize my constrained domain in my sub function space?

Coz my code is a little bit lengthy, I did not paste them here.

closed with the note: solved by myself
asked Jan 2, 2016 by truemerlin FEniCS Novice (410 points)
closed Jan 3, 2016 by truemerlin

I have figured out the answer myself.

constraints on function space do inherit.

problem happens in my boundary condition, I have to set it for every field.

Thanks anyway!

...