CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   STAR-CCM+ (http://www.cfd-online.com/Forums/star-ccm/)
-   -   Mesh Morphing Field Function (http://www.cfd-online.com/Forums/star-ccm/91391-mesh-morphing-field-function.html)

 dirty_harry August 9, 2011 10:55

Mesh Morphing Field Function

Hi @ all,

I am trying to simulate a bullet through an barell with Mesh Morphing and Translation. What I need is a Field Function who says the the bullet is moving every 0.00001seconds, 0.01meters, any Ideas????

 abdul099 August 9, 2011 13:28

Why don't use the displacement option for the morpher? Otherwise calculate the velocity and use velocity as morphing option. Should be the easiest way, especially when the velocity (and therefore the displacement) is constant.

When it shouldn't be constant (for example due to the acceleration of the bullet due to the pressure), my first thought would be to use 6DOF morphing or try to find an equation for the velocity. Something like v = a*t

 dirty_harry August 11, 2011 08:04

Thanks for the advice....but how does it works when i reaches the max. streching of the cells to remesh it. Means not stop the simulation and remesh it, kinda automatition?

Thanks

 ping August 11, 2011 10:07

this sort of work is done with a simple java macro - have an outside loop which loops forever, then within the loop use some test to trigger a remesh - eg when mesh is 50% larger than last remesh, or a cell quality report. You then get the value of displacement from a report (or your F=ma calc in the macro), transform/scale etc the 3D CAD or Part solid or surface, then remesh and continue the loop - the region surfaces will be updated before remeshing begins. Like all macros, you record the steps first then insert the loop and get.value reports etc.

 dirty_harry August 11, 2011 12:14

ok, thank you very much,

I never did something with Macro. So, I will try to work it out, hopefully.

 All times are GMT -4. The time now is 04:10.