Poster of Linux kernelThe best gift for a Linux geek
PeriodicBoundaries

PeriodicBoundaries

Section: C Library Functions (3) Updated: Thu Apr 7 2011
Local index Up
 

NAME

PeriodicBoundaries -  

SYNOPSIS


#include <dof_map.h>

Inherits std::map< unsigned int, PeriodicBoundary >.  

Public Member Functions


PeriodicBoundary * boundary (unsigned int id)

PeriodicBoundaries ()

~PeriodicBoundaries ()

const Elem * neighbor (unsigned int boundary_id, const MeshBase &mesh, const Elem *e, unsigned int side)
 

Detailed Description

The constraint matrix storage format. We're using a class instead of a typedef to allow forward declarations and future flexibility. Is there some issue with deriving from standard containers, i.e. don't do it because they don't have virtual destructors?

Definition at line 210 of file dof_map.h.  

Constructor & Destructor Documentation

 

PeriodicBoundaries::PeriodicBoundaries () [inline]

Definition at line 215 of file dof_map.h.

{}
 

PeriodicBoundaries::~PeriodicBoundaries ()

Definition at line 1325 of file dof_map_constraints.C.

{
}
 

Member Function Documentation

 

PeriodicBoundary * PeriodicBoundaries::boundary (unsigned intid) [inline]

Definition at line 995 of file dof_map.h.

Referenced by FEBase::compute_periodic_constraints(), and neighbor().

{
  iterator i = this->find(id);
  if (i == this->end())
    return NULL;
  return &i->second;
}
 

const Elem * PeriodicBoundaries::neighbor (unsigned intboundary_id, const MeshBase &mesh, const Elem *e, unsigned intside)

Definition at line 1329 of file dof_map_constraints.C.

References boundary(), Elem::build_side(), MeshBase::point_locator(), and PeriodicBoundary::translation_vector.

Referenced by FEBase::compute_periodic_constraints().

{
  // Find a point on that side (and only that side)

  Point p = e->build_side(side)->centroid();

  PeriodicBoundary *b = this->boundary(boundary_id);
  libmesh_assert (b);
  p += b->translation_vector;

  return mesh.point_locator().operator()(p);
}

 

Author

Generated automatically by Doxygen for libMesh from the source code.


 

Index

NAME
SYNOPSIS
Public Member Functions
Detailed Description
Constructor & Destructor Documentation
PeriodicBoundaries::PeriodicBoundaries () [inline]
PeriodicBoundaries::~PeriodicBoundaries ()
Member Function Documentation
PeriodicBoundary * PeriodicBoundaries::boundary (unsigned intid) [inline]
const Elem * PeriodicBoundaries::neighbor (unsigned intboundary_id, const MeshBase &mesh, const Elem *e, unsigned intside)
Author

This document was created by man2html, using the manual pages.
Time: 21:52:19 GMT, April 16, 2011