59 for (
int ibc = 1; ibc <= nbc; ++ibc ) {
64 if ( ( abc = dynamic_cast< ActiveBoundaryCondition * >(bc) ) ) {
71 if ( ( bodyLoad = dynamic_cast< BodyLoad * >(bc) ) ) {
72 const IntArray &elements =
set->giveElementList();
73 for (
int ielem = 1; ielem <= elements.
giveSize(); ++ielem ) {
75 this->
elemList[elements.
at(ielem)-1].push_back(entry);
77 }
else if ( ( bLoad = dynamic_cast< BoundaryLoad * >(bc) ) ) {
78 const IntArray &boundaries =
set->giveBoundaryList();
79 for (
int ibnd = 1; ibnd <= boundaries.
giveSize() / 2; ++ibnd ) {
80 int eid = boundaries.
at(ibnd * 2 - 1) ;
81 int bid = boundaries.
at(ibnd * 2);
82 Entry entry (ibc, bid);
83 this->
elemList[eid-1].push_back(entry);
87 const IntArray &edgeBoundaries =
set->giveEdgeList();
88 for (
int ibnd = 1; ibnd <= edgeBoundaries.
giveSize() / 2; ++ibnd ) {
89 int eid = edgeBoundaries.
at(ibnd * 2 - 1) ;
90 int bid = edgeBoundaries.
at(ibnd * 2);
91 Entry entry(ibc, bid);
92 this->
elemList[eid-1].push_back(entry);
int giveNumberOfBoundaryConditions() const
Returns number of boundary conditions in domain.
Class implementing element body load, acting over whole element volume (e.g., the dead weight)...
Helper class storing a sigle record for component (element, node, etc)
int giveNumberOfElements() const
Returns number of elements in domain.
Class implementing an array of integers.
int & at(int i)
Coefficient access function.
const entryListType & getElementRecords(int elem)
std::vector< entryListType > elemList
list keeping element entries
GeneralBoundaryCondition * giveBc(int n)
Service for accessing particular domain bc.
int giveSetNumber()
Gives the set number which boundary condition is applied to.
Abstract base class representing a boundary load (force, momentum, ...) that acts directly on a bound...
Set of elements, boundaries, edges and/or nodes.
Set * giveSet(int n)
Service for accessing particular domain set.
Abstract base class for all active boundary conditions.
Abstract base class for all boundary conditions of problem.
std::list< Entry > entryListType
Load is base abstract class for all loads.
Domain * domain
Domain link.
the oofem namespace is to define a context or scope in which all oofem names are defined.