OGS
ApplicationUtils::ComputeNaturalCoordsIntermediateResult Class Reference

Detailed Description

Definition at line 22 of file ComputeNaturalCoordsAlgorithm.h.

#include <ComputeNaturalCoordsAlgorithm.h>

Public Member Functions

void append (Eigen::Vector3d const &natural_coords, Eigen::Vector3d const &real_coords, vtkIdType bulk_element_id, vtkIdType point_cloud_node_id)
void fail ()
ComputeNaturalCoordsResult finished (Eigen::VectorXd const &initial_anchor_stress, Eigen::VectorXd const &maximum_anchor_stress, Eigen::VectorXd const &residual_anchor_stress, Eigen::VectorXd const &anchor_cross_sectional_area, Eigen::VectorXd const &anchor_stiffness)

Static Private Member Functions

static Eigen::MatrixXd conv (std::vector< Eigen::Vector3d > const &in)

Private Attributes

std::vector< Eigen::Vector3d > natural_coordss
std::vector< Eigen::Vector3d > real_coordss
std::vector< vtkIdType > bulk_element_ids
std::vector< vtkIdType > point_cloud_node_ids
bool success = true

Member Function Documentation

◆ append()

void ApplicationUtils::ComputeNaturalCoordsIntermediateResult::append ( Eigen::Vector3d const & natural_coords,
Eigen::Vector3d const & real_coords,
vtkIdType bulk_element_id,
vtkIdType point_cloud_node_id )
inline

Definition at line 25 of file ComputeNaturalCoordsAlgorithm.h.

29 {
30 natural_coordss.push_back(natural_coords);
31 real_coordss.push_back(real_coords);
32 bulk_element_ids.push_back(bulk_element_id);
33 point_cloud_node_ids.push_back(point_cloud_node_id);
34 }

References bulk_element_ids, natural_coordss, point_cloud_node_ids, and real_coordss.

Referenced by ApplicationUtils::computeNaturalCoords().

◆ conv()

Eigen::MatrixXd ApplicationUtils::ComputeNaturalCoordsIntermediateResult::conv ( std::vector< Eigen::Vector3d > const & in)
inlinestaticprivate

Definition at line 62 of file ComputeNaturalCoordsAlgorithm.h.

63 {
64 Eigen::MatrixXd out(in.size(), 3);
65 for (std::size_t i = 0; i < in.size(); ++i)
66 {
67 out.row(i).noalias() = in[i].transpose();
68 }
69 return out;
70 }

Referenced by finished().

◆ fail()

void ApplicationUtils::ComputeNaturalCoordsIntermediateResult::fail ( )
inline

◆ finished()

ComputeNaturalCoordsResult ApplicationUtils::ComputeNaturalCoordsIntermediateResult::finished ( Eigen::VectorXd const & initial_anchor_stress,
Eigen::VectorXd const & maximum_anchor_stress,
Eigen::VectorXd const & residual_anchor_stress,
Eigen::VectorXd const & anchor_cross_sectional_area,
Eigen::VectorXd const & anchor_stiffness )
inline

Definition at line 38 of file ComputeNaturalCoordsAlgorithm.h.

44 {
45 auto bei = Eigen::Map<Eigen::VectorX<vtkIdType>>(
46 bulk_element_ids.data(), bulk_element_ids.size());
47 auto pcni = Eigen::Map<Eigen::VectorX<vtkIdType>>(
49 return {conv(natural_coordss),
51 initial_anchor_stress,
52 maximum_anchor_stress,
53 residual_anchor_stress,
54 anchor_cross_sectional_area,
55 anchor_stiffness,
56 bei,
57 pcni,
58 success};
59 }
static Eigen::MatrixXd conv(std::vector< Eigen::Vector3d > const &in)

References bulk_element_ids, conv(), natural_coordss, point_cloud_node_ids, real_coordss, and success.

Referenced by ApplicationUtils::computeNaturalCoords().

Member Data Documentation

◆ bulk_element_ids

std::vector<vtkIdType> ApplicationUtils::ComputeNaturalCoordsIntermediateResult::bulk_element_ids
private

Definition at line 74 of file ComputeNaturalCoordsAlgorithm.h.

Referenced by append(), and finished().

◆ natural_coordss

std::vector<Eigen::Vector3d> ApplicationUtils::ComputeNaturalCoordsIntermediateResult::natural_coordss
private

Definition at line 72 of file ComputeNaturalCoordsAlgorithm.h.

Referenced by append(), and finished().

◆ point_cloud_node_ids

std::vector<vtkIdType> ApplicationUtils::ComputeNaturalCoordsIntermediateResult::point_cloud_node_ids
private

Definition at line 75 of file ComputeNaturalCoordsAlgorithm.h.

Referenced by append(), and finished().

◆ real_coordss

std::vector<Eigen::Vector3d> ApplicationUtils::ComputeNaturalCoordsIntermediateResult::real_coordss
private

Definition at line 73 of file ComputeNaturalCoordsAlgorithm.h.

Referenced by append(), and finished().

◆ success

bool ApplicationUtils::ComputeNaturalCoordsIntermediateResult::success = true
private

Definition at line 76 of file ComputeNaturalCoordsAlgorithm.h.

Referenced by fail(), and finished().


The documentation for this class was generated from the following file: