MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
AnnViscoElasticConstitutiveLaw< doublereal, doublereal > Class Template Reference

#include <constltp_ann.h>

Inheritance diagram for AnnViscoElasticConstitutiveLaw< doublereal, doublereal >:
Collaboration diagram for AnnViscoElasticConstitutiveLaw< doublereal, doublereal >:

Public Member Functions

 AnnViscoElasticConstitutiveLaw (const std::string &f, bool b=false)
 
virtual ~AnnViscoElasticConstitutiveLaw (void)
 
ConstLawType::Type GetConstLawType (void) const
 
virtual ConstitutiveLaw
< doublereal, doublereal > * 
pCopy (void) const
 
- Public Member Functions inherited from AnnElasticConstitutiveLaw< doublereal, doublereal >
 AnnElasticConstitutiveLaw (const std::string &f, bool b=false)
 
virtual ~AnnElasticConstitutiveLaw (void)
 
virtual void AfterConvergence (const doublereal &Eps, const doublereal &EpsPrime=0.)
 
virtual std::ostream & Restart (std::ostream &out) const
 
virtual void Update (const doublereal &Eps, const doublereal &EpsPrime=0.)
 
- Public Member Functions inherited from ConstitutiveLaw< doublereal, doublereal >
 ConstitutiveLaw (void)
 
virtual ~ConstitutiveLaw (void)
 
virtual const doublerealGetEpsilon (void) const
 
virtual const doublerealGetEpsilonPrime (void) const
 
virtual const doublerealGetF (void) const
 
virtual const doublerealGetFDE (void) const
 
virtual const doublerealGetFDEPrime (void) const
 
virtual unsigned int iGetNumDof (void) const
 
virtual std::ostream & DescribeDof (std::ostream &out, const char *prefix="", bool bInitial=false) const
 
virtual void DescribeDof (std::vector< std::string > &desc, bool bInitial=false, int i=-1) const
 
virtual std::ostream & DescribeEq (std::ostream &out, const char *prefix="", bool bInitial=false) const
 
virtual void DescribeEq (std::vector< std::string > &desc, bool bInitial=false, int i=-1) const
 
virtual DofOrder::Order GetDofType (unsigned int i) const
 
- Public Member Functions inherited from WithLabel
 WithLabel (unsigned int uL=0, const std::string &sN="")
 
virtual ~WithLabel (void)
 
void PutLabel (unsigned int uL)
 
void PutName (const std::string &sN)
 
unsigned int GetLabel (void) const
 
const std::string & GetName (void) const
 
- Public Member Functions inherited from SimulationEntity
 SimulationEntity (void)
 
virtual ~SimulationEntity (void)
 
virtual bool bIsValidIndex (unsigned int i) const
 
virtual DofOrder::Order GetEqType (unsigned int i) const
 
virtual void SetValue (DataManager *pDM, VectorHandler &X, VectorHandler &XP, SimulationEntity::Hints *h=0)
 
virtual HintParseHint (DataManager *pDM, const char *s) const
 
virtual void BeforePredict (VectorHandler &, VectorHandler &, VectorHandler &, VectorHandler &) const
 
virtual void AfterPredict (VectorHandler &X, VectorHandler &XP)
 
virtual void Update (const VectorHandler &XCurr, const VectorHandler &XPrimeCurr)
 
virtual void DerivativesUpdate (const VectorHandler &XCurr, const VectorHandler &XPrimeCurr)
 
virtual void Update (const VectorHandler &XCurr, InverseDynamics::Order iOrder)
 
virtual void AfterConvergence (const VectorHandler &X, const VectorHandler &XP)
 
virtual void AfterConvergence (const VectorHandler &X, const VectorHandler &XP, const VectorHandler &XPP)
 
virtual unsigned int iGetNumPrivData (void) const
 
virtual unsigned int iGetPrivDataIdx (const char *s) const
 
virtual doublereal dGetPrivData (unsigned int i) const
 
virtual std::ostream & OutputAppend (std::ostream &out) const
 
virtual void ReadInitialState (MBDynParser &HP)
 

Protected Member Functions

virtual void AnnSanity (void)
 
virtual void Update (const doublereal &Eps, const doublereal &EpsPrime, int feedback)
 
- Protected Member Functions inherited from AnnElasticConstitutiveLaw< doublereal, doublereal >
void AnnInit (void)
 

Additional Inherited Members

- Public Types inherited from ConstitutiveLaw< doublereal, doublereal >
typedef ConstitutiveLaw
< doublereal, doublereal >
::ErrNotAvailable 
Err
 
- Public Types inherited from SimulationEntity
typedef std::vector< Hint * > Hints
 
- Protected Attributes inherited from AnnElasticConstitutiveLaw< doublereal, doublereal >
bool bUnit
 
ANNnet
 
std::string fname
 
- Protected Attributes inherited from ConstitutiveLaw< doublereal, doublereal >
doublereal Epsilon
 
doublereal EpsilonPrime
 
doublereal F
 
doublereal FDE
 
doublereal FDEPrime
 
- Protected Attributes inherited from WithLabel
unsigned int uLabel
 
std::string sName
 

Detailed Description

template<>
class AnnViscoElasticConstitutiveLaw< doublereal, doublereal >

Definition at line 301 of file constltp_ann.h.

Constructor & Destructor Documentation

Definition at line 340 of file constltp_ann.h.

References NO_OP.

Definition at line 346 of file constltp_ann.h.

References NO_OP.

346  {
347  NO_OP;
348  };
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

virtual void AnnViscoElasticConstitutiveLaw< doublereal, doublereal >::AnnSanity ( void  )
inlineprotectedvirtual

Reimplemented from AnnElasticConstitutiveLaw< doublereal, doublereal >.

Definition at line 306 of file constltp_ann.h.

References NO_OP.

307  {
308  /* add sanity checks */
309  NO_OP;
310  }
#define NO_OP
Definition: myassert.h:74
ConstLawType::Type AnnViscoElasticConstitutiveLaw< doublereal, doublereal >::GetConstLawType ( void  ) const
inlinevirtual

Reimplemented from AnnElasticConstitutiveLaw< doublereal, doublereal >.

Definition at line 350 of file constltp_ann.h.

References ConstLawType::VISCOELASTIC.

350  {
352  };
virtual ConstitutiveLaw<doublereal, doublereal>* AnnViscoElasticConstitutiveLaw< doublereal, doublereal >::pCopy ( void  ) const
inlinevirtual

Reimplemented from AnnElasticConstitutiveLaw< doublereal, doublereal >.

Definition at line 354 of file constltp_ann.h.

References SAFENEWWITHCONSTRUCTOR.

354  {
356 
358  SAFENEWWITHCONSTRUCTOR(pCL, cl, cl(cl::fname));
359  return pCL;
360  };
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
virtual void AnnViscoElasticConstitutiveLaw< doublereal, doublereal >::Update ( const doublereal Eps,
const doublereal EpsPrime,
int  feedback 
)
inlineprotectedvirtual

Reimplemented from AnnElasticConstitutiveLaw< doublereal, doublereal >.

Definition at line 312 of file constltp_ann.h.

References ANN_jacobian_matrix(), ANN_sim(), AnnElasticConstitutiveLaw< T, Tder >::bUnit, ANN::input, ANN::jacobian, matrix::mat, MBDYN_EXCEPT_ARGS, ANN::N_input, AnnElasticConstitutiveLaw< T, Tder >::net, ANN::output, and vector::vec.

312  {
315 
317 
319  net->input.vec[0] = E;
320  net->input.vec[1] = EpsPrime;
321  if (net->N_input == 3) {
322  if (bUnit) {
323  net->input.vec[2] = 1.;
324  } else {
325  net->input.vec[2] = 0.;
326  }
327  }
328  if (ANN_sim(net, &net->input, &net->output, feedback))
329  {
330  silent_cout("AnnViscoElasticConstitutiveLaw: Network simulation error" << std::endl);
332  }
333  ANN_jacobian_matrix(net, &net->jacobian );
334 
337  };
ann_res_t ANN_sim(ANN *net, vector *input, vector *output, unsigned flags)
Definition: ann.c:425
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
vector input
Definition: ann.h:116
vector output
Definition: ann.h:116
int N_input
Definition: ann.h:84
matrix jacobian
Definition: ann.h:98
Definition: ann.h:74
double ** mat
Definition: matrix.h:62
double * vec
Definition: matrix.h:69
ann_res_t ANN_jacobian_matrix(ANN *net, matrix *jacobian)
Definition: ann.c:921
double doublereal
Definition: colamd.c:52

Here is the call graph for this function:


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