Skip to content

Defining the motion of boundary particles #328

Answered by Xiangyu-Hu
Nadun19 asked this question in Q&A
Discussion options

You must be logged in to vote

It seems a sub type of constraint solid dynamics.

template <class DynamicsIdentifier>
class BaseMotionConstraint : public BaseLocalDynamics<DynamicsIdentifier>, public SolidDataSimple
{
public:
explicit BaseMotionConstraint(DynamicsIdentifier &identifier)
: BaseLocalDynamics<DynamicsIdentifier>(identifier), SolidDataSimple(identifier.getSPHBody()),
pos_(particles_->pos_), pos0_(particles_->pos0_),
n_(particles_->n_), n0_(particles_->n0_),
vel_(particles_->vel_), acc_(particles_->acc_){};
virtual ~BaseMotionConstraint(){};

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Nadun19
Comment options

Nadun19 Jun 13, 2023
Collaborator Author

Answer selected by Xiangyu-Hu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants