Digital Image Correlation Engine  Version 1.0
A modular, high-performance, image correlation tool used to compute full-field displacements and strains from digital images
Public Types | Public Member Functions | Private Attributes | List of all members
DICe::Rigid_Body_Shape_Function Class Reference
Inheritance diagram for DICe::Rigid_Body_Shape_Function:
DICe::Local_Shape_Function

Public Types

enum  Rot_Trans_3D_Param {
  ANGLE_X = 0, ANGLE_Y, ANGLE_Z, TRANS_X,
  TRANS_Y, TRANS_Z
}
 

Public Member Functions

 Rigid_Body_Shape_Function (const std::string &system_file)
 constructor with the parameters needed to setup the transformation More...
 
virtual void clear ()
 clear the parameters
 
virtual void reset_fields (Schema *schema)
 
virtual void map (const scalar_t &x, const scalar_t &y, const scalar_t &cx, const scalar_t &cy, scalar_t &out_x, scalar_t &out_y)
 see base class description
 
virtual void residuals (const scalar_t &x, const scalar_t &y, const scalar_t &cx, const scalar_t &cy, const scalar_t &gx, const scalar_t &gy, std::vector< scalar_t > &residuals, const bool use_ref_grads=false)
 see base class description
 
virtual void save_fields (Schema *schema, const int_t subset_gid)
 see base class description
 
virtual void add_translation (const scalar_t &u, const scalar_t &v)
 see base class description
 
virtual void map_to_u_v_theta (const scalar_t &cx, const scalar_t &cy, scalar_t &out_u, scalar_t &out_v, scalar_t &out_theta)
 see base class description
 
virtual void insert_motion (const scalar_t &u, const scalar_t &v, const scalar_t &theta)
 see base class description
 
virtual void insert_motion (const scalar_t &u, const scalar_t &v)
 see base class description
 
virtual void update_params_for_centroid_change (const scalar_t &delta_x, const scalar_t &delta_y)
 see base class description
 
- Public Member Functions inherited from DICe::Local_Shape_Function
 Local_Shape_Function ()
 base class constructor
 
virtual ~Local_Shape_Function ()
 virtual destructor
 
int_t num_params () const
 the number of parameters in the shape function
 
std::vector< scalar_t > * parameters ()
 access to the parameter values
 
void print_parameters () const
 print the parameter values to DEBUG_MSG
 
void clone (Teuchos::RCP< Local_Shape_Function > shape_function)
 
virtual void initialize_parameters_from_fields (Schema *schema, const int_t subset_gid)
 
scalar_toperator() (const DICe::field_enums::Field_Spec &spec)
 
scalar_toperator() (const size_t index)
 
scalar_t parameter (const DICe::field_enums::Field_Spec &spec) const
 
void update (const std::vector< scalar_t > &update)
 
virtual bool test_for_convergence (const std::vector< scalar_t > &old_parameters, const scalar_t &tol)
 
Teuchos::RCP< std::vector< scalar_t > > rcp ()
 
Teuchos::RCP< std::vector< scalar_t > > deltas ()
 returns a pointer to the vector of delta values for this shape function
 
std::map< DICe::field_enums::Field_Spec, size_t > * spec_map ()
 returns a pointer to the spec map
 

Private Attributes

Teuchos::RCP< Camera_Systemcamera_system_
 Camera System to hold all the camera intrinsic and extrinsic information.
 
std::vector< scalar_tfacet_params_
 projection parameters that connect the sensor coordinates to the camera zero coordinates of a facet in space
 

Additional Inherited Members

- Protected Attributes inherited from DICe::Local_Shape_Function
std::vector< scalar_tparameters_
 a vector that holds the parameters of the shape function
 
std::vector< scalar_tdeltas_
 a vector that holds the deltas to use for a simplex method
 
int_t num_params_
 the total number of degrees of freedom
 
std::map< DICe::field_enums::Field_Spec, size_t > spec_map_
 stores the associated field with each DOF and the corresponding parameter index
 

Constructor & Destructor Documentation

◆ Rigid_Body_Shape_Function()

DICe::Rigid_Body_Shape_Function::Rigid_Body_Shape_Function ( const std::string &  system_file)

constructor with the parameters needed to setup the transformation

Parameters
systemfile camera system definition file to use for camera to camera projections (now limited to only having one camera max)

Member Function Documentation

◆ reset_fields()

virtual void DICe::Rigid_Body_Shape_Function::reset_fields ( Schema schema)
virtual

clears all the fields associated with this shape function

Parameters
schemapointer to a schema that holds the mesh with the fields

Reimplemented from DICe::Local_Shape_Function.