Mixed Function Space as product of CG and DG

Asked by Mo

Hi folks,

Just a quick question regarding mixed formulation. Can we have a mixed function space as:

V = FunctionSpace(mesh, 'CG', 1)
V_dg = FunctionSpace(mesh, 'DG', 1)
W = MixedFunctionSpace([V_dg, V_dg, V])

Any help is deeply appreciated. Thank you in advance for your reply.

Mo

Question information

Language:
English Edit question
Status:
Solved
For:
FEniCS Project Edit question
Assignee:
No assignee Edit question
Solved by:
Mo
Solved:
Last query:
Last reply:
Revision history for this message
Anders Logg (logg) said :
#1

On Thu, Nov 08, 2012 at 01:30:57AM -0000, Mo wrote:
> New question #213637 on FEniCS Project:
> https://answers.launchpad.net/fenics/+question/213637
>
> Hi folks,
>
> Just a quick question regarding mixed formulation. Can we have a mixed function space as:
>
> V = FunctionSpace(mesh, 'CG', 1)
> V_dg = FunctionSpace(mesh, 'DG', 1)
> W = MixedFunctionSpace([V_dg, V_dg, V])
>
> Any help is deeply appreciated. Thank you in advance for your reply.

Yes, that's perfectly fine.

--
Anders

Revision history for this message
Mo (mo-h) said :
#2

Thank you Anders for your reply.