On 02/08/2012 05:07 PM, Sylvain Vallaghe wrote: > I'm trying to implement a 2d problem in libmesh where I have two scalar > variables : one is 2d in the whole domain, the other is 1d and mapped on one > of the boundaries of my domain. These two variables are coupled due to the > global variational formulation. I don't know how to define my 1d variable so > that it can be part of the equation_systems (since it is based on a 2d mesh). > In the examples I've seen so far, problems with multiple variables all have > the same dimension (e.g. Stokes). > Any help would be much appreciated.
An EquationSystems object is tied to a Mesh, so it seems like you'd have to have two separate EquationSystems. But this would necessitate some sort of "loose coupling," which maybe you were hoping to avoid? Note that you can extract a boundary mesh using BoundaryMesh boundary_mesh(dim-1); mesh.boundary_info->sync(requested_boundary_ids, boundary_mesh); David ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
