32 bool _parametric =
true)
34 patch(_patch), value(_value), point(1), parametric(_parametric)
42 bool _parametric =
true)
44 patch(_patch), value(_value), point(_point), parametric(_parametric)
68 typedef typename std::vector<pLoad> plContainer;
70 typedef typename std::vector<pLoad>::iterator iterator;
72 typedef typename std::vector<pLoad>::const_iterator const_iterator;
77 std::ostream &
print(std::ostream &os)
const
99 inline pLoad operator [] (
size_t i)
const {
return m_pointLoads[i]; }
100 inline pLoad & operator [] (
size_t i) {
return m_pointLoads[i]; }
102 void addLoad(
const gsVector<T> & _point,
103 const gsVector<T> & _value,
105 bool _parametric =
true)
107 m_pointLoads.push_back( pLoad(_point,_value,_patch,_parametric) );
110 void addLoad(
const gsVector<T> & _point,
113 bool _parametric =
true)
115 m_pointLoads.push_back( pLoad(_point,_value,_patch,_parametric) );
128 std::ostream &operator<<(std::ostream &os, const gsPointLoads<T>& pls)
129 {
return pls.print(os); }
131 #ifdef GISMO_WITH_PYBIND11
136 void pybind11_init_gsPointLoads(pybind11::module &m);
138 #endif // GISMO_WITH_PYBIND11
Struct defining a point together with a scalar or vector load.
Definition: gsPointLoads.h:27
Class containing a set of points on a multi-patch isogeometric domain, together with boundary conditi...
Definition: gsPointLoads.h:64
plContainer m_pointLoads
List of Point loads.
Definition: gsPointLoads.h:122
std::ostream & print(std::ostream &os) const
Prints the object as a string.
Definition: gsPointLoads.h:77
gsPointLoads()
Default empty constructor.
Definition: gsPointLoads.h:86