CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   How can I fix a local coordinate system to the inlet (https://www.cfd-online.com/Forums/star-ccm/134702-how-can-i-fix-local-coordinate-system-inlet.html)

phys-zephyr May 4, 2014 10:07

How can I fix a local coordinate system to the inlet
 
Dear all,

I am working with a time- and spatially dependent velocity inlet profile together with a time-dependent geometry. The velocity profile is defined in a local coordinate system which lies on the inlet boundary surface. The time-dependent geometry is realized with the morphing feature. So far, everything works fine.
I just have the problem, that as my geometry moves and deforms in time, the inlet part also moves but the local inlet coordinate system stays at its origin. As a consequence, the velocity profile does not stay at the inlet boundary and therefore after a certain time, no velocity is defined at the inlet anymore.
Is there a way to attach the local coordinate system to the inlet surface in a way that it will move together with the surface instead of staying at its origin? Did anyone ever found a way to solve such an issue?
A possible solution would be to morph the geometry in a way that the inlet always stays at its position and only the rest of the geometry moves. But this unfortunately can not be easily realized, as I only have the displacement for the surface and not the inlet...

Thanks for any suggestions/comments in advance

Cheers

me3840 May 6, 2014 09:31

Is the inlet moving physical? Can you change your BCs to a location such that they don't move?

ping May 7, 2014 06:41

you can define point probes and enable the follow motion property so that they move with your mesh since they will follow any mesh motion but be wary of remeshing since the cell the points are locked to will disappear

so if you define some near your inlet boundary you will have some useful values like normal or corner locations using a few reports of position of the points

then this information can be used in a macro which runs the case and every few time steps or even every time step update the coordinate system values - might need to do a bit of maths getting there like cross products but this is easy in a macro

ping May 8, 2014 05:46

a maybe better idea is to isolate one central cell face on your inlet boundary as a separate boundary but with the same settings as the the rest of the boundary

then do reports on just that boundary for position and normal and use this then is a macro to alter the coordinate system properties

and thinking about it some more if the boundary is planar the same could be done on the whole boundary depending on the report you choose for getting the position eg area weighted average position maybe


All times are GMT -4. The time now is 21:36.