PLaSK library
|
Classes | |
struct | VecDimConverter |
struct | VecDimConverter< 2, T > |
struct | VecDimConverter< 3, T > |
Functions | |
bool | getLineLo (std::size_t &line, const MeshAxis &axis, double box_lower, double box_upper) |
Helper used by getLeftOfBoundary, etc. | |
bool | getLineHi (std::size_t &line, const MeshAxis &axis, double box_lower, double box_upper) |
Helper used by getRightOfBoundary, etc. | |
bool | getIndexesInBounds (std::size_t &begInd, std::size_t &endInd, const MeshAxis &axis, double box_lower, double box_upper) |
Helper used by getLeftOfBoundary, etc. | |
void | tryMakeLower (const MeshAxis &axis, std::size_t &index, double real_pos) |
Decrease index if real_pos is much closer to axis[index-1] than axis[index]. | |
void | tryMakeHigher (const MeshAxis &axis, std::size_t &index, double real_pos) |
Increase index if real_pos is much closer to axis[index] than axis[index-1]. | |
bool | getIndexesInBoundsExt (std::size_t &begInd, std::size_t &endInd, const MeshAxis &axis, double box_lower, double box_upper) |
Helper. | |
template<typename MeshType , typename GetBoxes , typename GetBoundaryForBox > | |
MeshType::Boundary | getBoundaryForBoxes (GetBoxes getBoxes, GetBoundaryForBox getBoundaryForBox) |
Get boundary which lies on chosen edge of boxes. | |
template<typename Boundary , int DIM> | |
Boundary | parseBoundaryFromXML (XMLReader &boundary_desc, Manager &manager, Boundary(*getXBoundary)(), Boundary(*getXOfBoundary)(shared_ptr< const GeometryObject >, const PathHints *)) |
Parse boundary from XML tag in format: <place side="i.e. left" [object="object name" [path="path name"] [geometry="name of geometry which is used by the solver"]]/> | |
|
inline |
Get boundary which lies on chosen edge of boxes.
getBoxes | functor which returns 0 or more boxes (vector of boxes) |
getBoundaryForBox | functor which returns boundary for box given as parameter, it chooses edge of box (for example this may call getLeftOfBoundary, etc.) |
MeshType | RectangularMesh... |
Definition at line 125 of file rectangular_common.hpp.
|
inline |
Helper used by getLeftOfBoundary, etc.
[out] | begInd,endInd | range [begInd, endInd) of indices in axis which show points which lie in bounds [box_lower , box_upper ], undefined if false was returned |
[in] | axis | axis, 1D mesh |
[in] | box_lower,box_upper | position of lower and upper box edges |
true
only if some of axis
points lies in bounds [box_lower
, box_upper
] Definition at line 72 of file rectangular_common.hpp.
|
inline |
Helper.
[out] | begInd,endInd | range [begInd, endInd) of indices in axis which show points which lie or almost lie in bounds [box_lower , box_upper ], undefined if false was returned |
[in] | axis | axis, 1D mesh |
[in] | box_lower,box_upper | position of lower and upper box edges |
true
only if some of axis
points (almost) lies in bounds [box_lower
, box_upper
] Definition at line 110 of file rectangular_common.hpp.
|
inline |
Helper used by getRightOfBoundary, etc.
[out] | line | index of point in axis which lies in bound [box_lower , box_upper ] and is nearest to box_upper , undefined if false was returned |
[in] | axis | axis, 1D mesh |
[in] | box_lower,box_upper | position of lower and upper box edges |
true
only if axis
has point which lies in bounds [box_lower
, box_upper
] Definition at line 55 of file rectangular_common.hpp.
|
inline |
Helper used by getLeftOfBoundary, etc.
[out] | line | index of point in axis which lies in bound [box_lower , box_upper ] and is the nearest to box_lower , undefined if false was returned |
[in] | axis | axis, 1D mesh |
[in] | box_lower,box_upper | position of lower and upper box edges |
true
only if axis
has point which lies in bounds [box_lower
, box_upper
] Definition at line 41 of file rectangular_common.hpp.
|
inline |
Parse boundary from XML tag in format: <place side="i.e. left" [object="object name" [path="path name"] [geometry="name of geometry which is used by the solver"]]/>
boundary_desc | XML reader which points to tag to read (after read it will be moved to end of this tag) |
manager | geometry manager |
getXBoundary | function which creates simple boundary, with edge of mesh, i.e. getLeftBoundary |
getXOfBoundary | function which creates simple boundary, with edge of object, i.e. getLeftOfBoundary |
Definition at line 175 of file rectangular_common.hpp.
|
inline |
Increase index
if real_pos
is much closer to axis[index] than axis[index-1].
[in] | axis | axis of mesh |
[in,out] | index | index such that axis[index-1] <= real_pos < axis[index], can be unchanged or increment by one by this method |
[in] | real_pos | position |
Definition at line 97 of file rectangular_common.hpp.
|
inline |
Decrease index
if real_pos
is much closer to axis[index-1] than axis[index].
[in] | axis | axis of mesh |
[in,out] | index | index such that axis[index] <= real_pos < axis[index+1], can be unchanged or decrement by one by this method |
[in] | real_pos | position |
Definition at line 86 of file rectangular_common.hpp.