Defining the motion of boundary particles #328
-
Hi I want to load in the x,y,z positions (i.e. using a csv file) of the boundary SPH particles over time. Which function should I use to accomplish this? I had a look at all the examples available and I couldn't find a suitable one. Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
Xiangyu-Hu
Jun 13, 2023
Replies: 2 comments 1 reply
-
Do you require reload the data during the simulation? If it is the case, you can write a simple dynamics in which the particle position can be updated according to read data. |
Beta Was this translation helpful? Give feedback.
0 replies
-
It seems a sub type of constraint solid dynamics. you can derive from this class for the proposed function. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Xiangyu-Hu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems a sub type of constraint solid dynamics.
SPHinXsys/src/shared/particle_dynamics/solid_dynamics/constraint_dynamics.h
Lines 61 to 78 in 6e9db3a