MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
constltp_nlsf.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int NLSF_init (void)
 

Function Documentation

int NLSF_init ( void  )

Definition at line 425 of file constltp_nlsf.cc.

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

Referenced by InitCL().

426 {
427  // 1D viscoelastic
430  if (!SetCL1D("nlsf" "viscoelastic", rf1D)) {
431  delete rf1D;
432 
433  silent_cerr("NLSFViscoElasticConstitutiveLaw1D: "
434  "init failed" << std::endl);
435 
436  return -1;
437  }
438 
439  // 1D elastic
441  if (!SetCL1D("nlsf" "elastic", rf1D)) {
442  delete rf1D;
443 
444  silent_cerr("NLSFElasticConstitutiveLaw1D: "
445  "init failed" << std::endl);
446 
447  return -1;
448  }
449 
450  // 1D viscous
452  if (!SetCL1D("nlsf" "viscous", rf1D)) {
453  delete rf1D;
454 
455  silent_cerr("NLSFViscousConstitutiveLaw1D: "
456  "init failed" << std::endl);
457 
458  return -1;
459  }
460 
461  // 3D viscoelastic
464  if (!SetCL3D("nlsf" "viscoelastic", rf3D)) {
465  delete rf3D;
466 
467  silent_cerr("NLSFViscoElasticConstitutiveLaw3D: "
468  "init failed" << std::endl);
469 
470  return -1;
471  }
472 
473  // 3D elastic
475  if (!SetCL3D("nlsf" "elastic", rf3D)) {
476  delete rf3D;
477 
478  silent_cerr("NLSFElasticConstitutiveLaw3D: "
479  "init failed" << std::endl);
480 
481  return -1;
482  }
483 
484  // 3D viscous
486  if (!SetCL3D("nlsf" "viscous", rf3D)) {
487  delete rf3D;
488 
489  silent_cerr("NLSFViscousConstitutiveLaw3D: "
490  "init failed" << std::endl);
491 
492  return -1;
493  }
494 
495  // 6D viscoelastic
498  if (!SetCL6D("nlsf" "viscoelastic", rf6D)) {
499  delete rf6D;
500 
501  silent_cerr("NLSFViscoElasticConstitutiveLaw6D: "
502  "init failed" << std::endl);
503 
504  return -1;
505  }
506 
507  // 6D elastic
509  if (!SetCL6D("nlsf" "elastic", rf6D)) {
510  delete rf6D;
511 
512  silent_cerr("NLSFElasticConstitutiveLaw6D: "
513  "init failed" << std::endl);
514 
515  return -1;
516  }
517 
518  // 6D viscous
520  if (!SetCL6D("nlsf" "viscous", rf6D)) {
521  delete rf6D;
522 
523  silent_cerr("NLSFViscousConstitutiveLaw6D: "
524  "init failed" << std::endl);
525 
526  return -1;
527  }
528 
529  return 0;
530 }
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: