Sounds like you want to use FEMSystem for Navier-Stokes with a non-homogeneous DirichletBoundary. This is done in fem_system_ex1, so I suggest you look there. The boundary conditions are specified via subclasses of FunctionBase, e.g. see class BdyFunction : public FunctionBase<Number> in naviersystem.C.
David On 07/24/2014 10:07 PM, Sahai, Amal wrote: > How would one reconstruct a variable that has a non-homogeneous boundary > condition defined through the DirichletBoundary class? I am attempting to do > something that FEMContext::interior point does and I am having a hard time > understanding what > elem_subsolutions<http://libmesh.sourceforge.net/doxygen/classlibMesh_1_1DiffContext.php#ae0cafd7ed0cc3ed64049dcde2c5def28> > refers to. I would be very grateful if someone could point me in the right > direction. I am basically trying to build a Navier Stokes solver using the > LinearTransientImplicit System and wish to set the boundary conditions using > DirichletBoundary. I need to understand how to reconstruct values from the > previous time step. > > Regards > Amal > ________________________________ > From: Sahai, Amal > Sent: Friday, July 18, 2014 5:22 PM > To: libmesh-users@lists.sourceforge.net > Subject: Basis Functions at Dirichlet Boundary > > Can the value of the basis functions be modified so that they are 0 at the > boundaries where Dirichlet Boundary conditions are declared? > > Regards > Amal > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > Libmesh-users mailing list > Libmesh-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/libmesh-users ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users