MATLAB Answers

PDE toolbox and load on nodes

11 views (last 30 days)
haoran liu
haoran liu on 10 Dec 2019
Commented: haoran liu on 14 Dec 2019
I use the PDE Toolbox to analysis a discrete geometry, and I want to put the force vector on a point. But I can't define a point through the syntax "loadedVertex". Is there any other option to define the point? thank you!

  0 Comments

Sign in to comment.

Accepted Answer

Ravi Kumar
Ravi Kumar on 10 Dec 2019
The function addVertex was introduced in R2019b. You might be running an older version of the MATLAB to get this error.
Regards,
Ravi

  1 Comment

haoran liu
haoran liu on 12 Dec 2019
Thankk you! But when I use the R2019b, I got another error. I can get the VertexID, But I can't put the force on the points.
2019-12-11 212920.jpg

Sign in to comment.

More Answers (2)

Ravi Kumar
Ravi Kumar on 12 Dec 2019
OK, in that case can you number the number of verteices in the model:
>> gm
Do you see the new VertexID in the plot you make?
Regards,
Ravi

  0 Comments

Sign in to comment.


haoran liu
haoran liu on 13 Dec 2019
Edited: haoran liu on 13 Dec 2019
Thank you for your answer. Yes, I can see the new VertexID in my model. But I can't solve it with force.
Regards,
haoran

  6 Comments

Show 3 older comments
haoran liu
haoran liu on 13 Dec 2019
Sorry, I have given a false model. The correct model is in the attachment now.
Ravi Kumar
Ravi Kumar on 13 Dec 2019
Thank. Now I see the issue. You generated mesh before adding vertex. Do all geometry operation before generating mesh. If you move the addVertex to right below importGeometry, you should not get this error.
Regards,
Ravi
haoran liu
haoran liu on 14 Dec 2019
Thank you! It works
Regards,
haoran

Sign in to comment.

Sign in to answer this question.