Multimesh with different FunctionSpaces on parts
5 months ago by
is it possible to define different FunctionSpaces on different parts of a MultiMesh and assemble a form which would have different contributions depending on the part ? Something like :
I have the impression that the PDE must be the same on all parts of the MultiMesh, isn't there a way to write different PDEs on different parts and connect them with a proper interface condition (eg. fluid-structure interaction or other multiphysics problems) ? Basically, I would like to avoid defining a very general FunctionSpace for the whole mesh and then set to 0 every unnecessary dof in the corresponding part.
V1 = FunctionSpace(mesh1,"CG",1) V2 = VectorFunctionSpace(mesh2,"CG",1) # definition of some Test (u1_,u2_) and Trial (du1,du2) Functions on Multimesh consisting of mesh1 + mesh2 and corresponding measures dx1 and dx2 a = dot(grad(u_1),grad(du1))*dx1 + inner(sym(grad(u2_)),sym(grad(du2_)))*dx2 + some interface condition
Thank you in advance for your help
Community: FEniCS Project
Please login to add an answer/comment or follow this question.