|
Plugins
|
#include <level_set_pos.h>
Classes | |
| struct | t_pnt_data |
| type of point data More... | |
Public Types | |
| typedef TLSPosZ | t_ls_measurer |
| measurer type | |
Public Member Functions | |
| void | add_pnt (MathVector< dim-1 > &xy, number z_spec=0, bool z_given=false) |
| adds a point | |
| void | append_to_table (const char *file_name, size_t step, number time) |
| appends the data to a given file | |
| void | clear_pnt () |
| clear the points | |
| void | compute () |
| compute the z-coordinates | |
| const MathVector< dim-1 > & | coord (size_t i) |
| returns the low-dim. coordinates the point i | |
| void | load_points_from (const char *file_name, bool z_given=false) |
| load points from a file | |
| void | load_points_from (std::istream &in, bool z_given=false) |
| load points from a stream | |
| LSPositionAtPoints (SmartPtr< t_ls_measurer > sp_ls_measurer) | |
| constructor | |
| size_t | n_points () |
| returns the number points | |
| void | print (bool print_difference=false) |
| prints the table of the points into the ug shell | |
| void | print_table_header (const char *file_name) |
| prints the table header to a given file | |
| void | print_to (const char *file_name, bool print_difference=false) |
| prints the table of the points into a file | |
| void | print_to (std::ostream &out, bool print_difference=false) |
| prints the table of the points into a given stream | |
| number | spec_z_at_pnt (size_t i) |
| return the specified z-coordinate at point i | |
| number | z_at_pnt (size_t i) |
| return the computed z-coordinate at point i | |
| bool | z_is_spec (size_t i) |
| return true iff the z-coordinate of point i is given | |
Static Public Attributes | |
| static const int | dim = t_ls_measurer::dim |
| world dimension | |
Private Attributes | |
| SmartPtr< t_ls_measurer > | m_sp_ls_measurer |
| the measurer | |
| std::vector< t_pnt_data > | m_v_points |
| the points to evaluate at | |
Class for getting the z-coordinate of the free level set at points
| TLSPosZ | the measurer type |
| typedef TLSPosZ ug::d3f::LSPositionAtPoints< TLSPosZ >::t_ls_measurer |
measurer type
|
inline |
constructor
| sp_ls_measurer | the measurer |
|
inline |
adds a point
| xy | low-dim coordinate of the point |
| z_spec | expected value of z-coordinate |
| z_given | iff z is specified |
References ug::d3f::LSPositionAtPoints< TLSPosZ >::m_v_points.
| void ug::d3f::LSPositionAtPoints< TLSPosZ >::append_to_table | ( | const char * | file_name, |
| size_t | step, | ||
| number | time | ||
| ) |
appends the data to a given file
Appends the data to a given file
| file_name | print to this file |
| step | time step no. |
| time | time argument |
References pcl::ProcessCommunicator::get_proc_id(), pcl::ProcRank(), UG_COND_THROW, ug::d3f::LSPositionAtPoints< TLSPosZ >::t_pnt_data::valid, and ug::d3f::LSPositionAtPoints< TLSPosZ >::t_pnt_data::z.
|
inline |
clear the points
References ug::d3f::LSPositionAtPoints< TLSPosZ >::m_v_points.
| void ug::d3f::LSPositionAtPoints< TLSPosZ >::compute | ( | ) |
compute the z-coordinates
Computes the z-coordinate at every of the points:
References pcl::ProcessCommunicator::allreduce(), PCL_RO_MAX, UG_THROW, ug::d3f::LSPositionAtPoints< TLSPosZ >::t_pnt_data::valid, ug::d3f::LSPositionAtPoints< TLSPosZ >::t_pnt_data::xy, and ug::d3f::LSPositionAtPoints< TLSPosZ >::t_pnt_data::z.
|
inline |
returns the low-dim. coordinates the point i
References ug::d3f::LSPositionAtPoints< TLSPosZ >::m_v_points.
| void ug::d3f::LSPositionAtPoints< TLSPosZ >::load_points_from | ( | const char * | file_name, |
| bool | z_given = false |
||
| ) |
load points from a file
Loads the point data from a file
| file_name | file to read data from |
| z_given | if the file specifies the z_coordinate, too |
References ug::FindFileInStandardPaths(), and UG_COND_THROW.
| void ug::d3f::LSPositionAtPoints< TLSPosZ >::load_points_from | ( | std::istream & | in, |
| bool | z_given = false |
||
| ) |
load points from a stream
Loads the point data from a stream
| in | stream to read data from |
| z_given | if the file specifies the z_coordinate, too |
References UG_THROW.
|
inline |
returns the number points
References ug::d3f::LSPositionAtPoints< TLSPosZ >::m_v_points.
|
inline |
prints the table of the points into the ug shell
| print_difference | if to print the given z and the difference |
References ug::GetLogAssistant(), and ug::d3f::LSPositionAtPoints< TLSPosZ >::print_to().
| void ug::d3f::LSPositionAtPoints< TLSPosZ >::print_table_header | ( | const char * | file_name | ) |
prints the table header to a given file
Prints the table header to a given file
| file_name | print to this file |
References pcl::ProcessCommunicator::get_proc_id(), pcl::ProcRank(), UG_COND_THROW, ug::d3f::LSPositionAtPoints< TLSPosZ >::t_pnt_data::xy, ug::d3f::LSPositionAtPoints< TLSPosZ >::t_pnt_data::z_given, and ug::d3f::LSPositionAtPoints< TLSPosZ >::t_pnt_data::z_spec.
| void ug::d3f::LSPositionAtPoints< TLSPosZ >::print_to | ( | const char * | file_name, |
| bool | print_difference = false |
||
| ) |
prints the table of the points into a file
Prints the point data to a file
| file_name | print to this file |
| print_difference | if to print the given z and the difference |
References pcl::ProcessCommunicator::get_proc_id(), pcl::ProcRank(), and UG_COND_THROW.
| void ug::d3f::LSPositionAtPoints< TLSPosZ >::print_to | ( | std::ostream & | out, |
| bool | print_difference = false |
||
| ) |
prints the table of the points into a given stream
Prints the point data to a stream
| out | print to this stream |
| print_difference | if to print the given z and the difference |
References UG_THROW, ug::d3f::LSPositionAtPoints< TLSPosZ >::t_pnt_data::valid, ug::d3f::LSPositionAtPoints< TLSPosZ >::t_pnt_data::xy, ug::d3f::LSPositionAtPoints< TLSPosZ >::t_pnt_data::z, ug::d3f::LSPositionAtPoints< TLSPosZ >::t_pnt_data::z_given, and ug::d3f::LSPositionAtPoints< TLSPosZ >::t_pnt_data::z_spec.
Referenced by ug::d3f::LSPositionAtPoints< TLSPosZ >::print().
|
inline |
return the specified z-coordinate at point i
References ug::d3f::LSPositionAtPoints< TLSPosZ >::m_v_points.
|
inline |
return the computed z-coordinate at point i
References ug::d3f::LSPositionAtPoints< TLSPosZ >::m_v_points.
|
inline |
return true iff the z-coordinate of point i is given
References ug::d3f::LSPositionAtPoints< TLSPosZ >::m_v_points.
|
static |
world dimension
|
private |
the measurer
|
private |
the points to evaluate at
Referenced by ug::d3f::LSPositionAtPoints< TLSPosZ >::add_pnt(), ug::d3f::LSPositionAtPoints< TLSPosZ >::clear_pnt(), ug::d3f::LSPositionAtPoints< TLSPosZ >::coord(), ug::d3f::LSPositionAtPoints< TLSPosZ >::n_points(), ug::d3f::LSPositionAtPoints< TLSPosZ >::spec_z_at_pnt(), ug::d3f::LSPositionAtPoints< TLSPosZ >::z_at_pnt(), and ug::d3f::LSPositionAtPoints< TLSPosZ >::z_is_spec().