LinsysFunctions.hpp

00001 /*------------------------------------------------------------------------*/
00002 /*                 Copyright 2010 Sandia Corporation.                     */
00003 /*  Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive   */
00004 /*  license for use of this work by or on behalf of the U.S. Government.  */
00005 /*  Export of this program may require a license from the                 */
00006 /*  United States Government.                                             */
00007 /*------------------------------------------------------------------------*/
00008 
00009 #ifndef stk_linsys_LinsysFunctions_hpp
00010 #define stk_linsys_LinsysFunctions_hpp
00011 
00012 #include <stk_linsys/LinearSystem.hpp>
00013 
00014 #include <stk_mesh/base/Field.hpp>
00015 #include <stk_mesh/base/Part.hpp>
00016 #include <stk_mesh/base/BulkData.hpp>
00017 
00018 #include <Teuchos_ParameterList.hpp>
00019 
00020 
00021 namespace stk {
00022 namespace linsys {
00023 
00027 void add_connectivities(stk::linsys::LinearSystem& ls,
00028                         stk::mesh::EntityType from_type,
00029                         stk::mesh::EntityType to_connected_type,
00030                         const stk::mesh::FieldBase& field,
00031                         const stk::mesh::PartVector& part_intersection,
00032                         const stk::mesh::BulkData& mesh_bulk);
00033 
00042 void dirichlet_bc(stk::linsys::LinearSystem& ls,
00043                   const stk::mesh::BulkData& mesh,
00044                   const stk::mesh::Part& bcpart,
00045                   stk::mesh::EntityType entity_type,
00046                   const stk::mesh::FieldBase& field,
00047                   unsigned field_component,
00048                   double prescribed_value);
00049 
00050 
00066 int fei_solve(int & status, fei::LinearSystem &fei_ls, const Teuchos::ParameterList & params);
00067 
00068 
00074 void copy_vector_to_mesh( fei::Vector & vec,
00075                           const DofMapper & dof,
00076                           stk::mesh::BulkData & mesh_bulk_data
00077                         );
00078 
00079 }//namespace linsys
00080 }//namespace stk
00081 
00082 #endif
00083 

Generated on Tue Jul 13 09:27:32 2010 for Sierra Toolkit by  doxygen 1.4.7