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

Go to the source code of this file.

Classes

class  NLPViscoElasticConstitutiveLaw< T, Tder >
 
class  NLPViscoElasticConstitutiveLaw< doublereal, doublereal >
 
struct  NLPViscoElasticCLR< T, Tder, Typ >
 

Typedefs

typedef
NLPViscoElasticConstitutiveLaw
< doublereal, doublereal
NLPViscoElasticConstitutiveLaw1D
 
typedef
NLPViscoElasticConstitutiveLaw
< Vec3, Mat3x3
NLPViscoElasticConstitutiveLaw3D
 
typedef
NLPViscoElasticConstitutiveLaw
< Vec6, Mat6x6
NLPViscoElasticConstitutiveLaw6D
 

Functions

int NLP_init (void)
 

Typedef Documentation

Function Documentation

int NLP_init ( void  )

Definition at line 438 of file constltp_nlp.cc.

References SetCL1D(), SetCL3D(), and SetCL6D().

Referenced by InitCL().

439 {
440  // 1D viscoelastic
443  if (!SetCL1D("nlp" "viscoelastic", rf1D)) {
444  delete rf1D;
445 
446  silent_cerr("NLPViscoElasticConstitutiveLaw1D: "
447  "init failed" << std::endl);
448 
449  return -1;
450  }
451 
452  // 1D elastic
454  if (!SetCL1D("nlp" "elastic", rf1D)) {
455  delete rf1D;
456 
457  silent_cerr("NLPElasticConstitutiveLaw1D: "
458  "init failed" << std::endl);
459 
460  return -1;
461  }
462 
463  // 1D viscous
465  if (!SetCL1D("nlp" "viscous", rf1D)) {
466  delete rf1D;
467 
468  silent_cerr("NLPViscousConstitutiveLaw1D: "
469  "init failed" << std::endl);
470 
471  return -1;
472  }
473 
474  // 3D viscoelastic
477  if (!SetCL3D("nlp" "viscoelastic", rf3D)) {
478  delete rf3D;
479 
480  silent_cerr("NLPViscoElasticConstitutiveLaw3D: "
481  "init failed" << std::endl);
482 
483  return -1;
484  }
485 
486  // 3D elastic
488  if (!SetCL3D("nlp" "elastic", rf3D)) {
489  delete rf3D;
490 
491  silent_cerr("NLPElasticConstitutiveLaw3D: "
492  "init failed" << std::endl);
493 
494  return -1;
495  }
496 
497  // 3D viscous
499  if (!SetCL3D("nlp" "viscous", rf3D)) {
500  delete rf3D;
501 
502  silent_cerr("NLPViscousConstitutiveLaw3D: "
503  "init failed" << std::endl);
504 
505  return -1;
506  }
507 
508  // 6D viscoelastic
511  if (!SetCL6D("nlp" "viscoelastic", rf6D)) {
512  delete rf6D;
513 
514  silent_cerr("NLPViscoElasticConstitutiveLaw6D: "
515  "init failed" << std::endl);
516 
517  return -1;
518  }
519 
520  // 6D elastic
522  if (!SetCL6D("nlp" "elastic", rf6D)) {
523  delete rf6D;
524 
525  silent_cerr("NLPElasticConstitutiveLaw6D: "
526  "init failed" << std::endl);
527 
528  return -1;
529  }
530 
531  // 6D viscous
533  if (!SetCL6D("nlp" "viscous", rf6D)) {
534  delete rf6D;
535 
536  silent_cerr("NLPViscousConstitutiveLaw6D: "
537  "init failed" << std::endl);
538 
539  return -1;
540  }
541 
542  return 0;
543 }
bool SetCL3D(const char *name, ConstitutiveLawRead< Vec3, Mat3x3 > *rf)
bool SetCL1D(const char *name, ConstitutiveLawRead< doublereal, doublereal > *rf)
bool SetCL6D(const char *name, ConstitutiveLawRead< Vec6, Mat6x6 > *rf)

Here is the call graph for this function: