MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
module-damper-hydraulic.cc File Reference
#include "mbconfig.h"
#include <cmath>
#include <cfloat>
#include "dataman.h"
#include "constltp.h"
Include dependency graph for module-damper-hydraulic.cc:

Go to the source code of this file.

Classes

class  HydraulicDamperCL
 
struct  HydraulicDamperCLR
 

Functions

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

Function Documentation

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 136 of file module-damper-hydraulic.cc.

References pHP, and SetCL1D().

137 {
138 #if 0
139  DataManager *pDM = (DataManager *)pdm;
140  MBDynParser *pHP = (MBDynParser *)php;
141 #endif
142 
144  = new HydraulicDamperCLR;
145  if (!SetCL1D("hydraulic" "damper", rf1D)) {
146  delete rf1D;
147 
148  silent_cerr("HydraulicDamperCL1D: "
149  "module_init(" << module_name << ") "
150  "failed" << std::endl);
151 
152  return -1;
153  }
154 
155  return 0;
156 }
bool SetCL1D(const char *name, ConstitutiveLawRead< doublereal, doublereal > *rf)
static std::stack< const HighParser * > pHP
Definition: parser.cc:598

Here is the call graph for this function: