#include <PointLoadBC.h>
Inheritance diagram for basso::PointLoadBC:
Public Member Functions | |
PointLoadBC (const set< int > &nids, const Array< Dof > &dofs, const nArray &n, Numeric sf=1.0) | |
PointLoadBC (const set< int > &nids, Dof &ldof, Numeric sf) | |
virtual | ~PointLoadBC () |
virtual void | ContributeForce (const DofMap &dofmap, nArray &f) |
Protected Attributes | |
const set< int > * | fNodeIds |
Pointer to a set of node id integers. | |
nArray | mDirection |
An direction vector to scale and orient the point loads. |
A class which represents a set of equal nodal point loads. In otherwords the loads are of the same magnitude and direction at each node.
Definition at line 33 of file PointLoadBC.h.
basso::PointLoadBC::PointLoadBC | ( | const set< int > & | nids, | |
const Array< Dof > & | dofs, | |||
const nArray & | n, | |||
Numeric | sf = 1.0 | |||
) | [inline] |
Constructor
nids | A set of node id integers | |
dofs | A list of local dofs on which the load(s) will be applied | |
sf | A scaling factor for the point loads | |
n | A directional vector for the point loads. It must be of the same length as dofmap. If it is not a unit vector the vector magnitude will scale the load. |
Definition at line 47 of file PointLoadBC.h.
References fNodeIds, and mDirection.
basso::PointLoadBC::PointLoadBC | ( | const set< int > & | nids, | |
Dof & | ldof, | |||
Numeric | sf | |||
) | [inline] |
Constructor
nids | A set of node id integers | |
dofs | local dof on which the load(s) will be applied | |
sf | A scaling factor for the point loads |
Definition at line 62 of file PointLoadBC.h.
References fNodeIds, and mDirection.
void basso::PointLoadBC::ContributeForce | ( | const DofMap & | dofmap, | |
nArray & | f | |||
) | [virtual] |
Contributes the force to a force vector
f | global force vector | |
dofmap | DofMap for the global force vector |
Implements basso::NeumannBC.
Definition at line 87 of file PointLoadBC.h.
References fNodeIds, basso::DofMap::GlobalDof(), mDirection, basso::NeumannBC::mDofs, and basso::NeumannBC::mScaleFactor.