Creating subdomains on a cube

Hey,
i am trying to create subdomains on a cube mesh because i want to impose a mixed functionspace on it, but solve two different, coupled equations on it.
The main geometry itself is a cube, but i want the cube and its top plate as two sperate subdomains on which i can solve the equations in one formulation.

How do i correctly declare the subdomains?

Thanks in regards!

Do you want to solve a different equation in each region? If so, have a look at: [1911.01166] Abstractions and automated algorithms for mixed domain finite element methods
and corresponding github repo: GitHub - cdaversin/mixed-dimensional-examples: Code to reproduce numerical examples presented in "Abstractions and automated algorithms for mixed-dimensional finite element methods" (2019)

1 Like

Yes, one equation on the top of the cube, therefore a plate and the other equation on the rest of the volume.
The equations are coupled and i hope, that using subdomains, make it possible to use a mixed element space

A MixedElement is defined over the whole domain. Its intended usage is for instance when you have multiple variables on the full domain, such as a velocity-pressure pair. I would suggest having a look at the references I linked you above.

That is kind of the case, i first tried to solve each domain for itself and transfer the value from one functionspace to the ofther, since they are coupled. I was already able to define the desired functionspace with the desired subdomains. I will continue reading the references, but will mark this question as solved.

Thanks a lot!