cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Constrained filling

fbertolino
1-Newbie

Constrained filling

I'm trying to solve an interesting new case today.

Fill in a glass with a certain volume of water. I would like to change the quantity of water easily by parameter: any idea how to create a solid of the water constrained by the glass shape and the desired variable volume?

2 REPLIES 2

Behavioral Modeling has this as an example. They usually model and enclosed surface and use an analysis feature of the enclosed volume.

https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS122530&art_lang=en&posno=1&q=behavioral%20modeling%20volume&s…

Francesco,

you can implement bisection method using relations. See attached model.

  • d10 dimension belongs to DTM1 plane
  • inside the bottle there is closed quilt representing water
  • relations are defined as Post Regeneration

How to test my model:

  • the model is prepared to find value of d10 dimension which matches water volume 1 cubic decimeter
  • set MYSTART parameter to 1
  • click Regenerate repeatedly and watch values displyed in the top left corner
  • every Regenerate action brings your model closer to the goal

After first test you can remove the model from the session, open it again, set your own values for the following parameters, regenerate and repeat the test using procedure described above.

MYVOL

MYEPS

Good luck

Martin Hanak


Martin Hanák
Announcements
Business Continuity with Creo: Learn more about it here.

Top Tags