-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathcontact_levelset.h
More file actions
48 lines (39 loc) · 1.37 KB
/
contact_levelset.h
File metadata and controls
48 lines (39 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef MPM_CONTACT_LEVELSET_H_
#define MPM_CONTACT_LEVELSET_H_
#include "contact.h"
#include "mesh_levelset.h"
#include "particle_levelset.h"
namespace mpm {
//! ContactLevelset class
//! \brief ContactLevelset base class
//! \tparam Tdim Dimension
template <unsigned Tdim>
class ContactLevelset : public Contact<Tdim> {
public:
//! Default constructor with mesh class
ContactLevelset(const std::shared_ptr<mpm::Mesh<Tdim>>& mesh);
//! Initialise levelset properties
//! \param[in] levelset_damping Levelset damping factor
//! \param[in] levelset_pic Particle in cell method bool for contact velocity
//! \param[in] levelset_violation_corrector Violation correction factor
void initialise_levelset_properties(
double levelset_damping, bool levelset_pic,
double levelset_violation_corrector) override;
//! Compute contact reaction forces
//! \param[in] dt Analysis time step
void compute_contact_forces(double dt) override;
//! Mesh levelset object
std::shared_ptr<mpm::MeshLevelset<Tdim>> mesh_levelset_;
protected:
//! levelset_damping_
double levelset_damping_;
//! levelset_pic_
bool levelset_pic_;
//! levelset_violation_corrector_
double levelset_violation_corrector_;
//! Mesh object
using mpm::Contact<Tdim>::mesh_;
}; // ContactLevelset class
} // namespace mpm
#include "contact_levelset.tcc"
#endif // MPM_CONTACT_LEVELSET_H_