MBSim

Project Page
Public Member Functions | Private Attributes
MBSim::Contact1sSearch Class Reference

general class for contact search with respect to one contour-parameter More...

#include <functions_contact.h>

List of all members.

Public Member Functions

 Contact1sSearch (DistanceFunction< double, double > *func_)
 constructor
 Contact1sSearch (DistanceFunction< double, double > *func_, Function1< double, double > *jac_)
 constructor
void setInitialValue (const double &s0_)
void setNodes (const fmatvec::Vec &nodes_)
void setSearchAll (bool searchAll_)
void setEqualSpacing (const int &n, const double &x0, const double &dx)
 set equally distanced nodes
double slv ()
 solve for the one potential contact point with minimal distance (might be negative)
fmatvec::Mat slvAll ()
 solve for all potential contact points

Private Attributes

DistanceFunction< double,
double > * 
func
 distance-function holding all information for contact-search
Function1< double, double > * jac
 Jacobian of root function part of distance function.
double s0
 initial value for Newton method
fmatvec::Vec nodes
 nodes defining search-areas for Regula-Falsi
bool searchAll
 all area searching by Regular-Falsi or known initial value for Newton-Method?

Detailed Description

general class for contact search with respect to one contour-parameter

Author:
Roland Zander
Date:
2009-07-10 some comments (Thorsten Schindler)
2010-03-07 added slvAll for finding "all" roots (Roland Zander)

General remarks:


Constructor & Destructor Documentation

MBSim::Contact1sSearch::Contact1sSearch ( DistanceFunction< double, double > *  func_) [inline]

constructor

Parameters:
rootfunction numerical Jacobian evaluation only local search
MBSim::Contact1sSearch::Contact1sSearch ( DistanceFunction< double, double > *  func_,
Function1< double, double > *  jac_ 
) [inline]

constructor

Parameters:
rootfunction
Jacobianevaluation only local search

Member Function Documentation

void MBSim::Contact1sSearch::setEqualSpacing ( const int &  n,
const double &  x0,
const double &  dx 
)

set equally distanced nodes

Parameters:
numberof search areas
beginningparameter
width

solve for the one potential contact point with minimal distance (might be negative)

Returns:
point with minimal distance at contour-parameter

solve for all potential contact points

Returns:
matrix holding LagrangeParameterPosition in col(0) and respective distances in col(1)

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