libMesh::DirichletBoundary Class Reference

#include <dirichlet_boundaries.h>

Public Member Functions

 DirichletBoundary (const std::set< boundary_id_type > &b_in, const std::vector< unsigned int > &variables_in, const FunctionBase< Number > *f_in, const FunctionBase< Gradient > *g_in=NULL)
 
 DirichletBoundary (const std::set< boundary_id_type > &b_in, const std::vector< unsigned int > &variables_in, const FunctionBase< Number > &f_in)
 
 DirichletBoundary (const std::set< boundary_id_type > &b_in, const std::vector< unsigned int > &variables_in, const FunctionBase< Number > &f_in, const FunctionBase< Gradient > &g_in)
 
 DirichletBoundary (const DirichletBoundary &dirichlet_in)
 

Public Attributes

std::set< boundary_id_typeb
 
std::vector< unsigned int > variables
 
AutoPtr< FunctionBase< Number > > f
 
AutoPtr< FunctionBase< Gradient > > g
 

Detailed Description

Definition at line 43 of file dirichlet_boundaries.h.

Constructor & Destructor Documentation

libMesh::DirichletBoundary::DirichletBoundary ( const std::set< boundary_id_type > &  b_in,
const std::vector< unsigned int > &  variables_in,
const FunctionBase< Number > *  f_in,
const FunctionBase< Gradient > *  g_in = NULL 
)
inline

Definition at line 46 of file dirichlet_boundaries.h.

References f, g, and libMesh::libmesh_assert().

49  :
50  b(b_in),
51  variables(variables_in),
52  f(f_in ? f_in->clone() : AutoPtr<FunctionBase<Number> >(NULL)),
53  g(g_in ? g_in->clone() : AutoPtr<FunctionBase<Gradient> >(NULL))
54  {
55  libmesh_assert(f.get());
56  f->init();
57  if (g.get())
58  g->init();
59  }
libMesh::DirichletBoundary::DirichletBoundary ( const std::set< boundary_id_type > &  b_in,
const std::vector< unsigned int > &  variables_in,
const FunctionBase< Number > &  f_in 
)
inline

Definition at line 61 of file dirichlet_boundaries.h.

References f.

63  :
64  b(b_in),
65  variables(variables_in),
66  f(f_in.clone()),
67  g(AutoPtr<FunctionBase<Gradient> >(NULL))
68  {
69  f->init();
70  }
libMesh::DirichletBoundary::DirichletBoundary ( const std::set< boundary_id_type > &  b_in,
const std::vector< unsigned int > &  variables_in,
const FunctionBase< Number > &  f_in,
const FunctionBase< Gradient > &  g_in 
)
inline

Definition at line 73 of file dirichlet_boundaries.h.

References f, and g.

76  :
77  b(b_in),
78  variables(variables_in),
79  f(f_in.clone()),
80  g(g_in.clone())
81  {
82  f->init();
83  g->init();
84  }
libMesh::DirichletBoundary::DirichletBoundary ( const DirichletBoundary dirichlet_in)
inline

Definition at line 87 of file dirichlet_boundaries.h.

References f, g, and libMesh::libmesh_assert().

87  :
88  b(dirichlet_in.b),
89  variables(dirichlet_in.variables),
90  f(dirichlet_in.f.get() ? dirichlet_in.f->clone() : AutoPtr<FunctionBase<Number> >(NULL)),
91  g(dirichlet_in.g.get() ? dirichlet_in.g->clone() : AutoPtr<FunctionBase<Gradient> >(NULL))
92  {
93  libmesh_assert(f.get());
94  f->init();
95  if (g.get())
96  g->init();
97  }

Member Data Documentation

std::set<boundary_id_type> libMesh::DirichletBoundary::b
AutoPtr<FunctionBase<Number> > libMesh::DirichletBoundary::f

Definition at line 101 of file dirichlet_boundaries.h.

Referenced by DirichletBoundary().

AutoPtr<FunctionBase<Gradient> > libMesh::DirichletBoundary::g

Definition at line 102 of file dirichlet_boundaries.h.

Referenced by DirichletBoundary().

std::vector<unsigned int> libMesh::DirichletBoundary::variables

The documentation for this class was generated from the following file:

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:16 UTC

Hosted By:
SourceForge.net Logo