Go to the documentation of this file.
20 #ifndef LIBMESH_NEWMARK_SYSTEM_H
21 #define LIBMESH_NEWMARK_SYSTEM_H
24 #include "libmesh/linear_implicit_system.h"
60 const std::string &
name,
61 const unsigned int number);
77 virtual void clear ()
override;
83 virtual void reinit ()
override;
95 virtual std::string
system_type ()
const override {
return "Newmark"; }
169 #endif // LIBMESH_NEWMARK_SYSTEM_H
void initial_conditions()
Apply initial conditions.
static const Real _default_alpha
Default Newmark alpha.
void update_u_v_a()
Update displacement, velocity and acceleration.
This class contains a specific system class.
The libMesh namespace provides an interface to certain functionality in the library.
void set_newmark_parameters(const Real delta_T=_default_timestep, const Real alpha=_default_alpha, const Real delta=_default_delta)
Set the time step size and the newmark parameter alpha and delta and calculate the constant parameter...
unsigned int number() const
virtual std::string system_type() const override
~NewmarkSystem()
Destructor.
static const Real _default_timestep
Default Newmark time step.
Real _a_0
Constants used for the time integration.
void compute_matrix()
Compute the global matrix by adding up scaled mass damping and stiffness matrix.
NewmarkSystem(EquationSystems &es, const std::string &name, const unsigned int number)
Constructor.
virtual void reinit() override
Reinitializes the member data fields associated with the system, so that, e.g., assemble() may be use...
NewmarkSystem sys_type
The type of system.
This is the EquationSystems class.
void update_rhs()
Update the rhs.
virtual void clear() override
Clear all the data structures associated with the system.
bool _finished_assemble
true if the matrix assembly is finished.
const std::string & name() const
virtual void assemble() override
Assemble the linear system.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Manages consistently variables, degrees of freedom, coefficient vectors, matrices and linear solvers ...
static const Real _default_delta
Default Newmark delta.