NuTo
Numerics Tool
Classes | Macros | Typedefs | Functions
SpringDamperCombination.cpp File Reference
#include "nuto/mechanics/constitutive/ConstitutiveEnum.h"
#include "nuto/mechanics/constitutive/laws/AdditiveOutput.h"
#include "nuto/mechanics/constitutive/laws/AdditiveInputImplicit.h"
#include "nuto/mechanics/groups/GroupEnum.h"
#include "nuto/mechanics/groups/Group.h"
#include "nuto/mechanics/interpolationtypes/InterpolationTypeEnum.h"
#include "nuto/mechanics/nodes/NodeBase.h"
#include "nuto/mechanics/nodes/NodeEnum.h"
#include "nuto/mechanics/sections/SectionPlane.h"
#include "nuto/mechanics/sections/SectionTruss.h"
#include "nuto/mechanics/structures/unstructured/Structure.h"
#include "nuto/mechanics/timeIntegration/TimeIntegrationBase.h"
#include "nuto/mechanics/timeIntegration/NewmarkDirect.h"
#include "nuto/mechanics/mesh/MeshGenerator.h"
#include "nuto/mechanics/constraints/ConstraintCompanion.h"
#include "nuto/mechanics/timeIntegration/postProcessing/PostProcessor.h"
#include "nuto/visualize/VisualizeEnum.h"
#include <boost/foreach.hpp>
#include <iostream>

Classes

struct  TimeControl
 

Macros

#define SURFACELOAD   60.0e6
 
#define DELTAT   30.0
 
#define TWRITE   60.0
 
#define TEND   40 * DELTAT
 
#define LD_DAMPINGCOEFFICIENT   30.0e12
 
#define LE_YOUNGSMODULUS   30.0e9
 
#define LE_POISSONRATIO   0.2
 
#define TESTNUM_PROC   1
 
#define RES_TOLERANCE_MECHANICS   1e-5
 
#define MAX_ITERATION   20
 

Typedefs

typedef boost::ptr_map< int, NuTo::NodeBase > NodeMap
 

Functions

template<int TDim>
void AddConstraint (NuTo::Structure &rS, NuTo::NewmarkDirect &, std::function< bool(NuTo::NodeBase *)> rGetNodeFunction, unsigned int, double rValue=0.0)
 
template<int TDim>
void AddSurfaceLoad (NuTo::Structure &rS, std::function< bool(NuTo::NodeBase *)> rGetNodeFunction)
 
void SetupMultiProcessor (NuTo::Structure &rS)
 
template<int TDim>
void ApplyInitialNodalValues (NuTo::Structure &rS, std::array< int, TDim > rN, double rInitialStrainRate)
 
template<int TDim>
std::shared_ptr< NuTo::Section > SetupSection (NuTo::Structure &rS, double rAreaThickness=1.0)
 
void SetupStructure (NuTo::Structure &rS, std::string rTestName)
 
void SetupTimeIntegration (NuTo::NewmarkDirect &rTI, const TimeControl &rTC, const std::string &rResultDir, const int IDNodeRight)
 
void SetupVisualize (NuTo::Structure &rS)
 
template<int TDim>
void CheckResultsSpringDamper (NuTo::Structure &rS, std::vector< double >)
 
template<int TDim>
void CheckResultsSpringDamperSerial (NuTo::Structure &rS, std::vector< double >)
 
template<int TDim>
void TestSpringDamperCombination (std::vector< int > rN, std::vector< double > rL)
 
template<int TDim>
void TestSpringDamperSerialChain (std::vector< int > rN, std::vector< double > rL)
 
int main ()
 

Macro Definition Documentation

#define DELTAT   30.0
#define LD_DAMPINGCOEFFICIENT   30.0e12
#define LE_POISSONRATIO   0.2
#define LE_YOUNGSMODULUS   30.0e9
#define MAX_ITERATION   20
#define RES_TOLERANCE_MECHANICS   1e-5
#define SURFACELOAD   60.0e6
#define TEND   40 * DELTAT
#define TESTNUM_PROC   1
#define TWRITE   60.0

Typedef Documentation

typedef boost::ptr_map<int, NuTo::NodeBase> NodeMap

Function Documentation

template<int TDim>
void AddConstraint ( NuTo::Structure &  rS,
NuTo::NewmarkDirect &  ,
std::function< bool(NuTo::NodeBase *)>  rGetNodeFunction,
unsigned  int,
double  rValue = 0.0 
)
template<int TDim>
void AddSurfaceLoad ( NuTo::Structure &  rS,
std::function< bool(NuTo::NodeBase *)>  rGetNodeFunction 
)
template<int TDim>
void ApplyInitialNodalValues ( NuTo::Structure &  rS,
std::array< int, TDim >  rN,
double  rInitialStrainRate 
)
template<int TDim>
void CheckResultsSpringDamper ( NuTo::Structure &  rS,
std::vector< double >   
)
template<int TDim>
void CheckResultsSpringDamperSerial ( NuTo::Structure &  rS,
std::vector< double >   
)
int main ( )
void SetupMultiProcessor ( NuTo::Structure &  rS)
inline
template<int TDim>
std::shared_ptr<NuTo::Section> SetupSection ( NuTo::Structure &  rS,
double  rAreaThickness = 1.0 
)
void SetupStructure ( NuTo::Structure &  rS,
std::string  rTestName 
)
void SetupTimeIntegration ( NuTo::NewmarkDirect &  rTI,
const TimeControl rTC,
const std::string &  rResultDir,
const int  IDNodeRight 
)
inline
void SetupVisualize ( NuTo::Structure &  rS)
inline
template<int TDim>
void TestSpringDamperCombination ( std::vector< int >  rN,
std::vector< double >  rL 
)
template<int TDim>
void TestSpringDamperSerialChain ( std::vector< int >  rN,
std::vector< double >  rL 
)