MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
module-nonsmooth-node.cc File Reference
#include "mbconfig.h"
#include <iostream>
#include <cfloat>
#include "dataman.h"
#include "userelem.h"
#include "stlvh.h"
#include "mbdyn_siconos.h"
Include dependency graph for module-nonsmooth-node.cc:

Go to the source code of this file.

Classes

struct  plane
 
struct  NS_subsys
 
class  ModuleNonsmoothNode
 

Enumerations

enum  Constraining { POSITION_ONLY, VELOCITY_ONLY, POSITION_AND_VELOCITY }
 

Functions

static bool bIRa (false)
 
int module_init (const char *module_name, void *pdm, void *php)
 This function registers our user defined element for the math parser. More...
 

Variables

static const int omegan = 16
 
static const doublereal dIPa [2][omegan-2]
 
static const doublereal dIRa [2][omegan-2]
 
static FullMatrixHandler IRa
 
static FullMatrixHandler IRat
 
static FullMatrixHandler IPa
 

Enumeration Type Documentation

Enumerator
POSITION_ONLY 
VELOCITY_ONLY 
POSITION_AND_VELOCITY 

Definition at line 46 of file module-nonsmooth-node.cc.

46  {
47  // the interaction with MBDyn results
48  // in imposing the position of the node associated
49  // to the nonsmooth integration and in the force Lambda exchanged
51 
52  // the interaction with MBDyn results
53  // in imposing the velocity of the node associated
54  // to the nonsmooth integration and in the force Lambda exchanged
56 
57  // the interaction with MBDyn results
58  // in imposing the position and velocity of the node associated
59  // to the nonsmooth integration and in the force Lambda exchanged
61 };

Function Documentation

static bool bIRa ( false  )
static
int module_init ( const char *  module_name,
void *  pdm,
void *  php 
)

This function registers our user defined element for the math parser.

It is called when the "module load" statement appears in the input file.

Definition at line 1353 of file module-nonsmooth-node.cc.

References SetUDE().

1354 {
1356 
1357  if (!SetUDE("nonsmooth" "node", rf)) {
1358  delete rf;
1359  silent_cerr("module-nonsmooth-node: "
1360  "module_init(" << module_name << ") "
1361  "failed" << std::endl);
1362  return -1;
1363  }
1364 
1365  return 0;
1366 }
bool SetUDE(const std::string &s, UserDefinedElemRead *rude)
Definition: userelem.cc:97

Here is the call graph for this function:

Variable Documentation

const doublereal dIPa[2][omegan-2]
static
Initial value:
= {
{ 1., 0. },
{ 0., 1. }
}

Definition at line 202 of file module-nonsmooth-node.cc.

Referenced by ModuleNonsmoothNode::ModuleNonsmoothNode().

const doublereal dIRa[2][omegan-2]
static
Initial value:
= {
{ 0.92388, 0.70711, 0.38268, -0.38268, -0.70711, -0.92388, -1.00000, -0.92388, -0.70711, -0.38268, -0.00000, 0.38268, 0.70711, 0.92388 },
{ 0.38268, 0.70711, 0.92388, 0.92388, 0.70711, 0.38268, 0.00000, -0.38268, -0.70711, -0.92388, -1.00000, -0.92388, -0.70711, -0.38268 }
}

Definition at line 208 of file module-nonsmooth-node.cc.

Referenced by ModuleNonsmoothNode::ModuleNonsmoothNode().

FullMatrixHandler IPa
static

Definition at line 215 of file module-nonsmooth-node.cc.

Referenced by ModuleNonsmoothNode::ModuleNonsmoothNode().

FullMatrixHandler IRa
static

Definition at line 213 of file module-nonsmooth-node.cc.

Referenced by ModuleNonsmoothNode::ModuleNonsmoothNode().

FullMatrixHandler IRat
static

Definition at line 214 of file module-nonsmooth-node.cc.

Referenced by ModuleNonsmoothNode::ModuleNonsmoothNode().

const int omegan = 16
static

Definition at line 199 of file module-nonsmooth-node.cc.